Skip to content

Commit 39deb8a

Browse files
committed
1005726-ug: Extract Form Field Values from PDF documents
1 parent 48ccfaa commit 39deb8a

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,4 +651,18 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
651651
<td>Finds a text string on a specific page (<code>index</code>), returning rectangles in <code>matchRect</code>.</td>
652652
</tr>
653653
</tbody>
654-
</table>
654+
</table>
655+
656+
## Troubleshooting and FAQ’s
657+
658+
### What is the recommended way to extract form field values from a PDF document?
659+
660+
The [ExtractText](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.PdfPageBase.html#Syncfusion_Pdf_PdfPageBase_ExtractText) API returns only visible, rendered text on a page; it does not return values stored in interactive form fields (text boxes, checkboxes, radio buttons, etc.). Form fields live in the PDF’s interactive form structure, not the page content stream.
661+
662+
To retrieve form field values, you have two recommended options:
663+
664+
1. [Flatten form fields](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-forms#flattening-form-fields-in-a-pdf): Converts interactive form fields into static page content, embedding their values directly into the PDF’s text stream. After flattening, any text extraction process (such as ExtractText) will include these values.
665+
666+
Refer to the text extraction section of the PDF [UG documentation](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-text-extraction) for more details.
667+
668+
2. [Iterate through form fields directly](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/working-with-forms#enumerate-the-form-fields): Access each form field in the PDF’s form collection and read its value programmatically. This approach provides the most accurate and structured method for extracting form data.

0 commit comments

Comments
 (0)