This commit is contained in:
Reece 2025-11-13 16:49:06 +00:00
parent b978f1848a
commit 7fe93674a0

View File

@ -86,7 +86,7 @@ export async function flattenSignatures(options: SignatureFlatteningOptions): Pr
}
}
// Step 3: Use EmbedPDF's saveAsCopy to get the base PDF (now without annotations)
// Step 3: Use EmbedPDF's saveAsCopy to get the original PDF (now without annotations)
if (!exportActions) {
console.error('No export actions available');
return null;
@ -168,7 +168,7 @@ export async function flattenSignatures(options: SignatureFlatteningOptions): Pr
const rect = annotation.rect || annotation.bounds || annotation.rectangle || annotation.position;
if (rect) {
// Extract base annotation position and size
// Extract original annotation position and size
const originalX = rect.origin?.x || rect.x || rect.left || 0;
const originalY = rect.origin?.y || rect.y || rect.top || 0;
const width = rect.size?.width || rect.width || 100;