Subject: Re: Help with copying a page without text 2007-10-08 - By wasegraves@(protected)
Back Not a Vim user? I'm surprised. If you really, really want to maintain your edge as a PDF Sage, you should have Pdftk, Vim, and the Pdftk Vim plugin in your bag of tricks. ;-) "quite trick"? I don't understand what you mean. If you're writing about the decompression of the page streams within Vim with the Pdftk plugin, you should be aware the Pdftk is based on iText. I haven't examined the code for the Pdftk plugin; but it is clear from the screen messages that the plugin honors any PDF password protection, decompresses/decrypts the PDF for editing, repairs the PDF , and recompresses/encrypts it. Yes, that is quite a nice trick. You should be aware that iText was not generally available 5 years ago, when I developed the procedure that I outlined earlier. I didn't consider it to be trickery of any sort, as I knew that Reader could do the decompression for me. Today, knowing what iText can do for me, I'd probably develop an iText class to extract the text content. Thank you for the concession on editing creating invalid PDFs; but you were quite correct. My advice to readers would be "Don't try to edit a PDF directly, unless you are also prepared to repair the damage that you will inevitably do to it." I don't agree on the "bad precedent" issue of editing PDFs, as it is sometimes a very good thing to do in the interest of saving time, e.g., if the document that created the PDF is not available, or better yet, if the PDF was not created from a document at all (iText-generated). After all, editing a PDF is a good thing to do with Acrobat, else Acrobat wouldn't have a tool with which to do it. ;-) 'Nuff said, for now. Best regards, Bill Segraves -- ---- ------ Original message from Leonard Rosenthol <leonardr@(protected)>: -- ---- ------
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 <snip> <html> <!-- BEGIN WEBMAIL STATIONERY --> <head></head> <body> <!-- WEBMAIL STATIONERY noneset --> <DIV></DIV> <P>Not a Vim user? I'm surprised. If you really, really want to maintain your edge as a PDF Sage, you should have Pdftk, Vim, and the Pdftk Vim plugin in your bag of tricks. ;-)</P> <P>"quite trick"? I don't understand what you mean. If you're writing about the decompression of the page streams within Vim with the Pdftk plugin, you should be aware the Pdftk is based on iText. I haven't examined the code for the Pdftk plugin; but it is clear from the screen messages that the plugin honors any PDF password protection, decompresses/decrypts the PDF for editing, repairs the PDF , and recompresses/encrypts it. Yes, that is quite a nice trick.</P> <P>You should be aware that iText was not generally available 5 years ago, when I developed the procedure that I outlined earlier. I didn't consider it to be trickery of any sort, as I knew that Reader could do the decompression for me. Today, knowing what iText can do for me, I'd probably develop an iText class to extract the text content.</P> <P>Thank you for the concession on editing creating invalid PDFs; but you were quite correct. My advice to readers would be "Don't try to edit a PDF directly, unless you are also prepared to repair the damage that you will inevitably do to it." I don't agree on the "bad precedent" issue of editing PDFs, as it is sometimes a very good thing to do in the interest of saving time, e.g., if the document that created the PDF is not available, or better yet, if the PDF was not created from a document at all (iText-generated). After all, editing a PDF is a good thing to do with Acrobat, else Acrobat wouldn't have a tool with which to do it. ;-)</P> <P>'Nuff said, for now.</P> <P>Best regards,</P> <P>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>Not being a vim user, I was unable to validate this. <DIV><BR class=khtml-block-placeholder></DIV> <DIV>So that's a quite trick that it is using to decompress page content streams for editing...</DIV> <DIV><BR class=khtml-block-placeholder></DIV> <DIV>I stand corrected about it creating invalid PDFs - though I still think it sets a bad precedent ;).</DIV> <DIV><BR class=khtml-block-placeholder></DIV> <DIV>Leonard</DIV> <DIV><snip></DIV></BLOCKQUOTE> <!-- 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/
|
|