Reading a pdf file created using iText in java -
i using itext libraries create pdf files using java, file created , opens using adobe, when try read java.io.filenotfoundexception: errecord.pdf (the system cannot find file specified)
fileinputstream input = null; file file = new file("errecord.pdf"); system.out.println(file.canread()); input = new fileinputstream(file);
file.canread() returns false, there way read file or make readable using itext?
i used getabsolutefile() , path wrong.. used absolute path
file file = new file("c:/users/rawan/workspace-luna/prototype_3/errecord.pdf");
and worked fine
Comments
Post a Comment