File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes iText - remove previously inserted over content text - Help Needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "iText - remove previously inserted over content text - Help Needed" Watch "iText - remove previously inserted over content text - Help Needed" New topic
Author

iText - remove previously inserted over content text - Help Needed

Mick Smith
Greenhorn

Joined: Dec 10, 2009
Posts: 14
Hi, I could really do with some urgent help on this. Searching the Web to get a good example on this issue is very scarce.

Basically my requirement is that I stamp existing PDF documents with certain text and save it. This I have working fine(& Lots of examples on the Web). However, if later on I want to remove the text that I added to the PDF, I am having problems with. There is very little information on how this is done - Its like a BIG SECRET!!

To add my text as an over stamp, I do something like this which works fine:



REMOVING The Text...

I found someting which indicated that removing the added text requires a lot more work. Whereby, a program would need to read the individual pages resources & remove XOBJECT's. So I have this peice of code:




Apparently the calling of is supposed to remove the XOBJECT elements in that page of the PDF & thus remove the over context text that exists in the PDF. However, When I run this code, nothing gets removed. Infact, when debugging I dont see any XOBJECTs at all!

Appreciate any expert help in this matter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: iText - remove previously inserted over content text - Help Needed
 
Similar Threads
How to revoke permission to save or copy a PDF file in java
Covert a PDF to PDF/A format using iText
iText: password protect a signed pdf file
missing line space in Text field while merging multiple PDF's using PDFCopy of IText
Sending Multiple PDF in response stream