Hi Syncfusion team,
I would like to read the content from PDF fields on PDFs which were printed as PDF. In another words, I do not have problem reading the PDF fields when they are editable. Once the entire file is printed, all fields become read-only. I cannot find a way to read those fields at that time.
Could you please let me know how could I read those fields? In the example attached, I would like to read(extract) the field with the content "John"
T
PdfDocument document = PdfDocument(inputBytes: file.readAsBytesSync());
final PdfField field = document.form.fields[0];
_text = (field as PdfTextBoxField).text; // this works when fields are editable.
_text = PdfTextExtractor(document).extractText(); // this reads everything when PDF is printed with the exception of fields
Attachment:
examples_6bff14dc.zip