You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Library/NET/Working-with-Security.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1608,7 +1608,10 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
1608
1608
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.
Using loadedDocument As New PdfLoadedDocument("Input.pdf")
1661
1670
' Access the document security settings
@@ -1678,7 +1687,7 @@ End Using
1678
1687
{% endhighlight %}
1679
1688
{% endtabs %}
1680
1689
1681
-
You can download a complete working sample from GitHub.
1690
+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Security/PDF-permission-viewer/.NET).
1682
1691
1683
1692
## Remove password from the user password PDF document
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Library/NET/Working-with-Text-Extraction.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -651,4 +651,18 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
651
651
<td>Finds a text string on a specific page (<code>index</code>), returning rectangles in <code>matchRect</code>.</td>
652
652
</tr>
653
653
</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 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.
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