Expand my Community achievements bar.

SOLVED

Font supported by AssemblerService in AEM Forms

Avatar

Level 2

While generating the Table of Contents (TOC) we would like to know on following concerns, sample DDX file at [1].

  1. how many OOTB fonts are supported by - com.adobe.fd.assembler.service.AssemblerService
  2. how to supply custom font parameter to com.adobe.fd.assembler.service.AssemblerService

DDX Source [1]

<?xml version="1.0" encoding="UTF-8"?>

<DDX xmlns=http://ns.adobe.com/DDX/1.0/>

<PDF result="out.pdf">

<PDF source="pdf1" pages="1"/>

<PageMargins left="1in" top="0.75in" right="0.75in" bottom="1in"/>

<TableOfContents createLiveLinks="false">

<Header styleReference="HeaderStyle"/>

<Footer styleReference="FooterStyle"/>

<TableOfContentsEntryPattern applicableLevel="1" >

<StyledText>

<p font-family="serif" font-size="12pt">

<_BookmarkTitle/><leader leader-pattern="dotted"/>

<_BookmarkPageCitation/>

</p>

<p></p>

</StyledText>

</TableOfContentsEntryPattern>

</TableOfContents>

<PDF source="pdf1" pages="3-5"/>

<PDF source="pdf2"/>

<PDF source="pdf1" pages="6"/>

</PDF>

<StyleProfile name="HeaderStyle">

<Header padding="0.4in">

<Left>

<StyledText>

<p font-size="32pt" font-weight="900" color="steelblue"

font="roboto-bold">TABLE</p>

<p font-size="32pt" font-weight="900" color="black"

font-family="roboto-bold">OF CONTENTS</p>

</StyledText>

</Left>

</Header>

</StyleProfile>

<StyleProfile name="FooterStyle">

<Footer padding=".25in">

<Center>

<StyledText>

<p font-size="10pt"><i>Coforge Demo for Insurance Domain</i></p>

</StyledText>

</Center>

<Right>

<StyledText>

<p font-size="9pt"> <_PageNumber/> </p>

</StyledText>

</Right>

</Footer>

</StyleProfile>

</DDX>

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@nitin_seth 

Please find below my responses:

  • how many OOTB fonts are supported by - com.adobe.fd.assembler.service.AssemblerService

There is no limitation to the number of fonts you can embed, but we have seen instances where the output PDF size increases drastically, so you can use the optimizeFont option of DDX to decrease the file size of the merged PDF file. The condition is that the required fonts are on the server for font optimization to work. It is highly unlikely that the conversion will succeed if all the required fonts are unavailable.

 

  • how to supply custom font parameter to com.adobe.fd.assembler.service.AssemblerService

You can set the fonts via DDX; more information here (page- 112)- 

https://helpx.adobe.com/pdf/aem-forms/6-2/ddxRef.pdf 

Make the custom font available: Go to http://[server]:[port_number]/system/console/configMgr​ and edit "CQ-DAM-Handler-Gibson Font Manager Service".

Add the path to your font library. Alternatively, you can add the font to "[AEM Install Dir]/crx-quickstart/fonts"

 

View solution in original post

2 Replies

Avatar

Employee Advisor

@nitin_seth there is no limitation on no. of fonts. You can embed the fonts in pdf/xdp and retry

Avatar

Correct answer by
Employee Advisor

@nitin_seth 

Please find below my responses:

  • how many OOTB fonts are supported by - com.adobe.fd.assembler.service.AssemblerService

There is no limitation to the number of fonts you can embed, but we have seen instances where the output PDF size increases drastically, so you can use the optimizeFont option of DDX to decrease the file size of the merged PDF file. The condition is that the required fonts are on the server for font optimization to work. It is highly unlikely that the conversion will succeed if all the required fonts are unavailable.

 

  • how to supply custom font parameter to com.adobe.fd.assembler.service.AssemblerService

You can set the fonts via DDX; more information here (page- 112)- 

https://helpx.adobe.com/pdf/aem-forms/6-2/ddxRef.pdf 

Make the custom font available: Go to http://[server]:[port_number]/system/console/configMgr​ and edit "CQ-DAM-Handler-Gibson Font Manager Service".

Add the path to your font library. Alternatively, you can add the font to "[AEM Install Dir]/crx-quickstart/fonts"