CFPDF, DDX, Table of Contents
OK so I'm trying to do a simple test using DDX to generate a table of contents. I am using some sample code I found that is as basic as you get just to get it to work and then modify it. No matter what I try though, my Table of Contents is empty or I should say the Table of Contents page doesn't get created at all. Has anyone seen this before?
My DDX FILE
--------------------------------------
<?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">
<TableOfContents />
<PDF source="Doc1"/>
<PDF source="Doc2"/>
</PDF>
</DDX>
My test file
_________________________
<cfset ddxfile = "toc.ddx">
<cfset sourcefile1 = "c:\20225230_ESS.pdf">
<cfset sourcefile2 = "c:\20225230_MS.pdf">
<cfset destinationfile = "c:\foo.pdf">
<cfset inputStruct=StructNew()>
<cfset inputStruct.Doc1="#sourcefile1#">
<cfset inputStruct.Doc2="#sourcefile2#">
<cfset outputStruct=StructNew()>
<cfset outputStruct.Out1="#destinationfile#">
<cfpdf action="processddx" ddxfile="#ddxfile#" inputfiles="#inputStruct#" outputfiles="#outputStruct#" name="ddxVar">
<cfdump var="#ddxvar#">
