- see footer for list info -<
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">


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to