Is it possible to apply watermark to pdfviewer?

3 Answers 323 Views
PdfViewer
Lee
Top achievements
Rank 1
Lee asked on 11 Oct 2022, 08:19 AM

I want to add a watermark to the pdf file to be displayed in pdfviewer.

Please inquire if it is possible.

3 Answers, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 14 Oct 2022, 06:48 AM

Hi Lee,

The RadPdfViewer is a visualizing control. It should normally be able to display a Pdf file with a Watermark.

Yet, when it comes to editing a pdf file, such as adding a watermark, I would recommend you review the Telerik Document Processing Libraries and specifically the RadPdfProcessing which is designed for creating, and working with pdf files.

Below is a forum thread I found on a similar topic and you may find it useful to review:

In case, additional questions regarding the Document Processing come up,  you can use the dedicated product forum to look for assistance:

I hope you will find this information helpful.

Kind regards,
Doncho
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Paul
Top achievements
Rank 1
Iron
answered on 28 Mar 2023, 04:23 PM

@Doncho -- in the article you link to, @Tanya states "in the PDF document format, there is no a concept for watermark".

However, in Adobe Acrobat Pro, there are a number of options related specifically to watermarks. Watermarks even have specific attributes that dictate whether the watermark will be displayed on-screen, in printed copies, etc..

I'm not sure how this reconciles with @Tanya's statement, which dates back to 2017 and might be out of date.

Nevertheless, am I to assume that RadPdfProcessing does not have an API for managing the type of first-class PDF watermarks referenced in Acrobat? I need to add a watermark to a PDF with the options set to hide the watermark on-screen, but include it if printed. Are these options within the scope of the RadPdfProcessing API?

0
Yoan
Telerik team
answered on 07 Apr 2023, 07:45 AM

Hello Paul,

You are correct, there is indeed a concept of such Watermarks, but they are not supported by the RadPdfProcessing library. I have logged in an item regarding this case in our Feedback Portal on your behalf: PdfProcessing: Provide API for inserting Watermarks. Feel free to cast your vote for it and also subscribe to get notified and track its progress.

I apologize for any setback we might be causing you. As a sign of appreciation for putting effort into researching this topic and bringing this up to us, I have updated your Telerik Points.

As a workaround, I can offer you a more manual approach by incorporating the setting of the watermark (with the currently available approach) with the Print functionality of the PdfViewer. That way the watermark will be inserted only under the condition that the document is being printed. Here is an example related to this topic that you might find useful: PdfViewer: Custom Printing.  

Hope this helps.

Regards, Yoan Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
PdfViewer
Asked by
Lee
Top achievements
Rank 1
Answers by
Doncho
Telerik team
Paul
Top achievements
Rank 1
Iron
Yoan
Telerik team
Share this question
or