UI customization

Hi,


I got a couple of questions while integrating GroupDocs Viewer for Java into my application.

1. How can I customize the look and feel of the out of the box Groupdocs Header and viewer script.
2. How can I make file downloadable and printable with watermark?

Thanks,
Milan
Hello Milan ,

Thank you for your inquiry.

GroupDocs.Viewer for Java is flexible and provides a number of built-in triggers for the JavaScript requests to control file viewing, please investigate this article for the customization.

To add a watermark to a document, you should use watermarkText and watermarkColor parameters . All these parameters should be configured in the application.properties file. Please investigate this article, it will show you all available parameters that the Viewer library has.


If you will have more questions please feel free to contact us.

--------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+

Hi Evgen,


Thanks for your answer. I am able to set watermark on viewer and able to view it on browser however if I download or print the file, the file get downloaded or printed with no watermark.

Can you please help me out here how can I print or download a file with watermark text?

Thanks
Milan
Hello,

To enable a print with the watermarks you should add next parameters:

groupdocs.viewer.usePdfPrinting=true
groupdocs.viewer.printWithWatermark=true

Unfortunately, at the moment, download the document with the watermarks is not possible. But this feature will be available in the next generation of the library which will be released soon.

Please stay tuned with our newsletters .

-------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+

Hi Evgen,


Thanks for your response.
I tried enabling these parameters for printing with watermark however after clicking on print button, I am getting some hex text type thing opening in new tab.

I am attaching screenshot for your reference. Can you please help me in resolving this issue?

Best,
Milan
Hello Milan,

Seems that the issue depends of your browser. Could you please specify a version of your browser with us or try to use another browser for testing.

We will wait for your details.

--------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+

Hi Evgen,


I am using Google Chrome 49.0.2623.87.
I tried on firefox and it worked. Can you please help me resolving this issue on Google Chrome as well?

Thanks,
Milan
Hello again,

We have tested the scenario with your version of the Chrome browser , but we can't reproduce the issue. As you can see on a screenshot , this method works well for us. We think that you have some extensions on your browser that can override the headers. Could you please reinstall your Chrome browser and test it again .

Or you can share with us all info about request and response with headers. We will compare this info with our.

-------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+