From c1d7aead7fababea0f1f0eb208f73d7c70758a80 Mon Sep 17 00:00:00 2001 From: sameerkhan001 Date: Fri, 13 Feb 2026 14:37:46 +0530 Subject: [PATCH 1/5] 1005726-ug: Extract Form Field Values from PDF documents --- .../NET/Working-with-Text-Extraction.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md index 5f0638fb1..8bfa70542 100644 --- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md +++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md @@ -651,4 +651,18 @@ You can download a complete working sample from [GitHub](https://github.com/Sync Finds a text string on a specific page (index), returning rectangles in matchRect. - \ No newline at end of file + + +## Troubleshooting and FAQ’s + +### What is the recommended way to extract form field values from a PDF document? + +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. + +To retrieve form field values, you have two recommended options: + +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. + +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. + +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. \ No newline at end of file From e9921f93c092f436a99851275891a8968ab45c97 Mon Sep 17 00:00:00 2001 From: sameerkhan001 Date: Mon, 16 Feb 2026 09:48:31 +0530 Subject: [PATCH 2/5] 1005726-ug: Resolved the given feedback. --- .../PDF/PDF-Library/NET/Working-with-Text-Extraction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md index 8bfa70542..a4c7aa40c 100644 --- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md +++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md @@ -657,7 +657,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync ### What is the recommended way to extract form field values from a PDF document? -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. +The [ExtractText](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.PdfPageBase.html#Syncfusion_Pdf_PdfPageBase_ExtractText) API retrieves only the text that is visibly rendered on the page’s graphics layer. It does not extract the values contained in interactive form fields such as text boxes, combo boxes, or buttons. This is because form field data resides in the PDF’s interactive form (AcroForm) structure, separate from the page’s content stream. To retrieve form field values, you have two recommended options: From 39deb8a9ed84c28c05154314806660ab6c81d1ea Mon Sep 17 00:00:00 2001 From: sameerkhan001 Date: Fri, 13 Feb 2026 14:37:46 +0530 Subject: [PATCH 3/5] 1005726-ug: Extract Form Field Values from PDF documents --- .../NET/Working-with-Text-Extraction.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md index 5f0638fb1..8bfa70542 100644 --- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md +++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md @@ -651,4 +651,18 @@ You can download a complete working sample from [GitHub](https://github.com/Sync Finds a text string on a specific page (index), returning rectangles in matchRect. - \ No newline at end of file + + +## Troubleshooting and FAQ’s + +### What is the recommended way to extract form field values from a PDF document? + +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. + +To retrieve form field values, you have two recommended options: + +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. + +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. + +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. \ No newline at end of file From ab84f896d8e71b7add53c0906eabc67fd13a86eb Mon Sep 17 00:00:00 2001 From: sameerkhan001 Date: Mon, 16 Feb 2026 09:48:31 +0530 Subject: [PATCH 4/5] 1005726-ug: Resolved the given feedback. --- .../PDF/PDF-Library/NET/Working-with-Text-Extraction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md index 8bfa70542..a4c7aa40c 100644 --- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md +++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md @@ -657,7 +657,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync ### What is the recommended way to extract form field values from a PDF document? -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. +The [ExtractText](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.PdfPageBase.html#Syncfusion_Pdf_PdfPageBase_ExtractText) API retrieves only the text that is visibly rendered on the page’s graphics layer. It does not extract the values contained in interactive form fields such as text boxes, combo boxes, or buttons. This is because form field data resides in the PDF’s interactive form (AcroForm) structure, separate from the page’s content stream. To retrieve form field values, you have two recommended options: From a9396926e2f34e0c218d6ac709478ef98a3bd597 Mon Sep 17 00:00:00 2001 From: sameerkhan001 Date: Mon, 16 Feb 2026 10:31:10 +0530 Subject: [PATCH 5/5] 1005726-ug: Added proper GitHub link. --- .../PDF/PDF-Library/NET/Working-with-Security.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Document-Processing/PDF/PDF-Library/NET/Working-with-Security.md b/Document-Processing/PDF/PDF-Library/NET/Working-with-Security.md index 992337550..7ecc8d85b 100644 --- a/Document-Processing/PDF/PDF-Library/NET/Working-with-Security.md +++ b/Document-Processing/PDF/PDF-Library/NET/Working-with-Security.md @@ -1608,7 +1608,10 @@ You can download a complete working sample from [GitHub](https://github.com/Sync Read a PDF document permission flags via the [Security.Permissions](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Security.PdfSecurity.html#Syncfusion_Pdf_Security_PdfSecurity_Permissions) property, which returns a bitwise combination of values from the [PdfPermissionsFlags](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Security.PdfPermissionsFlags.html) enumeration. {% tabs %} -{% highlight c# tabtitle="C# [Cross-platform]" %} +{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Security/PDF-permission-viewer/.NET/PDF-permission-viewer/Program.cs" %} + +using Syncfusion.Pdf.Parsing; +using Syncfusion.Pdf.Security; // Load an existing PDF using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf")) @@ -1633,6 +1636,9 @@ using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf")) {% endhighlight %} {% highlight c# tabtitle="C# [Windows-specific]" %} +using Syncfusion.Pdf.Parsing; +using Syncfusion.Pdf.Security; + // Load an existing PDF using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf")) { @@ -1656,6 +1662,9 @@ using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf")) {% endhighlight %} {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +Imports Syncfusion.Pdf.Parsing +Imports Syncfusion.Pdf.Security + ' Load an existing PDF Using loadedDocument As New PdfLoadedDocument("Input.pdf") ' Access the document security settings @@ -1678,7 +1687,7 @@ End Using {% endhighlight %} {% endtabs %} -You can download a complete working sample from GitHub. +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Security/PDF-permission-viewer/.NET). ## Remove password from the user password PDF document