Hello I am using java itext library and I want to add header and footer in the existing pdf documents. How can I do thanks.
With regards Milan Kathmandu,Nepal -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Thursday, November 02, 2006 2:27 PM To: Post all your questions about iText here Subject: Re: [iText-questions] java.io.IOException: yourFileName not foundasfile or resource. ----- Original Message ----- From: "Patrick O. Thurman" <[EMAIL PROTECTED]> To: "'Post all your questions about iText here'" <[email protected]> Sent: Thursday, November 02, 2006 8:56 PM Subject: Re: [iText-questions] java.io.IOException: yourFileName not found asfile or resource. >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? > It means that you have a problem to solve that is unrelated to iText. Until you find a way to get those regular IO functions to work, iText won't work either. Paulo > > 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 ------------------------------------------------------------------------- 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
