[/CODE][/CODE][/CODE].....[CODE][CODE][CODE][QUOTE] in our web application we are generate pdf using itextrenderer but i got index out of bound exception,following is the code,igot this error in renderer.layout() HttpServletResponse response = (HttpServletResponse) swfRequestContext.getExternalContext().getNativeResponse(); response.setContentType("application/pdf"); Document doc = null; try { byte[] byteArray = mimeContent.getEncodedData(); ByteArrayInputStream bis = new ByteArrayInputStream(byteArray); ObjectInputStream out = new ObjectInputStream(bis); try { doc = (Document) out.readObject(); } catch (ClassNotFoundException e) { // TODO Auto-generated catch block System.out.println("Exceptions in Document"); ; } ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(doc, null); //System.out.println("Rendered Documnent::"+renderer.); OutputStream os = response.getOutputStream(); //new FileOutputStream("trial.pdf"); response.setHeader("Content-Disposition", "inline; filename=\"ATK_Plans.pdf\""); response.setHeader("Cache-Control", "private"); response.setDateHeader("max-age", 3600); response.setHeader("Pragma", "No-cache"); response.setContentLength(byteArray.length); response.setBufferSize(byteArray.length); renderer.layout(); try { renderer.createPDF(os); } catch (com.lowagie.text.DocumentException e) { // TODO Auto-generated catch block e.printStackTrace(); enter code here stacktrace java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.rangeCheck(ArrayList.java:604) at java.util.ArrayList.get(ArrayList.java:382) at org.xhtmlrenderer.newtable.TableSectionBox.cellAt(TableSectionBox.java:102) at org.xhtmlrenderer.newtable.TableRowBox.calcRowHeight(TableRowBox.java:346) at org.xhtmlrenderer.newtable.TableRowBox.calcLayoutHeight(TableRowBox.java:312) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:829) at org.xhtmlrenderer.newtable.TableRowBox.layout(TableRowBox.java:88) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:723) enter code here at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:255) at org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:82) at org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:914) at org.xhtmlrenderer.newtable.TableSectionBox.layoutChildren(TableSectionBox.java:136) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:794) at org.xhtmlrenderer.newtable.TableSectionBox.layout(TableSectionBox.java:274) at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:723) please help[/QUOTE]