Highlighted

How to re-embed a font into AcroForm?

Community Beginner ,
Nov 10, 2020

Copy link to clipboard

Copied

I have several hundreds of old PDF forms (AcroForms) to maintain. Most of these forms have the necessary form field fonts embedded into the AcroForm object. But in some of these forms the AcroForm object contains empty font descriptors (e.g. FontDescriptor's FontFile2 attribute has been stripped somehow), thus the font content has been unembedded somehow. How can I re-embed the font content again?

 

It would be easy if the AcroForm did not contain such font descriptors - then we just had to set this font to some form field and the Acrobat would automatically add a new font descriptor in the AcroForm and would embed the font. But if the AcroForm already contains an empty descriptor for this font, it will not create a new one (it will reuse the existing one and will not re-embed the font content). What can we do in this case in order to re-embed the font content?

 

BTW, how has the embedded font content been stripped from the FontDescriptor?

TOPICS
PDF forms

Views

19

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to re-embed a font into AcroForm?

Community Beginner ,
Nov 10, 2020

Copy link to clipboard

Copied

I have several hundreds of old PDF forms (AcroForms) to maintain. Most of these forms have the necessary form field fonts embedded into the AcroForm object. But in some of these forms the AcroForm object contains empty font descriptors (e.g. FontDescriptor's FontFile2 attribute has been stripped somehow), thus the font content has been unembedded somehow. How can I re-embed the font content again?

 

It would be easy if the AcroForm did not contain such font descriptors - then we just had to set this font to some form field and the Acrobat would automatically add a new font descriptor in the AcroForm and would embed the font. But if the AcroForm already contains an empty descriptor for this font, it will not create a new one (it will reuse the existing one and will not re-embed the font content). What can we do in this case in order to re-embed the font content?

 

BTW, how has the embedded font content been stripped from the FontDescriptor?

TOPICS
PDF forms

Views

20

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 10, 2020 0

Have something to add?

Join the conversation