wordWrap property
Gets and sets text wrapping type.
//Create a new PDF document.
PdfDocument document = PdfDocument()
..pages.add().graphics.drawString(
'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
format: PdfStringFormat(wordWrap: PdfWordWrapType.word));
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();
Implementation
late PdfWordWrapType wordWrap;