feat: add PDF password prompt and centralized pdf-lib loader with auto-repair

This commit is contained in:
alam00000
2026-03-26 14:42:48 +05:30
parent 9278774b8a
commit bd44108296
19 changed files with 89 additions and 78 deletions
+1 -3
View File
@@ -49,9 +49,7 @@ export class RepairNode extends BaseWorkflowNode {
}
const resultBytes = new Uint8Array(repairedData);
const resultDoc = await loadPdfDocument(resultBytes, {
throwOnInvalidObject: false,
});
const resultDoc = await loadPdfDocument(resultBytes);
return {
type: 'pdf',