Thanks Leigh. It just seems if you merge PDFs, the page numbers/labels should be set sequentially within the new document. When would anyone ever want page numbers to look like: 1,1,1,1,2,1,1,1,2,3,1,1,1,1?. Totally a bug.
Thanks for your help though, it did provide a workaround for the bug. A little more searching on DDX and I found http://kb2.adobe.com/cps/493/cpsid_49378.html, which suggests a link to the <PageLabel> doc reference from LiveCycle. Unfortunately, this doesn't work as the PageLabel element doesn't accept the attribute "pages" (at least not in CF). But, with some tweaking I did get it to work. For future reference here's what I did: <cfsavecontent variable="DDX"><?xml version="1.0" encoding="UTF-8"?> <DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="output1"> <cfset i = 1 /> <cfset pageNumber = 1/> <cfloop list="#pages#" index="page"> <PDF source="doc#i#"> <cfpdf action="getinfo" name="tmp" source="#page#"> <PageLabel mode="Define" start="#pageNumber#" format="Decimal"/> <!--- page numbering will be off if the source has more than one page ---> <cfset pageNumber = pageNumber + tmp.TotalPages/> </PDF> <cfset i = i + 1 /> </cfloop> </PDF> </DDX> </cfsavecontent> <!--- setup the mapping for the source PDF files ---> <cfset sInput = structNew() /> <cfset i = 1 /> <cfloop list="#pages#" index="page"> <cfset sInput['doc#i#'] = page /> <cfset i = i + 1 /> </cfloop> <!--- setup the mapping for the result PDF files ---> <cfset sOutput = structNew() /> <cfset sOutput.output1 = "finished.pdf" /> <cfset DDX = trim(DDX)/> <cfif isDDX(DDX)> <!--- use the cfpdf tag to process the DDX document ---> <cfpdf action="processDDX" ddxFile="#trim(DDX)#" inputFiles="#sInput#" outputFiles="#sOutput#" name="result" /> <cfelse> <h1>Not a Valid DDX document</h1> </cfif> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338811 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm