yes, indeed :) I absent-mindedly hit the left most "build" button in
my "mail client", which evidently sends your email rather than
compile it- go figure.
Is the part you are missing?
In a WO app, to read a file in the Resources of a project:
InputStream is = WOApplication.application().resourceManager
().inputStreamForResourceNamed("YourFile.pdf", null,
NSArray.EmptyArray);
PDFReader pdfReader = new PDFReader(is);
etc.
Chuck
On Nov 16, 2007, at 12:40 PM, Jay Al Hashal wrote:
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/chill%
40global-village.net
This email sent to [EMAIL PROTECTED]
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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.
[EMAIL PROTECTED]
cell: 651-208-0122
skype: jumana.alhashal
ichat: [EMAIL PROTECTED]
_______________________________________________
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]