• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Extendscript / save book as PDF not working

New Here ,
Feb 07, 2020 Feb 07, 2020

Copy link to clipboard

Copied

Hello,

I hope someone can help me with that.

We have to print our manuals not only with our cover but also for some clients with theire cover brandings.

So, my idea was to put all the covers into a group and exclude them by default, exept our own one. So, if we change the content my script "jumps" into the group, saves the book as PDF with our cover. Then exclude our cover, includes the next in DFSOrder, saves the book as PDF with that cover and so on ...

All other files (table of contents, content itself, ...) are in seperate folders outside that group for the covers. The cover-loop actually works, the doc.Save returnParams returns FE_Success. But we only get a .tps file instead of a pdf. With smaller book projects (3 covers with just a word each an a content doc with a few words, no table of contents, marks, pictures and so on) the script actually produces a pdf.

 

These are the DefaultParams i try to set set: 

i = GetPropIndex(params, Constants.FS_FileType);    
params[i].propVal.ival = Constants.FV_SaveFmtPdf;
i = GetPropIndex(params, Constants.FS_SaveMode);  
params[i].propVal.ival = Constants.FV_ModeSaveAs;

 

Thank you!

TOPICS
PDF output , Scripting

Views

267

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation