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">
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Live
  • Google Bookmarks
  • BlinkList
  • FriendFeed
  • Ping.fm
  • StumbleUpon
  • Technorati
  • Mixx
  • Reddit
  • Blogosphere News
  • Fark
  • Identi.ca
  • LinkedIn
  • Sphinn
  • TwitThis
  • E-mail this story to a friend!
  • Print this article!

Related posts:

  1. Query of queries – fix it! I know of a few people that like to scope...