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;