You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many thanks for maintaining this repo. It's been a great help.
Here I would like to request a feature to add --replace-input flag to allow users to save password-protected files with the same name so that we don't have to delete old password-less files.
here is the error that I've got,
UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "
qpdf: input file and output file are the same; use --replace-input to intentionally overwrite the input file
code snippet:
setTimeout(()=>{try{constpassProtectedPDF=async(): Promise<any>=>{
console.log('[*] into passProtectedPDF!');constpdf={input: pdfFile,output: pdfFile,password: getHCNo,};awaitqpdf2.encrypt(pdf);console.log('[*] end of passProtectedPDF!');};console.log('[*] passProtectedPDF called!');resolve(passProtectedPDF());}catch(err){console.log(err);}},1000);
The text was updated successfully, but these errors were encountered:
Hi @Sparticuz ,
Many thanks for maintaining this repo. It's been a great help.
Here I would like to request a feature to add
--replace-input
flag to allow users to save password-protected files with the same name so that we don't have to delete old password-less files.here is the error that I've got,
code snippet:
The text was updated successfully, but these errors were encountered: