fix: dont flatten forms for templates (#2386)

Templates shouldn't have their form flattened until they're
converted to a document.
This commit is contained in:
Lucas Smith
2026-01-14 12:06:28 +11:00
committed by GitHub
parent 34f512bd55
commit c976e747e3
14 changed files with 918 additions and 71 deletions
@@ -185,7 +185,9 @@ export const createEnvelope = async ({
const buffer = await getFileServerSide(documentData);
const normalizedPdf = await makeNormalizedPdf(Buffer.from(buffer));
const normalizedPdf = await makeNormalizedPdf(Buffer.from(buffer), {
flattenForm: type !== EnvelopeType.TEMPLATE,
});
const titleToUse = item.title || title;