left property
double
get
left
Gets or sets the left margin size.
//Creates a new PDF document.
PdfDocument document = PdfDocument()
//Create and set new PDF margin.
..pageSettings.margins = (PdfMargins()
..left = 20
..right = 40
..top = 100
..bottom = 100)
..pages.add().graphics.drawString(
'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12));
//Saves the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();
Implementation
double get left => _left;
set
left
(double value)
Implementation
set left(double value) {
if (_left != value && !_helper.isPageAdded) {
_left = value;
}
}