Foxit PDF SDK 5.3

After creating a new FreeText annotation, I called FSPDF_Annot_SetContents to set its contents, and then called FSPDF_Annot_ResetAppearance. But why are the contents not displayed?

For a FreeText annotation, it’s necessary to set its default appearance (DA). Calling the interface FSPDF_Annot_SetDefaultAppearance is needed for this task. Usually, we suggest setting up at least FSPDF_DEFAULTAPPEARANCE::font and FSPDF_DEFAULTAPPEARANCE::fontSize, while setting the value of FSPDF_DEFAULTAPPEARANCE::flags to FSPDF_DEFAULTAPPEARANCE_FONT.

Note: This article refers to a deprecated version of a Foxit Product. If you are still using Foxit PDF SDK 5.3 or older, please refer to your download package documents for Developer Guide and API Reference.

Get a trial version of the new Foxit PDF SDK and see our latest generation SDK’s brand new features!

Updated on March 26, 2017

Was this article helpful?
Thanks for your feedback. If you have a comment on how to improve the article, you can write it here: