pageSettings property

PdfPageSettings pageSettings

Gets or sets the PdfPageSettings of the section.

//Create a new PDF documentation
PdfDocument document = PdfDocument();
//Create a new PDF section
PdfSection section = document.sections!.add();
//Sets the page settings of the section
section.pageSettings =
    PdfPageSettings(PdfPageSize.a4, PdfPageOrientation.portrait);
//Sets the template for the page in the section
section.template = PdfSectionTemplate();
//Create a new PDF page and draw the text
    'Hello World!!!', PdfStandardFont(PdfFontFamily.helvetica, 27),
    brush: PdfBrushes.darkBlue, bounds: const Rect.fromLTWH(170, 100, 0, 0));
//Save the document.
List<int> bytes = await;
//Dispose the document.


PdfPageSettings get pageSettings {
  PdfMarginsHelper.getHelper(_helper.settings.margins).isPageAdded =
  PdfPageSettingsHelper.getHelper(_helper.settings).isPageAdded =
  return _helper.settings;
void pageSettings=(PdfPageSettings settings)


set pageSettings(PdfPageSettings settings) {
  if (_helper._pages.isEmpty) {
    _helper.settings = settings;