Disassemble PDF document | Community
Skip to main content
New Participant
December 14, 2022
Solved

Disassemble PDF document

  • December 14, 2022
  • 1 reply
  • 1572 views

Hello,

Trying to disassemble PDF document contains 100pages to individual pages.

Using Workbench ES4 to create process, this is DDX.

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<DDXProcessorSetting name="checkpoint" value="4000"/>
<PDFsFromBookmarks prefix="A">
<PDF source="doc1"/>
</PDFsFromBookmarks>
<?ddx-source-hint name="doc1"?>
</DDX>

Added variable IN and OUT as well as assembler result.

When i test run my result document shows empty.

Out variable is mapped to "/process_data/KGL_WaterMark_Result/object/documents"

Created watch folder and checked, document not splitting up, same combined coming to result folder.

Shaji

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijay_Katoch

Thank you for your instant response.

Shaji


I have found below in Adobe documents:

Need to extract the list of documents from assembler result.

https://help.adobe.com/en_US/livecycle/11.0/WorkbenchHelp/WS92d06802c76abadb-1cc35bda128261a20dd-76ec.2.html

 

 

A map of string values that contains the successful documents described by the result blocks in the DDX file. The key is a logical name for the document and the value is the file name of the document.

The logical name depends on the results:

  • If the result is a single document, the logical name is the value of the result attribute. For example, if the DDX file contained <PDF result="doc1.pdf">, the logical name would be doc1.pdf.

  • If the result is multiple documents that come from either a <PackageFiles> or a <FileAttachments> result element, then the logical document name is the last portion of a name after the last slash (/) if a path is specified. For example, if the document path provided is /dirABC/ABC.pdf, specify the XPath expression [documents][@id='ABC.pdf'] as a key to retrieve the document value, where [documents] is the name of a map variable.

  • If the result is multiple from disassembling with the <PDFsFromBookmarks> element, then the logical name is the prefix attribute.

1 reply

Vijay_Katoch
New Participant
December 14, 2022

Are you getting any exception or error?

try this

<PDFsFromBookmarks prefix="stmt">
<PDF source="doc1.pdf"/>
</PDFsFromBookmarks>

Shaji1Author
New Participant
December 14, 2022

Vijay,

You DDX sample and mine both are same, you have different prefix.

I recorded and payback and checked as well.

"/process_data/KGL_WaterMark_Result/object/documents", shows empty.

Here is the workbench process.

Shaji

Vijay_Katoch
New Participant
December 14, 2022

let me check this.