I am using Netbeans, google app engine, java. When I try to create pdf as follows it shows this error.
Java.io.FileOutputStream is restricted class in Google App Engine.
My code is,
Document document = new Document();
PdfWriter.getInstance(document, new BufferedOutputStream(new FileOutputStream("C:\\Examplenamaaaa.pdf")));
document.open();
PdfPTable table = new PdfPTable(2);
PdfPCell cell = new PdfPCell(new Paragraph("column span 2"));
cell.setColspan(2);
table.addCell(cell);
table.addCell("1");
table.addCell("Namita");
table.addCell("2");
table.addCell("Asmita");
document.add(table);
document.close();