Expand my Community achievements bar.

SOLVED

'Table Of Contents' header not wrap into second line in assembler service

Avatar

Level 2

Please find my ddx below for assembler service to generate 'Table Of Contents', The header section of the TOC not wrapping into second line. Please find screenshot. any help ?

 

"<?xml version="1.0" encoding="UTF-8"?> <DDX xmlns="http://ns.adobe.com/DDX/1.0/"> <PDF result="out.pdf"> <TableOfContents includeInTOC="true" bookmarkTitle="_SourceTitle" toc-margin-top="70pt"> <PageSize width="612pt" height="792pt"/> <Header><Left><StyledText><p font-family="Verdana" font-size="28pt" text-align="left">Wells Fargo Merchant Services Terms and Conditions</p></StyledText></Left></Header> <TableOfContentsEntryPattern> <StyledText> <p font-family="Verdana" font-size="9pt"> <_BookmarkTitle/><leader leader-pattern="dotted"/> <_BookmarkPageCitation/></p> </StyledText> </TableOfContentsEntryPattern> </TableOfContents> <PDF source="sourceDoc"> <NoForms/> <NoXFA/> </PDF> </PDF> <StyleProfile name="headerStyle"> <Header> <Left> <StyledText> <p>_SourceTitle</p> </StyledText> </Left> </Header> 
</StyleProfile> <DocumentInformation result='info.xml' source='out.pdf'/> </DDX>"

 

 

Capture.JPG

1 Accepted Solution

Avatar

Correct answer by
Employee

There is no auto-wrap here. What you can do is split the line by a line feed and set the xml:space option to "preserve".

 

<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xml="http://www.w3.org/XML/1998/namespace" >
<PDF result="out.pdf">
<TableOfContents includeInTOC="true" bookmarkTitle="_SourceTitle" toc-margin-top="70pt">
<PageSize width="612pt" height="792pt"/>
<Header>
<Left>
<StyledText xml:space="preserve">
<p font-family="Verdana" font-size="28pt" text-align="left">Wells Fargo Merchant Services
Terms and Conditions</p>
</StyledText>
</Left>
</Header>
<TableOfContentsEntryPattern>
<StyledText>
<p font-family="Verdana" font-size="9pt">
<_BookmarkTitle/>
<leader leader-pattern="dotted"/>
<_BookmarkPageCitation/>
</p>
</StyledText>
</TableOfContentsEntryPattern>
</TableOfContents>
<PDF source="sourceDoc">
<NoForms/>
<NoXFA/>
</PDF>
</PDF>
<StyleProfile name="headerStyle">
<Header>
<Left>
<StyledText>
<p>_SourceTitle</p>
</StyledText>
</Left>
</Header>
</StyleProfile>
<DocumentInformation result="info.xml" source="out.pdf"/>
<?ddx-source-hint name="sourceDoc"?>
</DDX>

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

There is no auto-wrap here. What you can do is split the line by a line feed and set the xml:space option to "preserve".

 

<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xml="http://www.w3.org/XML/1998/namespace" >
<PDF result="out.pdf">
<TableOfContents includeInTOC="true" bookmarkTitle="_SourceTitle" toc-margin-top="70pt">
<PageSize width="612pt" height="792pt"/>
<Header>
<Left>
<StyledText xml:space="preserve">
<p font-family="Verdana" font-size="28pt" text-align="left">Wells Fargo Merchant Services
Terms and Conditions</p>
</StyledText>
</Left>
</Header>
<TableOfContentsEntryPattern>
<StyledText>
<p font-family="Verdana" font-size="9pt">
<_BookmarkTitle/>
<leader leader-pattern="dotted"/>
<_BookmarkPageCitation/>
</p>
</StyledText>
</TableOfContentsEntryPattern>
</TableOfContents>
<PDF source="sourceDoc">
<NoForms/>
<NoXFA/>
</PDF>
</PDF>
<StyleProfile name="headerStyle">
<Header>
<Left>
<StyledText>
<p>_SourceTitle</p>
</StyledText>
</Left>
</Header>
</StyleProfile>
<DocumentInformation result="info.xml" source="out.pdf"/>
<?ddx-source-hint name="sourceDoc"?>
</DDX>

Avatar

Level 2
This heading text(i.e. Wells Fargo Merchant Services Terms and Conditions) is dynamic value from front-end app. How can i split a line dynamically ?