Here is a collection of Assembler DDX files that I often refer to. The complete Assembler DDX reference can be found here: LiveCycle ES Update 1 DDX Reference
There is a great little sample application that comes with LiveCycle that is not automatically deployed. The sample app allows you to easily experiment with DDX. Please refer to my post Using Assembler DDX UI (Assembler IVS)
Assemble an unknown number of documents:
<DDX xmlns=”http://ns.adobe.com/DDX/1.0/”>
<PDF result=”rpt_assembleDoc_kpi_001.pdf”>
<PDF sourceMatch=”.*”/>
</PDF>
</DDX>
Flattening Forms:
<DDX xmlns=”http://ns.adobe.com/DDX/1.0/”>
<PDF result=”rpt_flattenform_kpi_002.pdf”>
<PDF source=”doc1.source”>
<NoForms/>
</PDF>
</PDF>
</DDX>
or
<DDX xmlns=”http://ns.adobe.com/DDX/1.0/”>
<PDF result=”rpt_xfastripping_001.pdf”>
<PDF source=”doc1.source”>
<NoXFA/>
</PDF>
</PDF>
</DDX>
Add a watermark:
<DDX xmlns=”http://ns.adobe.com/DDX/1.0/”>
<PDF result=”rpt_watermarks_kpi_002.pdf” save=”Full”>
<Watermark rotation=”45″ opacity=”50%”>
<StyledText>
<p font-family=”Minion Pro” color=”red” font-size=”72pt”>Watermark</p>
</StyledText>
</Watermark>
<PDF source=”doc1.source” />
</PDF>
</DDX>
Adding a header and a footer:
<DDX xmlns=”http://ns.adobe.com/DDX/1.0/”>
<PDF result=”rpt_headersFooters_kpi_002.pdf”>
<PDF source=”doc1.source” >
<Header>
<Center>
<StyledText>
<p font-family=”Minion Pro” font-size=”10pt”>Test Header Center</p>
</StyledText>
</Center>
</Header>
<Footer>
<Center>
<StyledText>
<p font-family=”Minion Pro” font-size=”10pt”>Test Footer Center</p>
</StyledText>
</Center>
</Footer>
</PDF>
</PDF>
</DDX>
Setting the view state of a PDF:
<DDX xmlns=”http://ns.adobe.com/DDX/1.0/”>
<InitialViewProfile name=”basicProfile” show=”BookmarksPanel” pageLayout=”Facing” magnification=”Default” openToPage=”1″/>
<PDF result=”rpt_initialView_001.pdf” initialView=”basicProfile”>
<PDF source=”doc1.source”/>
</PDF>
</DDX>
Adding page labels:
<DDX xmlns=”http://ns.adobe.com/DDX/1.0/”>
<PDF result=”rpt_pageLabels_001.pdf”>
<PDF source=”doc1.source”>
<PageLabel mode=”Define” start=”_PageNumber” format=”Decimal” prefix=”sideways”/>
</PDF>
</PDF>
</DDX>
Cheers,
_Seth
Let me know if there are additional DDX examples you would like posted.
Not sure this can be done solely with DDX, but I have a use case where a multi-page PDF document (containing property tax records) needs to be split into individual, one-page, files (one for each tax payer). There are no bookmarks, but each page contains a single record. The resulting PDFs need to be renamed based on a parcel ID number contained in the document text (flat PDF, not a form). Would love to see any relevant examples. Thanks!
Seth, the XML cannot be easily cut n pasted from the web page due to character encoding. Can you attach a file. Thanks.
is there any way to apply a dynamic watermarking? e.g. I pass a variable that specify the text value of the watermark.
Hi Seth,
What about the pdf-file of the manual, where can I find that?
To meowo:
You can do somethin like this:
LiveCycle Assembler DDX cookware
August 6, 2008 by livecycleapps
Here is a collection of Assembler DDX files that I often refer to. The complete Assembler DDX reference can be found here: LiveCycle ES Update 1 DDX Reference
There is a great little sample application that comes with LiveCycle that is not automatically deployed. The sample app allows you to easily experiment with DDX. Please refer to my post Using Assembler DDX UI (Assembler IVS)
Assemble an unknown number of documents:
Flattening Forms:
or
Add a watermark:
/process_data/Watermark
Hi again, don’t know what happened with the post:
Here is what I meant:
/process_data/Watermark
\Kim
Apparently the blog ystem does not like it when you insert xml in it…
Here are some other resources:
“Using Assembler IVS to Test DDX Expressions” explains how to install and use the DDX testing tool. This doc is available at
http://blogs.adobe.com/livecycledocs/2009/01/using_assembler_ivs_to_test_dd_1.html
The “DDX Reference” is an HTML doc is available at
http://www.adobe.com/go/learn_lc_DDXReference_82
There isn’t a PDF version of the “DDX Reference” for LiveCycle 8.2.
You can watch a demo about creating dynamic watermark with LC ES2 from the link below..
http://muratkuru.com.tr/?p=207
What about adding a dynamic or any Header to the PDF portfolio?
Hi,
We can create a table of contents with the bookmarks in the ddx when assembling several PDF documents to one big document.
Some documents are related, for example document number 12 is related to document 3, but in the resulting PDF there may be 20 pages and other documents between them. What I would like to do is create a link on the bottom of document 3, which when I click on it brings me to the page where document 12 is located. There I would like a link back to document 3. Something like creating links with Adobe X.
Is this possible through ddx commands? If so, could you please provide an example?
Thanks,
Patrick
Can you compare two PDF documents and show the delta like Acrobat can?
Thanks,
Alain