-none- 2007-10-07 - By wasegraves@(protected)
Back Not exactly. It's not possible, except when it's possible. Here's an approach that works for the MyFirstTable example in the iText tutorial. 1. Download and install Vim (This author used Vim 6.3). 2. Download and install Pdftk (This author used Pdftk 1.12), i.e., copy pdftk.exe into the Vim plugin directory. 3. Download and install the Pdftk plugin in the Vim plugins directory, i.e ., copy pdftk.vim into the Vim plugin directory. 4. Open MyFirstTable.pdf with Vim. 5. Find the text "cell test2" in the second cell in the fourth row of the table and delete the text. 6. Save the PDF as MyFirstTable_revised.pdf. 7. Open MyFirstTable_revised.pdf with Reader and see that the text "cell test2" is now gone. Note that this procedure uses iText indirectly, as Pdftk is based on iText. Cheers, Bill Segraves -- ---- ------ Original message from Leonard Rosenthol <leonardr@(protected)>: -- ---- ------
> No, it's not possible. > > Nor will you find any PDF library that will offer that due to the way > that PDF is structured. See the other current discussion about "how > to read text on a page"... > > > Leonard > > On Oct 6, 2007, at 4:28 PM, Sarath Dorbala wrote: > > > Hello, > > > > I am pretty new to PDF and iText. I have a situation where I need > > to copy a page to another (new) page with no text from the first > > page. For example, if i have a table in page 1, I need to copy that > > to a new page and but not text in that cell. I don't know if this > > is possible in iText. > > > > Thank you. <snip> <html> <!-- BEGIN WEBMAIL STATIONERY --> <head></head> <body> <!-- WEBMAIL STATIONERY noneset --> <DIV></DIV> <P>Not exactly. It's not possible, except when it's possible.</P> <P>Here's an approach that works for the MyFirstTable example in the iText tutorial.</P> <P> 1. Download and install Vim (This author used Vim 6 .3).</P> <P> 2. Download and install Pdftk (This author used Pdftk 1.12), i.e., copy pdftk.exe into the Vim plugin directory.</P> <P> 3. Download and install the Pdftk plugin in the Vim plugins directory, i.e., copy pdftk.vim into the Vim plugin directory.</P> <P> 4. Open MyFirstTable.pdf with Vim.</P> <P> 5. Find the text "cell test2" in the second cell in the fourth row of the table and delete the text.</P> <P> 6. Save the PDF as MyFirstTable_revised.pdf.</P> <P> 7. Open MyFirstTable_revised.pdf with Reader and see that the text "cell test2" is now gone.</P> <P>Note that this procedure uses iText indirectly, as Pdftk is based on iText.< /P> <P>Cheers,<BR>Bill Segraves</P> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-- ---- ------ Original message from Leonard Rosenthol <leonardr @(protected)>: -- ---- ------ <BR><BR><BR>> No, it's not possible. <BR> > <BR>> Nor will you find any PDF library that will offer that due to the way <BR>> that PDF is structured. See the other current discussion about "how <BR>> to read text on a page"... <BR>> <BR>> <BR>> Leonard <BR> > <BR>> On Oct 6, 2007, at 4:28 PM, Sarath Dorbala wrote: <BR>> <BR>> ; > Hello, <BR>> > <BR>> > I am pretty new to PDF and iText. I have a situation where I need <BR>> > to copy a page to another (new) page with no text from the first <BR>> > page. For example, if i have a table in page 1, I need to copy that <BR>> > to a new page and but not text in that cell. I don't know if this <BR>> > is possible in iText. <BR >> > <BR>> > Thank you. <BR><snip>< /BLOCK QUOTE> <!-- END WEBMAIL STATIONERY -->
</body> </html>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|