i wanted to create pdf with Itext , everything works until i've made the runnable jar . Adobe reader shows that message : "Adobe Reader could not open xxx.pdf because it is either not a supported file type or because the file has been damaged (for example. it was sent as an email attachment and wasn't correctly decoded)." And here is my code :
try{
Document document = new Document();
writer = PdfWriter.getInstance(document, new FileOutputStream(FILE) );
document.open();
makeBackground(document);
makeText();
makeTable(document);
afterTable(document);
document.close();
} catch (Exception e) {
e.printStackTrace();
}