PdfDocument class Null safety

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

Constructors

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 [...]

Properties

attachments PdfAttachmentCollection
Gets the attachment collection of the document.
read-only
bookmarks PdfBookmarkBase
Gets the bookmark collection of the document. [...]
read-only
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.
read-only
fileStructure PdfFileStructure
Gets the internal structure of the PDF document.
read / write
form PdfForm
Gets the interactive form of the document.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
layers PdfLayerCollection
Gets the collection of PdfLayer from the PDF document.
read-only
namedDestinationCollection PdfNamedDestinationCollection
Gets the named destination collection of the document.
read-only
onPdfPassword PdfPasswordCallback?
The event raised on Pdf password. [...]
read / write
pages PdfPageCollection
Gets the collection of pages in the document. [...]
read-only
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. [...]
read-only
security PdfSecurity
Gets the security features of the document like encryption. [...]
read-only
template PdfDocumentTemplate
Gets a template to all pages in the document.
read / write

Methods

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

Operators

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