Free Support Forum - groupdocs.com

CSS not applied to the Docviewer

Hi

For the docviewer, we are not able to find the CSS getting properly applied to the page. Can you please confirm, from where(file) the style gets appled to the viewer.

We are using the below showcase project

GroupDocs.Viewer-for-Java-using-Servlets

and version 3.2 of API


We are getting as below:


Check6 result.getPageHtml()[i]==
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAxkAAARhCAYAAABONUjdAAAACXBIWXMAAA7DAAAOwwHHb6hkAAB//0lEQVR4nOzd95vcZ3kv/vOXnB++7TohuMgyLpJtQgKEkIDVVtJW9WJZ1eqysX1CSL4phCSYgLGkLZLcm9zAhiTUkJBQTmxigm2tdlda9V626/4+z2dmVqO1moXFcr68Xtd1XzM7OzO7Eniuz1vPcz/3f/tvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div><div><br></div><div><br></div><div>Thanks</div>

Hi Ram,


Thanks for posting your concerns.
Please share problematic file, so that we can investigate this issue at our end as well.

Thanks

GertDocumentPageHTML and ViewDocumentPage are the files we are using, The issue wwhich we are facing is that if a PDF file contains image and Texts in a document, image is getting loaded first and then the texts are coming, Will share you the screenshot.


Sharing the recorded files of the 2 class files

Hi Ram,


Thanks for providing us the concerned files.
Can you please also share problematic file along with the screenshots? We’ll appreciate your cooperation.

Kind regards

Hi Atir,


In ViewDocument.java, inside GetHtmlPages method to get the page.GetHTMLPage(), we are getting empty response.

List test = page.getHtmlResources();


Hi Ram,


Thanks for providing the concerned data.
Did you enable resource embedded true? Please enable embedded resources as follows and share your feedback.
HtmlOptions htmlOptions = new HtmlOptions();
htmlOptions.setResourcesEmbedded(true);
We’d also recommend you to use/integrate latest release of the API in your project.

Best Wishes

Hi Atir,


We are alraedy using the above mentioned piece of codes in ViewDocument Class

Hi Ram,


The issue wwhich we are facing is that if a PDF file contains image and Texts in a document, image is getting loaded first and then the texts are coming, Will share you the screenshot.
Can you please share the screenshots?

Thanks

Hi Atir,


Attaching the screenshot

Hi Ram,


Please also share the problematic file. We’ll try to reproduce the issue at our end using that file.
Also tell us, which browser your are using?

Kind regards

Hi,


We are using Google Chrome browser. In IE 11 its working fine.

Hi Ram,


In what IE version do you want to run the viewer ? And I hope it’s working well in Google Chrome as well.

Thanks