write method

Future<void> write(
  1. PdfStream output, {
  2. bool enableEventLoopBalancing = false,
})

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,
  );
}