@signiphi/pdf-compose 0.1.0-beta.3 → 0.1.0-beta.4

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
@@ -2553,7 +2553,11 @@ async function generatePdfFromTiptap(content, values) {
2553
2553
  const { content: expanded, values: enrichedValues } = expandRepeatContent(content, values);
2554
2554
  const suppressed = suppressZeroContent(expanded, enrichedValues);
2555
2555
  const replaced = replaceVariablesInContent(suppressed, enrichedValues);
2556
- const result = await generatePdfFromContent(replaced);
2556
+ const fields = extractFieldsFromContent(replaced);
2557
+ const result = await generatePdfFromContent(replaced, {
2558
+ embedFormFields: fields.length > 0,
2559
+ fields
2560
+ });
2557
2561
  return { pdfBytes: result.pdfBytes };
2558
2562
  }
2559
2563
  async function generatePdfFromMarkdown(markdown, values) {