I tried the two things.  The first one

try {
  if (!new File("PORA$DATA:[PORADATA.PDF]GuestVpnTemplate.pdf").isFile())
      System.out.println(sdf.format(new java.util.Date()) +
">>readTemplatePDF  >> isFile is false");

Does not work
2006-11-02 14:48:11.233 >> readTemplatePDF  >> isFile is false


The second test

  RandomAccessFile mf = new
RandomAccessFile("PORA$DATA:[PORADATA.PDF]GuestVpnTemplate.pdf", "r");
        System.out.println(sdf.format(new java.util.Date()) + ">>
readTemplatePDF  >> after RandomAccessFile");

Does not work and is caught by the catch clause and prints

2006-11-02 14:48:11.241 >> readTemplatePDF  >> java.io.IOException: user.dir
is 
$1$DGA26:[ORACLE9]/ which is not an absolute path


Thanks for the Help,  but what does this mean?  What do I do now?


Pat,





Does:

new RandomAccessFile("PORA$DATA:[PORADATA.PDF]GuestVpnTemplate.pdf")

work?

Does:

new File("PORA$DATA:[PORADATA.PDF]GuestVpnTemplate.pdf").isFile()

return true?

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Patrick O. Thurman
> Sent: Thursday, November 02, 2006 5:36 PM
> To: 'Post all your questions about iText here'
> Subject: [iText-questions] java.io.IOException: yourFileName 
> not found asfile or resource.
> 
> I have a java class that needs to read an existing PDF file 
> with input items
> But when I create the PdfReader object I get an IOException.
> 
> PdfReader reader = new PdfReader("PORA$DATA:[PORADATA.PDF]" +
> "GuestVpnTemplate.pdf");
> 
> 2006-11-02 10:53:46.709   readTemplatePDF  >> java.io.IOException:
> PORA$DATA:[PORADATA.PDF]GuestVpnTemplate.pdf not found as 
> file or resource.
> 
> I know that the file 
> PORA$DATA:[PORADATA.PDF]GuestVpnTemplate.pdf does exist
> and is in the the above directory.  I know that the OS level 
> file security
> is correct and readable.  
> 
> Any ideals about tracking down the error or what is causing it.
> 
> 
> Pat,
> 
> Patrick O. Thurman
> DBAIII
> Stephen F. Austin State University
> [EMAIL PROTECTED]
> 
> 
> 
> 
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
> dat=121642
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


Aviso Legal:
Esta mensagem i destinada exclusivamente ao destinatario. Pode conter
informagco confidencial ou legalmente protegida. A incorrecta transmissco
desta mensagem nco significa a perca de confidencialidade. Se esta mensagem
for recebida por engano, por favor envie-a de volta para o remetente e
apague-a do seu sistema de imediato. I proibido a qualquer pessoa que nco o
destinatario de usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may
contain confidential or legally protected information. The incorrect
transmission of this message does not mean the loss of its confidentiality.
If this message is received by mistake, please send it back to the sender
and delete it from your system immediately. It is forbidden to any person
who is not the intended receiver to use, distribute or copy any part of this
message.





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to