Title:
Bug 87269:-(Watson Migration Closure)<_BookmarkTitle/> DDX Assembler variable within TableOfContentsEntryPattern produces an error
| View in TrackerStatus/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: