Hey Calven,

you can find some itext tutorials there

http://itextdocs.lowagie.com/tutorial/
http://sourceforge.net/project/showfiles.php?group_id=15255


I personally used Multivalent in the past (http:// multivalent.sourceforge.net/), I am pretty sure it is all very similar for reading in your file across these libraries.

import your pdf library of choice, then it should go something like this:


import multivalent.ParseException;
import multivalent.std.adaptor.pdf.*;

 * @param args are      the names of paths to PDF files.
*/

public static void main(String[] args) {
                
                try {
                        for (int i = 0; i < args.length; i++) {
                                PDFReader pdfReader = new PDFReader(pdfFile);
                                //do something
                        }       
                } catch (Exception ex) {
                        ex.printStackTrace();
                }
    }


Hope this helps,
-jay



Happy Friday All,

I want to read in a PDF document and modify part of it and then email it. I got the emailing part down pat thanks to ERJavaMail.

I've looked at iText to manipulate my PDF document but can't figure out how to read in my pdf, which is a file in my Eclipse project.

Any one have any sample code I can look at?


Calven




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jalhashal% 40ubermind.com

This email sent to [EMAIL PROTECTED]


Jay Al Hashal
Software Engineer
Übermind, Inc.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to