Hi,
We are working on migrating to GroupDocs for java form GroupDocs for .Net.
There seems to be an issue with conversion of some pdf files.
133d0a13-88f2-434e-a7a1-23579c4c5670.pdf (399.2 KB)
Resulting conversion using our new implementation with Java is this:
image.jpg (133.9 KB)
I believe that this is not a issue with our implementation because i have taken inspiration from the demo you have provided on github. Running the same pdf with demo locally I get the following result:
image.jpg (134.8 KB)
Could you please advise us on how to resolve this issue?
Thank you in advance.
Best regards,
Luka
@luka.brcic
Could you please provide more details about the specific issues you are encountering with the PDF conversion in GroupDocs.Viewer for Java? For example, what differences are you observing in the output images compared to your expectations?
@luka.brcic
Hi Luka,
I’ve checked the attached PDF file and 2 images, and also converted this PDF to HTML and PNG on my side using the latest version of GroupDocs.Viewer. In all cases I was not able to find any visible issues on the produced files compared to the original PDF. I’m attaching here 2 files, which I’ve obtained on my side when rendering the provided PDF to HTML and PNG, they both seem to be correct. If no, then please point us what exactly is wrong with them.
licensed-page1.jpg (157.4 KB)
licensed-embedded-page1.7z (434.3 KB)
Thanks and waiting for your reply.
With best regards,
Denis Gvardionov
Hi Denis,
Thank you for the fast reply.
I see that you have done the conversion using the HtmlViewOptions.forEmbeddedResources() but in your demo and we are using HtmlViewOptions.forExternalResources(). As i understand using external resource is supposed to make conversions of larger documents more performant.
We have ben using the 24.8 version and I have bumped it up to 25.2 and the results are promising, but there is still one some issue I can see on the second page of the document regarding the background near the footer.
Converted document:
image.png (68.1 KB)
Original:
image.jpg (197.5 KB)
Looking forward to hearing from you.
Best regards,
Luka
@luka.brcic
Hi Luka,
Thanks for the clarification and for the screenshots, now the issue with a violet strip on the bottom of the 2nd page is clear. This is a bug and it is present in the latest versions of both GroupDocs.Viewer for .NET and GroupDocs.Viewer for Java. Interesting, that this bug occurs only when rendering document to the HTML (both embedded and external modes), but not when rendering to PNG or JPEG. So if this is acceptable for your purposes, you may temporarily use these conversion modes while our developers are working on the bug.
The issue is logged as VIEWERNET-5345 at our internal tracking system and attached to this thread, we will notify you when it will be fixed.
Sorry for the inconvenience.
With best regards,
Denis Gvardionov