PDF to HTML conversion exception in Java

Hi,


I am evaluating the Conversion lib for our company, I downloaded the samples from Github und added a pdf from our company to the SourceFolder and tried to convert it. Unfortunately I get following Exception.

Exception in thread “main” class com.groupdocs.conversion.a.c: Exception of type System.Exception was thrown.
com.groupdocs.conversion.domain.a.k.a(Unknown Source)
com.groupdocs.conversion.domain.b.a(Unknown Source)
com.groupdocs.conversion.domain.b.a(Unknown Source)
com.groupdocs.conversion.handler.ConversionHandler.convert(Unknown Source)
com.groupdocs.conversion.handler.ConversionHandler.convert(Unknown Source)
com.groupdocs.conversion.examples.Conversion.convertToWordAsFilePath(Conversion.java:132)
com.groupdocs.conversion.examples.MainClass.main(MainClass.java:24)
at com.groupdocs.conversion.domain.a.k.a(Unknown Source)
at com.groupdocs.conversion.domain.b.a(Unknown Source)
at com.groupdocs.conversion.domain.b.a(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.convert(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.convert(Unknown Source)
at com.groupdocs.conversion.examples.Conversion.convertToWordAsFilePath(Conversion.java:132)
at com.groupdocs.conversion.examples.MainClass.main(MainClass.java:24)


The pdfs shipped with the example and one of our Word files works fine.

Do you know what can cause the above exception? What is the best way to privately share the pdf with you?

Thank you,
Regards
Martin

@martin.kallinger,


Thanks for taking interest in GroupDocs.Conversion for Java and posting your concerns.
I marked the post as private. Hence, you can share the file here without any fear. You can learn more about our privacy policies here.
Do you know what can cause the above exception?
We want the problematic file in order to investigate this issue. Please share the problematic file also tell which version of the API you integrated in the project?

Have a nice day ahead!
Best wishes

We use the 17.3.0 version. I attached the problematic pdf.


Thank you for your help

@martin.kallinger,


Thanks for sharing the concerned information.
We successfully reproduced this issue at our end as well. Hence, we’ve logged it in our internal issue tracking system with ID:CONVERSIONJAVA-411. As we get any update from the concerned team, you’ll be notified.

Your patience will be highly appreciated!
Best regards

@atirtahir3 any update on the Issue so far?

Thanks

@martin.kallinger,

Unfortunately, there is no update from the concerned team yet. We are in contact with them. As we get any update, you’ll be notified.

@martin.kallinger,

The document you shared with us is password protected. You need to define password of the document as follows:

LoadOptions loadOptions = new LoadOptions();
loadOptions.setPassword("PasswordGoesHere");

And pass LoadOption to converter:

List<String> convertedDocumentPath = conversionHandler.<List<String>> convert(fileName, loadOptions, saveOption);

For further details, please visit this article and let us know if you face any further issues.

@atirtahir3 Thank you for checking the pdf. The pdf has only a protection to protect against manipulation, for viewing no password is requiered. Is there a way to still convert the pdf without knowing the password because we do not know the password of the pdf?

@martin.kallinger,

Thanks for providing the details. We shared the scenario with concerned team. As we get any response from them in this regard, we’ll apprise you.

@martin.kallinger,

We got an update from the concerned team. We’re afraid but there is no work-around, you have to set password for a protected document. No matter password is not required for viewing purpose at all. However, if conversion of such protected documents are supported in any of the future release, we’ll apprise you.

@martin.kallinger,

Your reported issue CONVERSIONJAVA-411 shall be resolved in 17.11 version of the API. As the release gets on-board, you shall be notified.