@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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.d.ts +1 -0
- package/dist/utils/pdf-generator.d.ts +1 -1
- package/dist/utils/pdf-generator.d.ts.map +1 -1
- package/dist/utils/template-pipeline.d.ts +1 -1
- package/dist/utils/template-pipeline.d.ts.map +1 -1
- package/package.json +7 -3
- package/src/styles/index.d.ts +1 -0
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,
|