tracker issue : CF-3114268

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

Bug 87268:-(Watson Migration Closure)Attribute 'bookmarkTitle' for the DDX command TableOfContents is documented to work but it 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:

Attribute 'bookmarkTitle' for the  DDX command TableOfContents  is documented to work but it produces an error.
Method:

<?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" bookmarkTitle="Table of Contents">
<TableOfContentsEntryPattern applicableLevel="1" >
<StyledText>
<p font-family="MyriadPro" font-size="12pt">
<leader leader-pattern="dotted"/>
<_BookmarkPageCitation/>
</p>
</StyledText>
</TableOfContentsEntryPattern>
</TableOfContents>     
<PDFGroup>         
<PDF source="Doc1" />         
</PDFGroup>     
</PDF> 
</DDX>
<!--- 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. Detail:

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

Watson Bug ID:	3114268

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.
20821 | February 15, 2012 12:16:29 AM GMT
Not allowing me to format my TOC page to match the rest of a heavily styled document.
Vote by External U.
20822 | April 23, 2012 06:29:43 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.
20820 | April 24, 2012 02:45:57 AM GMT