Free Support Forum - groupdocs.com

PDF file not rendering properly

PDF file not rendering properly in html.

I used the below pdf in the showcase example GroupDocs.Viewer-for-Java-using-Servlets

http://www.pdf995.com/samples/pdf.pdf

First page of the given PDF has some missing content(see the attached screenshot PDF_partial.jpg). Expected is also attached(Expected.jpg).

Groupdocs team ,could you please assist?

Hi Girisankar,


Thanks for taking interest in GroupDocs.Viewer for Java and showing your concerns.
Can you please tell which version of the API (GroupDocs.Viewer for Java) you integrated in the project? Keen to hear from you.

Best Wishes

Groupdocs-viewer version is 3.2.2 and java 1.8

Hi Again,


Thanks for the prompt reply.
We are not able to reproduce this issue with our sample PDF documents, can you please share the problematic PDF document, we shall investigate the issue using problematic document.
Furthermore, make sure you cloned/downloaded showcase project from here.

Many Thanks

Hi,


I checked doc viewer version 3.7.0 also(Downloaded the latest showcase GroupDocs.Viewer-for-Java-using-Servlets for 3.7.0) In that, sample pdf are not even rendering. Please look the below viewdocument servlet response. pageHtml is coming as blank. However demo.docx is working.

{“success”:true,“path”:“candy.pdf”,“docType”:“Pdf”,“fileType”:“Pdf”,“url”:“http://localhost:8080/GetFile?path=candy.pdf&getPdf=false&useHtmlBasedEngine=false&supportPageRotation=false",“pdfDownloadUrl”:“http://localhost:8080/GetFile?path=candy.pdf&getPdf=true&useHtmlBasedEngine=true&supportPageRotation=false”,“name”:“candy.pdf”,“imageUrls”:null,“lic”:true,“pdfPrintUrl”:“http://localhost:8080/GetPdfWithPrintDialog?path=candy.pdf&useHtmlBasedEngine=true&supportPageRotation=false”,“pageHtml”:[""],“pageCss”:[""],“documentDescription”:"{“maxPageHeight”:841,“widthForMaxHeight”:841,“pages”:[{“w”:595,“h”:841,“number”:0},{“w”:595,“h”:841,“number”:1}]}",“urlForResourcesInHtml”:null,"sharedCss”:null}

See the attached pdfs I tried.




Hi Girisankar,


Thanks for providing us the details.
We are able to reproduce this issue at our end as well. Hence we have logged this issue at GitHub. Please follow this link for future correspondence and further updates regarding this issue.

Have a nice weekend ahead.
Many Thanks

@girisankar.k,

Your reported issue (logged as https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java/issues/35) has been fixed in our latest front-end application GroupDocs.Viewer-for-Java-App. Please download the application from the following repository.