This activity pack contains the following activities that can be used to read and modify PDF Forms:
1. Get All Form Field Names and Values
1. Get All Form Field Names and Values
This activity can be used to get the all the Names and Values of all the fields in the PDF Form.
• File Path (String): The path to the PDF Form (Relative or Full Path)
• All Field Names and Values (Dictionary<String,String>): A dictionary with Field Name as Key and Field Value as Value
This activity can be used to get the value of a specific field in the PDF Form.
· File Path (String): The path to the PDF Form (Relative or Full Path)
· Field Name (String): The name of the field which value must be fetched
• Field Value (String): Field value fetched from the PDF Form Field
This activity can be used to set values to a field or multiple fields at once in the PDF Form.
· Template File Path (String): The path to the PDF Form that will be used as base template (Relative or Full Path)
· Output File Path (String): The path to the output PDF form which will be created after setting the field values (Relative or Full Path)
· Field Name and Values (Dictionary<String,String>): A dictionary with Field Name as Key and Field Value as Value
Exceptions (Across all the 3 Activities):
• iTextSharp.text.exceptions.InvalidPdfException: PDF header signature not found: This exception will be raised if the file path supplied doesn’t point to a PDF File or cases where it points to a corrupted PDF File.
Exception Type: iTextSharp.text.exceptions.InvalidPdfException
Message: PDF header signature not found.