Hi! I am new to this. I wish to transform FO document (docFo) into PDF. I am using fop.20 I have the following code : -------------------------------------------------------------------------------------- Document docFo ; //contains a valid fo document ByteArrayOutputStream out; : : : Driver driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); driver.setupDefaultMappings(); driver.setOutputStream(out); driver.render(docFo); return(out);
I get this exception: java.lang.NullPointerException at org.apache.fop.layoutmgr.PageLayoutManager.makeNewPage(PageLayoutManager.java:141) at org.apache.fop.layoutmgr.PageLayoutManager.getParentArea(PageLayoutManager.java:176) at org.apache.fop.layoutmgr.FlowLayoutManager.getParentArea(FlowLayoutManager.java:49) at org.apache.fop.layoutmgr.BlockLayoutManager.getParentArea(BlockLayoutManager.java:81) at org.apache.fop.layoutmgr.LineLayoutManager.createLine(LineLayoutManager.java:95) at org.apache.fop.layoutmgr.LineLayoutManager.addChild(LineLayoutManager.java:118) at org.apache.fop.layoutmgr.TextLayoutManager.parseChars(TextLayoutManager.java:164) at org.apache.fop.layoutmgr.TextLayoutManager.generateAreas(TextLayoutManager.java:55) Can someone suggest where I am going wrong. Thanks in advance Bhawana -----Original Message----- From: Roland [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 3:17 PM To: [EMAIL PROTECTED] Subject: When will this be finished? Hello, we are using fop here at our company and we like it very much. Congratulations for this project. My question is, when is this project supposed to be finished? I wonder because the current version is still 0.20.2 and you are probably releasing 0.20.3 soon. I suppose you only will implement the full specification when reaching version 1.0 correct? Will this be in 10 years or so? :)) (no offense meant). One thing that is very annoying is that the column-width of the tables have to be set manually. When will this be fixed? Thanks, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]