2 Replies Latest reply on Apr 13, 2015 12:26 AM by OP_Prepress

    WritePreprocessNotifier not working for PDF

    OP_Prepress Level 1

      Hello everybody,

       

      for my Plugin I need to remove artobjects from the document before saving and add them again after saving.

       

      I used the kAIDocumentWritePreprocessNotifier which worked perfect for all *.ai files.

      BUT with *.pdf it doesn't work. Opening the pdf afterwards again in AI the Objects are not there - as expected - opening in Acrobat the objects are there.

      This means that the DocumentWritePreprocess lasts until the AI part of the pdf is saved and when saving the pdf part of the pdf the objects are in the document again.

       

      Notifie all the different Save commands is also not usefull, cause when saving a new document or saving as and then pressing cancel all the object which should be removed are gone - of course.

       

      Has anybody an idea how to solve this? Or how to catch the cancel event? Or is there any beforeExportToPdf notifier?

       

      Thanks!