I have question regarding the relative path, in my application I'm using itext jar and user can create Pdf and question is how can I store it to the folder Pdf that is under the
Web Pages folder. I try using new FileOutputStream("/Pdf/hello.pdf") but nothing happens.
Thanks in advance.
posted 9 years ago
I found solution if anyone needs it:
PdfWriter.getInstance(document, new FileOutputStream(s+"/hello.pdf"));
First I get external context and then I get real path to folder where I want to save my pdf file and then write it.