Fill and Sign a PDF Form on Android
PSPDFKit enables you to fill and sign forms in a PDF document — both manually through the UI, and programmatically.
Filling In Fields
For standard form fields such as text boxes and radio buttons, users can fill in fields using the UI.
You can also programmatically fill form fields using the forms API.
A signature can be added whether or not a document has already been prepared with a signature form field. Both possibilities are covered below.
Documents can be signed by applying a user-created electronic signature via drawing, typing, or placing a captured image of a signature. Or, they can be signed cryptographically by leveraging Digital Signatures. You can read about the difference between Electronic Signatures and Digital Signatures in our overview.
With an Existing Signature Form Field
When a user taps on an unsigned signature form field, the Electronic Signatures UI pops up, allowing them to create an ink, typed, or image signature. Once this is created, it’s overlaid and fit in the same location as the signature field. It’s possible to add an electronic signature programmatically by creating and positioning the annotation yourself. You can find out more about both of these options in our guide on adding electronic signatures.
If you want to use a digital (cryptographic) signature instead of an electronic signature, you can programmatically add a digital signature.
Without an Existing Signature Form Field
If the document hasn’t already been prepared with a signature field, you can programmatically add a signature field.
Another option that doesn’t require a signature field is for the user to use the signature button in the toolbar to add an electronic signature on any page. The user must manually resize and move the annotation to the desired position. This possibility is also covered by our guide on adding electronic signatures.