PdfDocument class Null safety

Represents a PDF document and can be used to create a new PDF document from the scratch.


PdfDocument({List<int>? inputBytes, PdfConformanceLevel? conformanceLevel, String? password})
Initialize a new instance of the PdfDocument class from the PDF data as list of bytes [...]
PdfDocument.fromBase64String(String base64String, {String? password})
Initialize a new instance of the PdfDocument class from the PDF data as base64 string [...]


attachments PdfAttachmentCollection
Gets the attachment collection of the document.
bookmarks PdfBookmarkBase
Gets the bookmark collection of the document. [...]
colorSpace PdfColorSpace
Gets the color space of the document. This property can be used to create PDF document in RGB, Grayscale or CMYK color spaces. [...]
read / write
compressionLevel PdfCompressionLevel?
Gets or sets the PDF document compression level.
read / write
documentInformation PdfDocumentInformation
Gets document's information and properties such as document's title, subject, keyword etc.
fileStructure PdfFileStructure
Gets the internal structure of the PDF document.
read / write
form PdfForm
Gets the interactive form of the document.
hashCode int
The hash code for this object. [...]
read-only, inherited
layers PdfLayerCollection
Gets the collection of PdfLayer from the PDF document.
namedDestinationCollection PdfNamedDestinationCollection
Gets the named destination collection of the document.
onPdfPassword PdfPasswordCallback?
The event raised on Pdf password. [...]
read / write
pages PdfPageCollection
Gets the collection of pages in the document. [...]
pageSettings PdfPageSettings
Gets the document's page setting. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sections PdfSectionCollection?
Gets the collection of the sections in the document. [...]
security PdfSecurity
Gets the security features of the document like encryption. [...]
template PdfDocumentTemplate
Gets a template to all pages in the document.
read / write


dispose() → void
Releases all the resources used by document instances. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
save() List<int>
Saves the document and return the saved bytes as list of int. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]