• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Any PDF Experts out there?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any PDF Experts out there?


  • Subject: Re: Any PDF Experts out there?
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 16 Nov 2007 12:45:38 -0800

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@hidden)
Help/Unsubscribe/Update your Subscription:
40ubermind.com


This email sent to email@hidden


Jay Al Hashal
Software Engineer
Übermind, Inc.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden

--

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Any PDF Experts out there?
      • From: Jay Al Hashal <email@hidden>
References: 
 >Any PDF Experts out there? (From: Calven Eggert <email@hidden>)
 >Re: Any PDF Experts out there? (From: Jay Al Hashal <email@hidden>)

  • Prev by Date: Re: Any PDF Experts out there?
  • Next by Date: Re: Any PDF Experts out there?
  • Previous by thread: Re: Any PDF Experts out there?
  • Next by thread: Re: Any PDF Experts out there?
  • Index(es):
    • Date
    • Thread