Watermark Support on Wijmo PDF

Posted by: nelson.aguiar on 2 September 2019, 11:33 pm EST

  • Posted 2 September 2019, 11:33 pm EST

    I have two questions about Wijmo PDF.

    1) Are there any way to add watermark to pdf being generated by Wijmo PDF exporter?
    We'd need to add a watermark on each pdf page in a automatic way.

    2) There is support to add images to PDFDocument Header on Wijmo PDF. I just could see text support on declarative header
  • Replied 3 September 2019, 11:10 pm EST

    Hi Nelson,

    Regarding Image in the header:

    Since the header property is an instance of PdfRunningTitle, you may handle the pageAdded event of PdfDocument and use the drawImage method of the header to draw an image with every header. Please refer to the sample attached.

    Regarding Watermark:

    We are working on this case. We will update you as soon as possible.

    Regards,
    Ashwin

    Pdf.zip
  • Marked as Answer

    Replied 4 September 2019, 4:40 pm EST

    Hi Nelson,

    To add watermark to the PDF, you may use the pageAdded event as you did with the header and draw the watermark image using the drawImage method. Please refer to the updated sample attached.

    ~regards

    Pdf_updated.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels