lineSpacing property
Gets and sets Text leading or Line spacing.
//Create a new PDF document.
PdfDocument document = PdfDocument();
//Draw the text.
document.pages
.add()
.graphics
.drawString('Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
format: PdfStringFormat(lineSpacing: 0.5));
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();
Implementation
late double lineSpacing;