write method
Writes the PDF to output without creating a complete in-memory copy.
Implementation
Future<void> write(
PdfStream output, {
bool enableEventLoopBalancing = false,
}) async {
await _postProcess(enableEventLoopBalancing);
await document.write(
output,
enableEventLoopBalancing: enableEventLoopBalancing,
);
}