Remove Water Marks from Existing PDF

820 views
Skip to first unread message

Shiddi

unread,
Aug 17, 2011, 12:15:46 AM8/17/11
to PDFTron PDFNet SDK
I need to be able to remove a watermark from existing PDFs we have
stored in a database. This is a legitimate requirement (rather than
trying to remove trial software watermarks) as we have > 10 million
PDFs stored with a "copy" watermark that we now want to store without
the watermark. I can remove them with Acrobat, but I haven't been able
to find a product which can do this programmatically. Can pdftorn do
this?

Thanks
Satish

Support

unread,
Aug 17, 2011, 2:36:19 PM8/17/11
to PDFTron PDFNet SDK

If you stamp your PDF documents with pdftron.PDF.Stamper (http://
www.pdftron.com/pdfnet/samplecode.html#Stamper) you can easily remove
them with Stamper.DeleteStamps(doc, PageSet).

If PDFs are stamped with another tool, you would need to use the
approach shown in ElementEdit (http://www.pdftron.com/pdfnet/
samplecode.html#ElementEdit) sample. This is more tricky because you
need some way of identifying what content is part of the stamp (e.g.
based on position, bbox, color? etc) and what not.

Shiddi

unread,
Aug 19, 2011, 2:37:55 AM8/19/11
to PDFTron PDFNet SDK
Yes,PDF's are stamped with 3rdparty Tool...
I have checked the element EDIT sample..it basically skips the images
in the PDF and creates the new PDF.
So How to find whether that IMAGE is STAMP or a Part of PDF image
i.e(GRAPH OR IMAGE).
I did not found an option..
can you provide some sample code.??
I am very new to this...


On Aug 17, 11:36 pm, Support <supp...@pdftron.com> wrote:
> If you stamp your PDF documents with pdftron.PDF.Stamper (http://www.pdftron.com/pdfnet/samplecode.html#Stamper) you can easily remove
> > Satish- Hide quoted text -
>
> - Show quoted text -

Support

unread,
Aug 24, 2011, 3:03:31 PM8/24/11
to pdfne...@googlegroups.com

You would need to devise some heuristics to identify stamp content (i.e. elements). For example you could use the knowledge that a stamp is the last element in the display list or that it takes specific location on the page (i.e. element.GetBBox(rect) ), etc... 



Reply all
Reply to author
Forward
0 new messages