The rules are the same as for reading any resource. Use always fully
quallified packages, in your case the file will come the the package
com.lowagie.text.pdf.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Jpenuela [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2003 10:29
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Read a PDF as a Resource
> 
> I read a PDF file as a resource using PdfReader reader = new PdfReader(
> "file.pdf");
> I'm not sure where I've to place file.pdf
> In my envirnoment (Win2000 + Jdeveloper + OC4J) it seems to work when I
> place file.pdf in the application\classes directory, but
> when I deploy my aplication againts a remote OC4J in linux, file.pdf is
> not fount (a exception is thrown), but it exits in the
> application\WEB-INF\classes directory.
>  
> Any idea?
>  
> Thanks in advance.
>  
> ******************************
> Julio Pe�uela Gil
> Centre d'inform�tica
> Universitat de Barcelona
> Tel: 93-403-44-25
> ******************************


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to