@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.js CHANGED
@@ -2574,7 +2574,7 @@ async function generatePdfFromContent(content, options = {}) {
2574
2574
  const warnings = await addFormFields(pdfDoc, state.fieldPositions, fields);
2575
2575
  if (warnings.length > 0) fieldWarnings = warnings;
2576
2576
  }
2577
- const pdfBytes = await pdfDoc.save({ useObjectStreams: false });
2577
+ const pdfBytes = new Uint8Array(await pdfDoc.save({ useObjectStreams: false }));
2578
2578
  return {
2579
2579
  pdfBytes,
2580
2580
  fieldPositions: state.fieldPositions,