Skip to main content
Participant
June 15, 2015
Answered

failed pre-flight print of PDFs saved via "save as" function due to the present JavaScripts

  • June 15, 2015
  • 1 reply
  • 447 views

How can I disable using JavaScripts in PDFs saved with "save as" option? PDFs printed out via postscript and distiller are without JavaScripts. The PDFs that contain JavaScripts fail the pre-flight print process so we need to find out how to disable all JavaScripts in PDFs even if Save as function is used for generating PDFs.

Thanks,

Peter

This topic has been closed for replies.
Correct answer Arnis Gubins

Peter,

I looked a little more into this, and regardless if you comment out the post-processing routines or not, it seems that FM now always writes a dummy javascript when using the SaveAsPDF routines. The script is actually empty, i.e. it identifies the source as coming from FM, and here's the embedded script in the PDF [it does nothing]:

//<Document-Level>

//<ACRO_source>FrameMaker</ACRO_source>

//<ACRO_script>

/*********** belongs to: Document-Level:FrameMaker ***********/

//</ACRO_script>

//</Document-Level>

It seems that your options are limited here. You can't use the SaveAsPDF  route and get rid of the script from the FM end of things. So you can either use AcrobatPro to sanitize the document, create a script that will strip out the javascript or talk to your print provide provider to see if they will let the above script pass their pre-flight.

Alternatively, use the print function to create your postscript and then Distiller to create the final print-ready PDF. If you need to create press-ready CMYK & Spot colour output using the print route, then you'll need to use GrafikHuset's (now freebie) PubliPDF to convert FM's RGB postscript output to CMYK+Spot PDFs. Download at:http://design.grafikhuset.dk/index.php/kontakt/downloads/grafikhuset-publi-pdf and more details available at: http://www.grafikhuset.net/PubliPDF/

1 reply

Arnis Gubins
Inspiring
June 15, 2015

If you have a Pro version of Acrobat, use the Protection > Sanitize Document and Remove Hidden Information tools. This will clean out all of the scripts.

ggfdsgsdAuthor
Participant
June 15, 2015

Thank you for this answer. I am aware of this function in Acrobat Pro, but is there any chance to print a PDF in FM with "save as" option and to disable all possible JavaScripts? I am using no addons, plugins and when I use PostScript to print a file there is no JS in the pdf and pre-flight check is OK however when I use "save as" function, JS is present in PDF and pre-flight will signalize JS and my print vendor won´t accept PDF with JavaScripts.

Thank you,

Peter

Arnis Gubins
Inspiring
June 15, 2015

The SaveAsPDF does a few optimizations to the postscript that directly printing to postscript does not. If you check the maker.ini, you can find some of these PDF related post-processing functions that can be commented out. Use the maker.ini reference manual to identify which ones are candidates. Otherwise, the SaveAsPDF function is the same as using the print with "Generate Acrobat Data" enabled.

Note: you can only get the direct CMYK output using the SaveAsPDF function.