@signiphi/pdf-compose 0.1.0-beta.6 → 0.1.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2540,7 +2540,7 @@ async function generatePdfFromContent(content, options = {}) {
2540
2540
  const warnings = await addFormFields(pdfDoc, state.fieldPositions, fields);
2541
2541
  if (warnings.length > 0) fieldWarnings = warnings;
2542
2542
  }
2543
- const pdfBytes = await pdfDoc.save({ useObjectStreams: false });
2543
+ const pdfBytes = new Uint8Array(await pdfDoc.save({ useObjectStreams: false }));
2544
2544
  return {
2545
2545
  pdfBytes,
2546
2546
  fieldPositions: state.fieldPositions,