mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-05 20:02:47 +01:00
feat: add PDF password prompt and centralized pdf-lib loader with auto-repair
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user