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

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -