tbytes_pdf_flutter library

Fill, flatten, decrypt, and sign PDF forms in Flutter.

This library exposes the public API for parsing PDF documents, working with AcroForm fields, flattening filled forms into static content, decrypting password-protected PDFs, and placing signature images onto PDF pages.

See the package README for a full usage guide, and example/ for a runnable demo of every feature.

Classes

AcroField
Represents a single form field extracted from a PDF.
AcroFormReader
Reads AcroForm fields from a PDF document.
FlattenResult
PdfArr
PDF array object.
PdfBool
PDF boolean object.
PdfDecryptor
PdfDict
PDF dictionary object.
PdfDoc
PdfFlattener
Bakes annotations and/or form fields permanently into PDF page content.
PdfInfoStore
A lightweight key-value store backed by the PDF's Info dictionary.
PdfName
PDF name object (like /Type, /Fields, etc).
PdfNull
PDF null object.
PdfNum
PDF number object (int or double).
PdfObj
Base class for all PDF objects.
PdfRef
PDF indirect reference (e.g., "5 0 R").
PdfStr
PDF string object.
PdfStream
PDF stream object (dictionary + binary data).
PdfWriter
SignatureImagePlacer

Enums

AcroFieldType
Represents the type of a form field.
FlattenQuality
Controls rendering quality for future rasterisation extensions. For the current AP-stream + text flattening path quality has no lossy effect — the AP XObject is embedded as-is.
FlattenTarget