How do I use the PDF-to-Text functions of the PDF-XChange PRO SDK to extract text from the fields of a flattened PDF form?
The text extraction functions of the PDF-XChange PRO SDK cannot be used for this purpose. This is because the extraction algorithm cannot recognise forms or their data after the process of flattening occurs. AcroForm field data can be extracted only when the PDF is in active AcroForm format. When PDF forms are flattened all references to fields and their data is lost.
However, the Export PDF form to FDF function of the Viewer SDK can be used to export PDF form fields before they are flattened. Additionally, the Viewer SDK can export form fields to XML-based XFDF files, which are better for parsing. Another option is to use JavaScript in the Viewer SDK to retain the field values. See here for further information (page 288).
Cookies are necessary in order to enable you to move around the website and use its features, including making purchases through our online store.
We need cookies in order to determine the number of unique users who visit the site, and to provide certain features, such as the login functionality.
We do not use cookies for advertising purposes.
By clicking Accept (or continuing to use the site) you are agreeing to our use of these tools. Learn More
These cookies are necessary for the website to function and cannot be switched off in PDF-XChange systems.
They are usually only set in response to actions made by you that result in a request for services, such as setting your privacy preferences, logging in, or filling in forms.
You can change the settings in your browser to block or alert you about these cookies, but doing so will result in some parts of the site losing functionality.
These cookies do not store any personally identifiable information.
You can contact us by phone, email or our social media accounts — we are here to assist you.