3 Replies Latest reply: Nov 5, 2008 2:04 PM by Pradeep Goli RSS

How to generate PDF with bookmarks?

Magdalena Lata
Currently Being Moderated

Hi,

 

The business request is to have pdf report with bookmarks. There is no predefined bookmark object in Livecycle Designer/SFP so my idea is to add some scripting to the form to generate bookmarks dynamically. I defined a standard pdf form with several lines of JavaScript embedded. The script is running in the form preview in Livecycle  Later I was testing the form by calling its function module and looking at the generated PDF file. Unfortunately it seems there is no script embedded in the final output PDF generated by ADS.

 

Is Javascript supported in pdf forms? Do I need to perform any additional operations to enable the Javascipt? Do I need to pass additional parameters to ADS? I tested the following settings:

 

 

  •        fp_docparams-fillable = 'X'.

  •        fp_docparams-DYNAMIC = 'X'.

  •        fp_outputparams-getpdf = 'X'.

  •        fp_outputparams-PDFTAGGED = 'X'.

  •        fp_outputparams-PDFCHANGESRESTRICTED = ' '.

 

 

I appreciate any suggestion.

  • Re: How to generate PDF with bookmarks?
    Pradeep Goli
    Currently Being Moderated

    Hi Lata,

     

    Can you describe your SAP Server details(like Enhancement Package or SPS Version) , Adobe Reader version, Adobe LiveCycle Designer version.

     

    Regards

    Pradeep Goli

    • Re: How to generate PDF with bookmarks?
      Magdalena Lata
      Currently Being Moderated

      Hi

       

      Adobe LiveCycle is 8.01.2088.1.380548. Adobe Reader 8.

       

      SAP_BASIS     700     0015     SAPKB70015     .

      SAP_ABA             700     0015       APKA70015     

      PI_BASIS             2005_1_700 0015 SAPKIPYJ7F

      ST-PI             2005_1_700 0005     SAPKITLQI5

       

      Rgrds,

      • Re: How to generate PDF with bookmarks?
        Pradeep Goli
        Currently Being Moderated

        Hi Lata,

         

        May be there is some error in the JavaScript code written.

         

        Sometimes if there is an error in JavaScript then from where the error occurs from there the JavaScript wont work in the Adobe Form.

         

        To check whether JavaScript contains errors or not. You just simply open your Adobe Acrobat Reader goto Edit in that goto Preferences and in that Select "JavaScript" in that you find the JavaScript Debugger there you enable "Show Console on errors and messages".

         

        This may help you in some way or the other.

         

        Regards

        Pradeep Goli

Actions