DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11277>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11277 illegal char value nnn in FO PDF driver.run() Summary: illegal char value nnn in FO PDF driver.run() Product: Fop Version: 0.20.4 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Blocker Priority: Other Component: pdf renderer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have the following statements in a servlet to create a PDF file from FO file. Meanwhile, I also added a chinese font to FOP to generate a PDF file with chinese character. ByteArrayOutputStream out1 = new ByteArrayOutputStream(); log = new ConsoleLogger(ConsoleLogger.LEVEL_WARN); MessageHandler.setScreenLogger(log); FileInputStream file = new FileInputStream(new File ("C:\\eFactoring_Data\\ADVICE\\EditFinancing_AdvC_TX_tx1.xml.fo")); InputSource foFile = new InputSource(file); foFile.setEncoding("UTF-8"); Driver driver = new Driver(foFile, out1); Options options = new Options(new File("./fo/userconfig.xml")); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); driver.run(); ***** Font in userconfig.xml ***** <font metrics-file="c:\FONTS\MingLiU.xml" kerning="yes" embed- file="c:\FONTS\mingliu.ttc"> <font-triplet name="MingLiU" style="normal" weight="normal"/> <font-triplet name="MingLiU" style="normal" weight="bold"/> </font> </fonts> This servlet is works OK in J2EE server. However , when I deployed in websphere, the generated PDF seem to be corrupted and not able to view by Acrobat Reader. The Websphere console have about 3000 lines logged like below: [2002/7/30 16:11:37:625 CST] 447ecfb2 SystemOut U illegal char value -23 [2002/7/30 16:11:37:625 CST] 447ecfb2 SystemOut U illegal char value -17 [2002/7/30 16:11:37:625 CST] 447ecfb2 SystemOut U illegal char value 120 [2002/7/30 16:11:37:625 CST] 447ecfb2 SystemOut U illegal char value -26 [2002/7/30 16:11:37:625 CST] 447ecfb2 SystemOut U illegal char value 124 [2002/7/30 16:11:37:625 CST] 447ecfb2 SystemOut U illegal char value -22 [2002/7/30 16:11:37:641 CST] 447ecfb2 SystemOut U illegal char value -21 [2002/7/30 16:11:37:641 CST] 447ecfb2 SystemOut U illegal char value -15 [2002/7/30 16:11:37:641 CST] 447ecfb2 SystemOut U illegal char value 120 [2002/7/30 16:11:37:641 CST] 447ecfb2 SystemOut U illegal char value -16 [2002/7/30 16:11:37:656 CST] 447ecfb2 SystemOut U illegal char value -98 What is the problem ? Is FOP with additional fonts not support in websphere ? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
