tracker issue : CF-3114269

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

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

Problem:

<_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. )
Method:

<cfsavecontent variable="ddxfile">
<?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="Title"/>   
<TableOfContents maxBookmarkLevel="2">
<TableOfContentsEntryPattern applicableLevel="1" >
<StyledText>
<p font-family="MyriadPro" font-size="12pt">
<_BookmarkTitle/>
<leader leader-pattern="dotted"/>
<_BookmarkPageCitation/>
</p>
</StyledText>
</TableOfContentsEntryPattern>
</TableOfContents>     
<PDFGroup>         
<PDF source="Doc1" />         
</PDFGroup>     
</PDF> 
</DDX>
</cfsavecontent>
<!--- 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)>
</cfloop>
 
<!--- 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#" >
</cfif>
 <!--- This code processes the DDX instructions and generates the compound document. ---> 
<cfpdf action="processddx" ddxfile="#trim(ddxfile)#" inputfiles="#inputStruct#" outputfiles="#outputStruct#" name="myBook">
Result:

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

Attachments:

Comments:

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: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7995.html 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