-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No-args constructor for DocumentFormat does not exist #59
Comments
I got passed this issue by deleting “gson-1.4.jar” and replacing with: “gson-2.8.2.jar” in my project. That said, I'm now getting a different error: Error: The source format is missing or not supported |
Wow! I was uploading a JPG file to be converted to PDF. That's where it said "The source format is missing or not supported" When I upload a DOCX file... it happily converts to PDF. Hmm... This used to work with the old forgotten JODConverter... any reason why it was removed here? |
Looking at: DefaultDocumentFormatRegistry.java |
I created a pull request for: JPG, TIFF, and GIF |
Thank you so much for this pull request. I'll take a look as soon as possible tomorrow but I don't see any reason to reject this. Good catch! The supported formats are those supported by the original project (the one I forked). I didn't remove any supported format. I'm not sure why it worked before and not with this version. Thanks again. |
JODConverter now supports JPG, TIFF and GIF formats, thanks again. |
Hi,
I'm attempting to upgrade from the abandoned version of JODConverter to your new improved one. Package names ("artofsolving") and API has changed slightly but appears to be very similar. I thought I hooked everything up properly but now when I try to convert an image to PDF I get the following error.
RuntimeException: No-args constructor for class org.jodconverter.document.DocumentFormat does not exist. Register an InstanceCreator with Gson for this type to fix this problem.
Any ideas?
Thanks,
The text was updated successfully, but these errors were encountered: