RENDER_TXT
I am using FOP for transforming xml to pdf and since it was so easy generate txt just by changing the rendering, i did that too. But I noticed something wierd, FOP while generating txt would occassionally, without any pattern, join the top line with the bottom line and the bottom line text would overwrite that upper line. It is difficult to explain but it looked like the text was meshed. the pdf output was fine. I am wondering whether anyone else noticed this. now i am using plain xslt to output text. B. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RENDER_TXT
Hi, I have answered this question in the thread titled Generating ASCII Text From: bhati001 [EMAIL PROTECTED] I am using FOP for transforming xml to pdf and since it was so easy generate txt just by changing the rendering, i did that too. But I noticed something wierd, FOP while generating txt would occassionally, without any pattern, join the top line with the bottom line and the bottom line text would overwrite that upper line. It is difficult to explain but it looked like the text was meshed. the pdf output was fine. I am wondering whether anyone else noticed this. now i am using plain xslt to output text. B. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Express yourself with cool emoticons http://messenger.msn.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RENDER_TXT
you have to play with textCPI, textLPI properties of renderer and with line-height of rows hi From: bhati001 [EMAIL PROTECTED] I am using FOP for transforming xml to pdf and since it was so easy generate txt just by changing the rendering, i did that too. But I noticed something wierd, FOP while generating txt would occassionally, without any pattern, join the top line with the bottom line and the bottom line text would overwrite that upper line. It is difficult to explain but it looked like the text was meshed. the pdf output was fine. I am wondering whether anyone else noticed this. now i am using plain xslt to output text. B. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RENDER_TXT
I have a problem with RENDER_TXT (FOP 0.20.5rc): error message to the line : driver.render(input.getParser(),input.getInputSource()); java.lang.RuntimeException : java.lang.nullPointerException all functions with that : driver.setRenderer(Driver.RENDER_PDF); driver.setRenderer(Driver.RENDER_PCL); but not with : driver.setRenderer(Driver.RENDER_TXT); did somebody already have this problem? My code : Logger theLogger = new NullLogger(); XSLTInputHandler input = new XSLTInputHandler(new File(xml),new File(xsl)); ByteArrayOutputStream out = new ByteArrayOutputStream(); Driver driver = new Driver(); Hierarchy hierarchy = Hierarchy.getDefaultHierarchy(); PatternFormatter formatter = new PatternFormatter( [%{priority}]: %{message}\n%{throwable} ); LogTarget target = null; FileOutputStream err = new FileOutputStream(sansExtensionResultat+.log); PrintStream errPrintStream = new PrintStream(err); target = new StreamTarget(errPrintStream, formatter); hierarchy.setDefaultLogTarget(target); log = hierarchy.getLoggerFor(fop); log.setPriority(Priority.INFO); MessageHandler.setScreenLogger(theLogger); driver.setLogger(new org.apache.avalon.framework.logger.LogKitLogger(log)); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); driver.render(input.getParser(),input.getInputSource()); byte[] content = out.toByteArray(); FileOutputStream fos = new FileOutputStream(pdf); fos.write(content);