I try to change my simple table width but it won't do anything. I have try setting the parameter with many different number but nothing change here is my code

   Font fontStyle = new Font(1, 12, 1, new Color(0,0,255));
   Document document = new Document();
   ByteArrayOutputStream baos = new ByteArrayOutputStream();
   PdfWriter.getInstance(document, baos);
   document.open();
PdfPTable table = new PdfPTable(1);
   PdfPCell cell = new PdfPCell(new Paragraph("header with colspan 3"));
//document.add(new Paragraph("WAT!!!"));
   table.setTotalWidth(100);
table.addCell(cell);
   document.add(table);
document.close();
   response.setContentType("application/pdf");
   response.setContentLength(baos.size());
   ServletOutputStream outputStrm = response.getOutputStream();
   baos.writeTo(outputStrm);
   outputStrm.flush();


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to