textDirection property

PdfTextDirection textDirection
getter/setter pair

Gets and sets text rendering direction.

//Create a new PDF document.
PdfDocument document = PdfDocument()
  ..pages.add().graphics.drawString(
      'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
      format: PdfStringFormat(textDirection: PdfTextDirection.rightToLeft));
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();

Implementation

late PdfTextDirection textDirection;