Skip to content

Create Form items like radio buttons, push buttons #562

Closed Answered by jbarlow83
sanksara asked this question in Q&A
Discussion options

You must be logged in to vote

The best way to do is inspect an existing PDF with a form in it. You could use the "Preflight" tool in Acrobat or the free iText RUPS app to see PDF internals; these tools are pretty essential for anyone who works with PDFs. When you see the objects that correspond to the form, usually most of what you need to do is create a pikepdf.Dictionary() object that replicates the same data structure.

You may find it easier to use the Python "borb" library, which does have some basic support for creating PDF forms. (However, it's license is AGPL if that is a concern to you.)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sanksara
Comment options

@jbarlow83
Comment options

Answer selected by sanksara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants