lineLimit property

bool lineLimit
getter/setter pair

Gets and sets whether entire lines are laid out in the formatting rectangle only or not.

//Create a new PDF document.
PdfDocument document = PdfDocument()
      'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
      bounds: Rect.fromLTWH(0, 0, 200, 100),
      format: PdfStringFormat(
          lineAlignment: PdfVerticalAlignment.middle,
          characterSpacing: 1,
          lineSpacing: 1.1,
          measureTrailingSpaces: true,
          paragraphIndent: 2.1,
          wordSpacing: 1.5,
          wordWrap: PdfWordWrapType.word,
          subSuperscript: PdfSubSuperscript.subscript)
        ..clipPath = true
        ..noClip = true
        //Set line limit.
        ..lineLimit = true);
//Save the document.
List<int> bytes = await;
//Close the document.


bool lineLimit = true;