AEM Forms 6.2 JEE - Embedding Fonts | Community
Skip to main content
James_R_Green
New Participant
May 1, 2018
Solved

AEM Forms 6.2 JEE - Embedding Fonts

  • May 1, 2018
  • 13 replies
  • 7238 views

Hi,

I have a PDF template that uses a custom font let's call it XYZ. Data is being added to this form via the PDF output service. When viewed on a machine that doesn't have XYZ installed, the font is not present. I would like to embed XYZ into the generated PDF document as I do not expect users to have the font installed as a prerequisite of viewing my documents! I think this maybe possible as I can see embed options on the server, but can't find detailed documentation online.

Below is what I have tried so far:

The font is installed on the windows machine the server is running on and is also available in the aem forms/font directory referenced within the settings of adminui.

I have also tried to "always embed" the  fonts in a couple of places

Home > Services > PDF forms

Font Embedding Settings

     Always Embed Fonts: XYZ

and I also tried adding a configuration under:

Home > Services >PDF Generator > Adobe PDF Settings

Always embed: XYZ

The always embed fonts setting is also check here, and I set this configuration to be the default.

I have restarted the server after making these changes.

Does anyone know the steps to embed a custom font?

Thanks,

Jim

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DarrenBiz

Have you definitely got all of the font files you require on the Linux instance? Are they located in a font configuration folder that the JEE instance can access with the correct read perms?

Have you added in the addition RPMs, etc for Linux that are listed here: Installing and configuring AEM 6.1 forms (the link says 6.1 but its actually 6.2)

13 replies

James_R_Green
New Participant
May 2, 2018

Hi,

My output was set to PDF as opposed to PDF/A. Once I changed this with the font files in the aem_jee/fonts dir it worked.

Thanks,

James

H
DarrenBiz
New Participant
May 2, 2018

If you are using the Output service then you will need to add the font to the Home > Services > Output configuration as well

Mayank_Gandhi
Employee
May 2, 2018

Hi James,

Try updating the xci file with embed flag set to 1 as shown below and pass this updated XCI in the XCI URI while you invoke the output service[0].

<fontInfo>
       <embed>1</embed>
       ...
</fontinfo>

sample snippet from the XCI file :

<PDFDynamic>1</PDFDynamic> -->

<xdc>

<uri>adobepdf.xdc</uri>

</xdc>

<version>1.7</version> <!-- 1.2=acrobat 3|1.3=acrobat 4 -->

                <adobeExtensionLevel>11</adobeExtensionLevel>

                <linearized>0</linearized>

                <fontInfo>

                   <embed>1</embed> <!-- 0|1 -->

                   <map>

                      <!-- [0..n] Attributes: from='', to='' [0..n]  -->

      <equate from='Courier_*_*' to='Courier New_*_*' force="0"/>

    <equate from='CourierNew_*_*' to='Courier New_*_*' force="0"/>

    <equate from='Courier-New_*_*' to='Courier New_*_*' force="0"/>

    <equate from='MyriadPro_*_*' to='Myriad Pro_*_*' force="0"/>

    <equate from='MyriadPro-Regular_*_*' to='Myriad Pro_*_*' force="0"/>

    <equate from='MyriadPro-It_*_*' to='Myriad Pro_*_italic' force="0"/>

    <equate from='MyriadPro-SemiboldSemiCn_*_*' to='Arial Narrow_bold_*' force="0"/>

    <equate from='MyriadPro-SemiboldCond_*_*' to='Arial Narrow_bold_*' force="0"/>

    <equate from='MinionPro_*_*' to='Minion Pro_*_*' force="0"/>

    <equate from='MinionPro-Regular_*_*' to='Minion Pro_*_*' force="0"/>


Thanks,
Mayank Gandhi

[0] Adobe LiveCycle ES4 * generatePDFOutput operation