FrameMaker 2015 - ESTK - Page Size DefaultParams
Hi everybody,
I'm struggling with the page sizes when creating a PDF file from a book. I can't manage to change the sizes of the pages to DIN A4. The default parameters seems to be 210,3 x 279,4 mm.
The same issue has been discussed for FDK, but I don't get how to adapt the code:
Framemaker 2015 - FDK Client application page size issue
Here is the function I use to save PDF with the attempt to alter the page height to 297mm:
I'm glad for any help.
function SaveAsPDF(book) {
var comp = book.FirstComponentInBook;
while(comp.ObjectValid()) {
var doc = SimpleOpen(comp.Name);
doc.PDFBookmark = true;
doc.DocAcrobatElements = false;
doc.PDFPageHeight = 297; // here is my attempt
comp = comp.NextBookComponentInDFSOrder;
}
var params = GetSaveDefaultParams();
var index = GetPropIndex(params, Constants.FS_FileType);
params[index].propVal.ival = Constants.FV_SaveFmtPdf;
book.Save(pdfPath, params, new PropVals());
}

