PDF file only has modify password, when convert to PDF image, Exception happened:
com.groupdocs.conversion.exception.PasswordProtectedException: Exception of type System.Exception was thrown.
com.groupdocs.conversion.converter.c.f.cbr(Unknown Source)
com.groupdocs.conversion.converter.c.f.a(Unknown Source)
com.groupdocs.conversion.handler.ConversionHandler.e(Unknown Source)
com.groupdocs.conversion.handler.ConversionHandler.convert(Unknown Source)
com.groupdocs.conversion.handler.ConversionHandler.convert(Unknown Source)
is there any option to convert without provide modify password?
Hello,
Thank You for taking interest in GroupDocs.Conversion for Java and posting your query.
Can you please tell us which version of the API you are using ?
Thank You.
That would be latest 3.0.0
Yes, we are using latest version 3.0.0
Hello,
Thank you for the reply.
As password protected files contains confidential information and only that person who knows the exact password has authority to view its content.
So that conversion API can not read its content until its password has not been provided along with the file.
In order to learn how to convert password protected files please have a look into following resources.
Hi,
Thank you for the explanation.
However, we can still view the content of this password protected PDF. It’s only protected from Modify. Is it not supported by GroupDocs.Conversion either?
Best Regards,
Jason Zhang
Hell Jason,
Can you please elaborate the word Modify, is it a software which set passwords on files.
Thank You.
Hello Jason,
Can you please elaborate the word Modify, is it a software which set passwords on files.
Thank You.
Hello,
As you may know, PDF Password Protection can be applied at different behaviour level, for example, Open PDF, Modify PDF and so on. In this case,our PDF password protection is applied in Modify PDF level which means we can open and view the PDF with no problem.
Best Regards,
Jason Zhang
Please refer attached file for details.
Thanks.
Hello Jason,
Thank You for your reply and the explanations.
We have investigated your issue and concluded that you have to provide the correct password using setPassword(“Your Password Here”) function of loadOptions class, as Next Generation GroupDocs.Conversion does not have any option to convert protected file without providing modify password.
Best Wishes