Home:ALL Converter>how to extract PDF watermark content using iText apis

how to extract PDF watermark content using iText apis

Ask Time:2014-02-07T02:01:17         Author:Ameya Bapat

Json Formatter

I was going through the itext api docs & I was able create a pdf with a watermark image or text but did not find a method to get/extract watermark content from pdf.

So I have a pdf document containing watermarked text/image & I want to extract that text or img and validate which I am not able to do.

How to extract watermark content using iText apis? Or is there any other way to validate watermark content?

By validate I mean if I have an existing pdf/image with some watermarked text [as done in 2nd link in above ref], I want to check whether it has expected text/image.

References:

Author:Ameya Bapat,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/21610545/how-to-extract-pdf-watermark-content-using-itext-apis
yy