Coldfusion PDF BUG?
Ok, Before I pull whats left of my hair out…. does anyone or has anyone come across the following problem.
I’m using DDX to add a footer to a pdf document for page numbering purposes. Now this normally works okay until I give it a PDF which happens to have some pages which are landscape in orientation. When I use such a document the DDX simply fails (and with no error message).
Here is a snippet of the code I’m using (which works providing each page is in the same orientation) :
<cfsavecontent variable="myddx"> <?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="Out1"> <PDF source="Doc1"> <Footer whiteout="true"> <Right> <StyledText> <p color="blue"><_PageNumber/>/<_LastPageNumber/></p> </StyledText> </Right> </Footer> </PDF> </PDF> </DDX> </cfsavecontent> <cfset myddx = trim(myddx)> <cfset inputStruct=StructNew()> <cfset inputStruct.Doc1="#pdfFilePath#"> <cfset outputStruct=StructNew()> <cfset outputStruct.Out1="#pdfFilePath#"> <cfpdf action="processddx" ddxfile="#myddx#" inputfiles="#inputStruct#" outputfiles="#outputStruct#" name="ddxVar">
Related posts:
- Query of queries – fix it! I know of a few people that like to scope...























Raymond Camden on June 8th, 2009
You mentioned no error is thrown. That is not surprising. Have you dumped ddxVar, the result of your name argument? That gives details of the result of the DDX operation.