characterSpacing property

double characterSpacing
getter/setter pair

Gets and sets Character 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(characterSpacing: 0.5));
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();

Implementation

late double characterSpacing;