How do you control the PDF properties?


i creating batch pdf processing script. purpose generate pdfs multiple books. part of script supposed set pdf setup options, such whether expand out bookmarks , default zoom level. however, found none of settings carried on ps file distiller generates pdf.

 

for example, here's code that's supposed set expanded bookmark level none:

 

var book = app.activebook;
if (book.objectvalid())
{
    book.pdfbookmarksopenlevel=constants.fv_pdfbookmarksopennonelevel;
    book.printfilename="c:\\users\\jlorenz1\\desktop\\ps_files\\in\\book.ps";
    book.printtofile=true;
    book.silentprintdoc();
    }

 

however, when generate pdf distiller, bookmarks still expanded out. have tried set pdf's default zoom level without success.

 

has had success setting pdf setup options extendscript? if so, how did it?

 

thanks,

joe

with extremely helpful pointers rick quatro, believe have more or less figured out how has done. script need this:  1. in fm book, save each file mif. 2. add/modify mif statements in file. 3. save file framemaker format.  example, have figured out default pdf zoom level @ least. had review mif reference guide (could find fm 8, later guide out there?) , map mif statements fm 10 documents. similar fm 8, different. there's following mif document statements:               

 

  • <dpdffit none>
  • <dpdfzoom  125.0%>

 

in each document in book, need set above mif statements. then, fm book print document pdf, default zoom level 125%.  big rick on one.



More discussions in FrameMaker Scripting


adobe

Comments