tracker issue : CF-3114269

select a category, or use search below
(searches all categories and all time range)

Bug 87269:-(Watson Migration Closure)<_BookmarkTitle/> DDX Assembler variable within TableOfContentsEntryPattern produces an error

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/LowImpact

Reporter/Name(from Bugbase): Bryn Parrott / Bryn Parrott (bryn51)

Created: 01/15/2012

Components: Document Management, PDF manipulation

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win All

Vote Count: 2


<_BookmarkTitle/> DDX Assembler variable within TableOfContentsEntryPattern produces an error.
<_BookmarkPageCitation/> does not produce an error.

If BOTH variables are not working then it is not possible to produce properly formatted Table of Contents.  ( The default TOC is formatted with Courier font. )

<cfsavecontent variable="ddxfile">
<?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns=""  
    xsi:schemaLocation=" coldfusion_ddx.xsd">
<PDF result="Out1"> 
<PDF source="Title"/>   
<TableOfContents maxBookmarkLevel="2">
<TableOfContentsEntryPattern applicableLevel="1" >
<p font-family="MyriadPro" font-size="12pt">
<leader leader-pattern="dotted"/>
<PDF source="Doc1" />         
<!--- This code creates a structure for the input files. ---> 
<cfset inputStruct=StructNew()> 
<cfset inputStruct.Title="#fslocation#/header.pdf">
<cfset ctr=1>
<cfloop list="#namelist#" index="docname">
<!---<cfset docname=fslocation & "/" & docname>--->
<cfset sref="Doc" & ctr>
<cfset structinsert(inputstruct,sref,docname)>
<cfset ctr=incrementvalue(ctr)>
<!--- This code creates a structure for the output file. ---> 
<cfset outputStruct=StructNew()> 
<cfset outputStruct.Out1=fslocation & "/Book.pdf">

<cfif fileexists(outputStruct.Out1)>
<cffile action="delete" file="#outputStruct.Out1#" >
 <!--- This code processes the DDX instructions and generates the compound document. ---> 
<cfpdf action="processddx" ddxfile="#trim(ddxfile)#" inputfiles="#inputStruct#" outputfiles="#outputStruct#" name="myBook">

The DDX specified is not valid. 
info: Check for invalid construct or restricted keywords. D

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3114269

External Customer Info:
External Company:  
External Customer Name: Bryn Parrott
External Customer Email: 823805A04A7E3819992016B8
External Test Config: 01/15/2012



This bug has been voted..
Vote by External U.
20817 | February 15, 2012 12:16:28 AM GMT
I need to match styling for the table of contents to the rest of the document, which is heavily formatted with HTML and CSS.
Vote by External U.
20818 | April 23, 2012 06:28:36 AM GMT
I have stumbled across a fix for this, if you use: <PDF source="Title"/> As a PDF source, it will fail. This is because 'Title' is a reserved word in DDX, the full list of reserved words can be found here: under 'Supported DDX elements' Indeed, using any of the reserved words out of context will cause the DDX to fail. isDDX() will return 'OK' when testing the DDX, however when you go to process it, it will fail with the error above.
Comment by External U.
20816 | April 24, 2012 02:46:45 AM GMT