PdfFileStructure constructor
PdfFileStructure()
Initializes a new instance of the PdfFileStructure class.
//Create a PDF document instance.
PdfDocument document = PdfDocument();
//Set the PDF document version.
document.fileStructure.version = PdfVersion.version1_7;
//Create page and draw text.
document.pages.add().graphics.drawString(
'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
brush: PdfBrushes.black, bounds: Rect.fromLTWH(0, 0, 0, 0));
//Save and dispose document.
List<int> bytes = await document.save();
document.dispose();
Implementation
PdfFileStructure() {
_version = PdfVersion.version1_7;
crossReferenceType = PdfCrossReferenceType.crossReferenceTable;
incrementalUpdate = true;
_fileID = false;
}