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?
Have something to add?