itext and java web start -> file cannot be written
Hi all,
i have written a java application which should generate a pdf File. To generate this file i use "iText". To be able to start the application from the web i use java web start. Now i have the problem that when i want to create the PDF file, the file will be created, but it looks like nothing can be written to the file. The size is 0 kb :-(
In my jnlp file i set:
<security>
<all-permissions/>
</security>
so i think i should have the permission to write to a file.. but it doesnt work. Does anybody have an idea?
Thanks a lot.
here is a my code:
if (pdfFile !=null)
{
Document document =new Document();
try
{
PdfWriter pdfWriter = PdfWriter.getInstance(document,new FileOutputStream(pdfFile));
pdfWriter.setViewerPreferences(PdfWriter.PageModeUseThumbs);
document.addAuthor("me");
document.addTitle("Der Build Prozess");
document.open();
view.setInfoText("document open: " + document.isOpen());
Font titleFont= FontFactory.getFont(FontFactory.HELVETICA,
24, Font.NORMAL,new Color(0, 0, 125));
Paragraph title =new Paragraph("Projektarbeit", titleFont);
document.add(title);
document.close();

