cognidox / OfficeToPDF

A command line tool to convert Microsoft Office documents to PDFs
https://www.cognidox.com/
Other
610 stars 137 forks source link

Protect PDF against printing #34

Closed bottasergio closed 5 years ago

bottasergio commented 5 years ago

I want to to protect the generated PDF against printig. I use this syntax:

OfficeToPDF.exe "WORD CON IMAGEN.docx" xx.pdf /pdf_restrict_print /pdf_owner_pass "pass7"

But, when I open xx.pdf I can print it without entering the password.

vittala commented 5 years ago

Hi

There's a bug caused by command line parsing. Try putting the filename of the document that needs converting and the destination file at the end of the command:

OfficeToPDF.exe /pdf_restrict_print /pdf_owner_pass "pass7" "WORD CON IMAGEN.docx" xx.pdf

Regards Vittal

bottasergio commented 5 years ago

Excellent! It works!!!!