wordSpacing property

double wordSpacing
getter/setter pair

Gets and sets Word spacing value.

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

Implementation

late double wordSpacing;