Avatar

Correct answer by
Level 2

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.

View solution in original post