any error log when generating the file on Windows plateform ?
note that "empty" isn't the same as "corrupt"
if your file is empty you shoulf have watning at tuntime.
Are youy sure you're using same iText and java version on both Platform ?
Laurent Marot
Chef de projets
Tél : +33 1 55 38 98 89
Mobile : +33 6 21 09 52 29
Email : laurent.ma...@alliacom.com
Web : www.alliacom.com<http://www.alliacom.com/>
[http://www.alliacom.com/images/alliacom.jpg]
242, Bureaux de la Colline
Bâtiment C – 7ème étage
92213 Saint-Cloud Cedex
________________________________
De : Cédric de Bellefroid [cedde...@gmail.com]
Envoyé : mardi 10 septembre 2013 18:31
À : itext-questions@lists.sourceforge.net
Objet : [iText-questions] Problem with generation of PDF
Hi,
I created a java application on eclipse on Mac os with a report generation with
text. It works fine on mac os, but when I put the application on a windows os
it create a pdf that cannot be opened by adobe acrobat reader or any other
reader. The file seams to be empty (0kb) and corrupt.
I'm using a pdfWriter and i'm closing the document.
Can someone help me?
Thanks,
Valdroc
PdfWriter.getInstance(document, new FileOutputStream(chemin));
document.open();
..
..
..
..
..
document.close();
________________________________
Le papier est un support de communication naturel, renouvelable et recyclable.
Si vous devez imprimer ce mail, n’oubliez pas de le recycler.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php