noClip property
Gets and sets whether the text region should be clipped or not.
//Create a new PDF document.
PdfDocument document = PdfDocument()
..pages.add().graphics.drawString(
'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
bounds: Rect.fromLTWH(0, 0, 200, 100),
format: PdfStringFormat(
alignment: PdfTextAlignment.center,
lineAlignment: PdfVerticalAlignment.middle,
characterSpacing: 1,
lineSpacing: 1.1,
measureTrailingSpaces: true,
paragraphIndent: 2.1,
wordSpacing: 1.5,
wordWrap: PdfWordWrapType.word,
subSuperscript: PdfSubSuperscript.subscript)
..clipPath = true
//Set no clip.
..noClip = true
..lineLimit = true);
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();
Implementation
bool noClip = false;