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

How to set PDF Job option using FDK11?

New Here ,
Jan 07, 2014 Jan 07, 2014

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(&params, FS_FileType);

                params.val.propVal.u.ival = FV_SaveFmtPdf;

                i = F_ApiGetPropIndex(&params, FP_PDFJobOption);

                params.val.propVal.u.ival = F_StrCopyString ((StringT)"Smallest File Size");

Thanks,

Venkat

TOPICS
Structured

Views

437
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
Advisor ,
Jan 08, 2014 Jan 08, 2014

Copy link to clipboard

Copied

LATEST

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

Votes

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