How to add AcroForm dictionary to my PDF?

Product: Apryse SDK .NET

Product Version: 11.3

It looks like my PDF missing an AcroForm dictionary. How can I add that to the document? Do I need to add the AcroForm to my PDFDoc or an SDFObj?

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


If your PDF is missing an AcroForm dictionary, you can add it using the Apryse SDK. The AcroForm dictionary is typically part of the document catalog, and you would add it to your PDFDoc. The SDF (Structured Data Format) layer allows you to manipulate these dictionaries directly.

Some things you can try:

  • Access the document’s catalog using the PDFDoc’s SDFDoc to retrieve or create the AcroForm dictionary.

  • Create a new AcroForm dictionary if it does not exist and set it in the document catalog.

  • Use the pdftron.SDF.SDFDoc class to work with low-level PDF objects.

  • Ensure any form fields you add are linked to this AcroForm dictionary.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

Hello,

Thanks for reaching out to us. The AcroForms capabilities can be accessed through the use of our InteractiveForms features. We have samples which show how you can go about adding various additions such as new fields, widgets, and more.

Please reference our example and let our team know if you are looking for something more specific beyond what is showcased.

Thank you

1 Like