Once written to the PDF, all iText object become native PDF objects – and there
is no such “table” object in PDF.
In order to be able to remove content from a PDF, you will need to deal with
the lowest level of PDF objects including the content stream. There are some
helper classes in iText (including the content parser) that can help you, but
it’s still going to require a lot of learning and coding…Nothing simple here!
Leonard
From: Rahul Soni [mailto:[email protected]]
Sent: Tuesday, January 19, 2010 2:52 PM
To: [email protected]
Subject: [iText-questions] Remove table or stamp from pdf File
Hello All,
I have one problem with PdfPTable Requirement is such like I have to stamp pdf
file with some text like TEST within the rectangle box. So for this requirement
I have used PdfPTable and created one table with once column and added once
cell in it and in the cell i have written TEST. The stamp should be shown at
the right top side of the each pdf page in the pdf file. specified the width of
table as per the text and i have written table.writeSelectedRows(0,-1,
rect.width()-175,rect.height()-10 ,pdfContentByte).This works fine and stamped
each pages with the text in rectangle box.
Now, I want to remove the stamp which is in our case the PdfPTable but i can
not get the PdfPTable object. Is there any way to delete that stamp from the
page by deleting row or cell or hiding border i don't know exactly. I have to
stamp the pages of pdf as well as remove the stamp whenever i required.
Can anyone please suggest me the solution. If it is done without PdfPTable then
it is also fine for me.
Thanks and Regards,
Rahul Soni.
________________________________
The INTERNET now has a personality. YOURS! See your Yahoo!
Homepage<http://in.rd.yahoo.com/tagline_yyi_1/*http:/in.yahoo.com/>.
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/