Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Re: Help with copying a page without text

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 &lt;leonardr
@(protected)&gt;: -- ---- ------ <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>&lt;snip&gt;</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/

©2008 junlu.com - Jax Systems, LLC, U.S.A.