With this post I would like to ask for some advice on a problem I'm having exporting Indesign files to PDF using Applescript.
I have a lot of Indesign documents, related to one particular client. All documents need to be exported to highres PDF using a preset.
When I export a file to PDF manually, the resulting PDF file is ok. No errors are displayed when opening the pdf-file in Acrobat (full and reader).
When I export the same file, with the same pdf preset, using a Applescript, the resulting PDF-file shows an error in Acrobat when it's opened.
The message "Cannot extract the embedded font '....' Some characters may not display or print correctly'.
I have this issue in Indesign CS 5.5, CS6 and CC. When trying it on a larger scale, 90% of all documents have this issue. When doing it manually, all resulting pdf-files are fine. I've double checked this with Enfocus Pitstop. All reports are fine.
The Applescript code I'm using...
tell active document
export format PDF type to myFilePath using "SheetCmyk_1v4_IND4" without showing options
... pretty basic code ... I've tried placing it in a try/catch block, but no error or exception is trown.
The font refered to in the messagebox, varies from document to document...
All fonts are present the document. No fonts are missing. I've cleared all font caches, multiple times, with no luck. All fonts are checked and are not corrupt or damaged. The Os x version i'm using is 10.8
Does anyone have any idea on how to solve this issue?
In your PDF preset do you allow subsetting?
I've did a lot of test and changing the subset settings didn't solve anything.
I was able to create a temporarily fix for the problem. Every time a file has to be processed, I quit and relaunch Indesign. By doing so, I lose 80% performance because it takes longer to quit and relaunch the app, then to create the PDF-file. I went from a 3 second processing time, to 10 seconds, every time...
I think a cache problem could be the reason.
Does anyone know if you can clear the application cache using scripting, without quitting the Indesign app ?