Thank you for all your help.
The idea with Vim plugin and editor worked with the PDFs created with iText.
I have few PDF documents which do not show any human readable text with Vim.
The PDF's created with iText are readable. But when I tried to use
PDFReader.getPageContent() with the documents I had, I got the text better.
But can I just edit the content and set it to any blank page? I don't know
if this is feasible.
Thank you,
Sarath Dorbala.
On 10/8/07, Leonard Rosenthol <[EMAIL PROTECTED]> wrote:
>
> Not being a vim user, I was unable to validate this.
>
> So that's a quite trick that it is using to decompress page content
> streams for editing...
>
>
> I stand corrected about it creating invalid PDFs - though I still think it
> sets a bad precedent ;).
>
>
> Leonard
>
> On Oct 7, 2007, at 8:32 PM, William A. Segraves wrote:
>
> Leonard, you're advice is usually much better quality.
>
> I regret you did not try the procedure I outlined before you passed
> judgement on it. If you had tried the procedure, I expect you would have
> found it works just fine for the example that was used.
>
> Readers interested in the procedure outlined below, despite Leonard's
> advice, can consult Sid Steward's excellent Pdftk web site,
> www.accesspdf.com, for the inspiration for the below procedure.
>
> I hasten to add the Leonard is correct about editing a PDF damaging it.
> That's why the Pdftk plugin for Vim is used, i.e., to repair the damaged
> PDF. It's not a new idea, as it's been on Sid's site since 11Feb2005,
> http://www.accesspdf.com/index.php?page=2.
>
> Best regards,
> Bill Segraves
>
> ----- Original Message -----
> *From:* Leonard Rosenthol <[EMAIL PROTECTED]>
> *To:* Post all your questions about iText
> here<[email protected]>
> *Sent:* Sunday, October 07, 2007 6:58 PM
> *Subject:* Re: [iText-questions] Help with copying a page without text
>
>
> Note that doing so will create an invalid PDF :(.
>
> Please do NOT try to edit a PDF using text editors...
>
> Leonard
>
>
> On Oct 7, 2007, at 11:36 AM, [EMAIL PROTECTED] wrote:
>
> > 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
> > <[EMAIL 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>< /BLOCK QUOTE>
> > ----------------------------------------------------------------------
> > ---
> > 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
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > Buy the iText book: http://itext.ugent.be/itext-in-action/
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
>
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
>
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/