Skip navigation
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.?

  • 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:


    and specifically at the Doc Info part:



    (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




    Then get your pages from the XMLinfo







    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