pdfcpu / pdfcpu

A PDF processor written in Go.
http://pdfcpu.io/
Apache License 2.0
6.96k stars 480 forks source link

please provide the owner password with -opw #614

Closed wingjson closed 1 year ago

wingjson commented 1 year ago

image Hi,the code report this,but this pdf doesn't have Pwd,I just want to modify the permissions

hhrutter commented 1 year ago

Have you tried passing an empty string for the owner password explicitly? -opw ""

Also do a pdfcpu info 1.pdf and check permissions.

wingjson commented 1 year ago

Hi,yes i have tried using '' ,but also report this,and the 1.pdf has no password,it just doesn't have the copy permission,I have tried use python pypdf2 to deal this pdf, it's normal.

hhrutter commented 1 year ago

I need to see your PDF in order to reproduce, analyse and fix this. You can send me an email.

wingjson commented 1 year ago

hi,i have solved this problem, but i find another problem,and i have sent an email to your gmail.thanks😄

hhrutter commented 1 year ago

Fixed!