File need to be decrypted first
markpdf "/data/app/nyns_front_uc/storage/app/public/attachments/68289af0f229e078daf56e6592e47651.pdf" "/data/app/nyns_front_uc/storage/tmp/68289af0f229e078daf56e6592e4765193.png" "/data/app/nyns_front_uc/storage/myoutputtest.pdf" --tiles --angle=45 --spacing=30 -v 2024/10/16 15:30:59 Input PDF: /data/app/nyns_front_uc/storage/app/public/attachments/68289af0f229e078daf56e6592e47651.pdf 2024/10/16 15:30:59 Watermark Image: /data/app/nyns_front_uc/storage/tmp/68289af0f229e078daf56e6592e4765193.png [DEBUG] parser.go:1530 Pdf version 1.7 ERROR: Failed to get PageCount of the source file. [File need to be decrypted first]
Some Pdf cannot be handle.They can be open without password or else.
I have the same issue. I am running a much simpler command. If I don't get any response, I must move to another solution.
I have the same issue. I am running a much simpler command.
If I don't get any response, I must move to another solution.
Can you please share your command and a sample pdf that has the same issue? That'll help a lot to reproduce and debug the problem.
Hi ajaxray, I realized that this does not work for PDFs marked as secured. Thanks.
Got it. Thanks for sharing your findings @shirishbendre and @ZainXiao . ❤️ I am going to add a note about this limitation.