Skip navigation
hdkhiem
Currently Being Moderated

how to get total page count

Aug 26, 2010 1:18 PM

Is there anyone know how to get the total page after we generate the pdf file. I'm using the rest method and create a out process.?

 
Replies
  • Currently Being Moderated
    Aug 26, 2010 1:23 PM   in reply to hdkhiem

    Page count is one of the data points returned when you use the docInfo tag in a DDX.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 27, 2010 6:07 AM   in reply to hdkhiem

    DocInfo is a tag set that is part of the DDX command file.  LiveCycle Assembler uses a DDX file to determine what it is supposed to do to a file.  Have a look at the DDX reference guide: http://livedocs.adobe.com/livecycle/8.2/ddxRef/001000.html

     

    and specifically at the Doc Info part:

      http://livedocs.adobe.com/livecycle/8.2/ddxRef/001170.html

     

     

    (You can see the table of contents from the above links by clicking on the "Show Navigation" icon in the upper left)

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 27, 2010 10:29 AM   in reply to hdkhiem

    In workbench I use a SetValue

     

    Before you assemble the document you need to build the DDX string and specify you want the xml info.

     

     

    concat(/process_data/@ddxHeadStr, ' <DocumentInformation source="mergedPDF" result="doc_info.xml" />')

     

     

    AFTER Assembly

    Use SetValue set your xmlinfo variable (type xml) to this

     

    /process_data/xmlInfo Set TO

    /process_data/assemblerResult/object/documents[@id

    ="doc_info.xml"]

     

    Then get your pages from the XMLinfo

     

    /process_data/@numPages

    =

    /process_data/xmlInfo/DocInfo/NumPages

     

     

    Hope this helps.  Email if not clear.  I had to fight through this recently and feel the documentation is really lacking.

     

     

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points