Copy link to clipboard
Copied
Hi,
I have a tool to convert Framebook into PDF and this works good. But the generated pdf is not of the same size as it is generated through FrameMaker Save as PDF. With the FrameMaker API, I get a dialog box to choose the different PDF Job options available. I came across a similar provision with FDK which also has a property to set the PDF Job options but it doesnt work as expected. Please correct me if my approach is wrong.
params = F_ApiGetSaveDefaultParams();
i = F_ApiGetPropIndex(¶ms, FS_FileType);
params.val.propVal.u.ival = FV_SaveFmtPdf;
i = F_ApiGetPropIndex(¶ms, FP_PDFJobOption);
params.val.propVal.u.ival = F_StrCopyString ((StringT)"Smallest File Size");
Thanks,
Venkat
Copy link to clipboard
Copied
As far as I know, the only way to specify PDF options is by programmatically displaying the PDF Options dialog (via WinAPI calls), "selecting" the options and "pressing" the OK button. There have been numerous discussions on this topic on the Yahoo frame_dev group ..
http://groups.yahoo.com/neo/groups/frame_dev/search/messages?query=pdf%20options
And here's some code ..
http://groups.yahoo.com/neo/groups/frame_dev/conversations/messages/1578
You may be able to set the options as you're doing, but I don't think they are "set" until you display the dialog and "press" the OK button.
...scott