Userconfig.xml for FOP within an applet.
As you might know I have successfully got the Japanese fonts to be displayed on PDF by using the userconfig.xml file to load the MSGOTHIC.TTF fonts. In this case I was running a servlet which used FOP to convert the XML file on the webserver ( weblogic) to PDF and then open it using acrobat.I want to do the same thing within an applet. A few months back I could use FOP within an applet to convert XML residing on the server to PDF and then send the resulting PDF to the printqueue on the clients default printer. This works perfectly. Now my question is I want FOP within the applet to recognize Japanese character sets. My approach is to have the userconfig.xml, msgothic.ttf and msgothic.xml ( font metrics ) files in the same jar file as the Applet itself. Wouldthis work? Can I just load theuserconfig.xml file from the jar file using the classloader and then call FOP ? I will be trying this next week and just wanted to know your opinion.ThanksManoj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
totally new to FOP -Please help me
I am very new to fop - just started learningit. 1)I downloaded the fop - 0.20.5 - binary version for windows (.zip) 2)Unzipped it (D:\fop-0.20.5) 3)Trying to run D:\fop-0.20.5\fop.bat - i geto/p as mentioned in the document http://apache.oss.eznetsols.org/xml/fop/ 4)but at the end of itigot error - [ERROR] No Input file specified What's missing ? JAVA_HOME is set properly. 5)I also tried to compile one servlet (which i got it from web) -iput inside the classpath fop.jar and all other jars those inside fop.bat. But i am getting errors -- import org.apache.fop.apps.Driver;import org.apache.fop.apps.XSLTInputHandler;import org.apache.fop.render.Renderer;import org.apache.avalon.framework.logger.Logger;import org.apache.avalon.framework.logger.ConsoleLogger; import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.ServletException;import javax.servlet.ServletOutputStream;import javax.xml.transform.stream.StreamSource;import javax.xml.transform.Transformer;import javax.xml.transform.TransformerFactory;import java.io.IOException;import java.io.ByteArrayOutputStream;import java.util.logging.Level; public class FOPServlet extends HttpServlet{ private String xmlFile = "data.xml"; private String xslFile = "pdfGen.xsl"; protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponsehttpServletResponse) throws ServletException, IOException { // set up a FOP driver Driver driver = new Driver(); // set up the logger for the driver Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); driver.setLogger(logger); try { //set the renderer to be PDF driver.setRenderer(Driver.RENDER_PDF); //create the input from the XSLT transform XSLTInputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile); // now prepare the outputStrean ByteArrayOutputStream outStream = new ByteArrayOutputStream(); //set the driver outputStream driver.setOutputStream(outStream); //do the XSLT driver.render(inputHandler.getParser(), inputHandler.getInputSource()); //now that the content is written in the output stream, //get ready to send the response back to browser byte[] content = outStream.toByteArray(); httpServletResponse.setContentLength(content.length); // set the MIME-TYPE httpServletResponse.setContentType("application/pdf"); //write the content httpServletResponse.getOutputStream().write(content); httpServletResponse.getOutputStream().flush(); } catch (Exception e) { e.printStackTrace(); } } } I am getting following: D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:1: package org.apache.fop.apps does not existimport org.apache.fop.apps.Driver; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:2: package org.apache.fop.apps does not existimport org.apache.fop.apps.XSLTInputHandler; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:3: package org.apache.fop.render does not existimport org.apache.fop.render.Renderer; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:4: package org.apache.avalon.framework.logger does not existimport org.apache.avalon.framework.logger.Logger; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:5: package org.apache.avalon.framework.logger does not existimport org.apache.avalon.framework.logger.ConsoleLogger; ^ Please can anybody give me clue about it ? What am i doing wrong ? regards Manisha Do you Yahoo!? Meet the all-new My Yahoo! Try it today!
Re: totally new to FOP -Please help me
hi all, 1) no 5 i could sort it out - some silly mistake in my classpath settings. but no 4 is as it is regards Manisha Manisha Sathe [EMAIL PROTECTED] wrote: I am very new to fop - just started learningit. 1)I downloaded the fop - 0.20.5 - binary version for windows (.zip) 2)Unzipped it (D:\fop-0.20.5) 3)Trying to run D:\fop-0.20.5\fop.bat - i geto/p as mentioned in the document http://apache.oss.eznetsols.org/xml/fop/ 4)but at the end of itigot error - [ERROR] No Input file specified What's missing ? JAVA_HOME is set properly. 5)I also tried to compile one servlet (which i got it from web) -iput inside the classpath fop.jar and all other jars those inside fop.bat. But i am getting errors -- import org.apache.fop.apps.Driver;import org.apache.fop.apps.XSLTInputHandler;import org.apache.fop.render.Renderer;import org.apache.avalon.framework.logger.Logger;import org.apache.avalon.framework.logger.ConsoleLogger; import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.ServletException;import javax.servlet.ServletOutputStream;import javax.xml.transform.stream.StreamSource;import javax.xml.transform.Transformer;import javax.xml.transform.TransformerFactory;import java.io.IOException;import java.io.ByteArrayOutputStream;import java.util.logging.Level; public class FOPServlet extends HttpServlet{ private String xmlFile = "data.xml"; private String xslFile = "pdfGen.xsl"; protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponsehttpServletResponse) throws ServletException, IOException { // set up a FOP driver Driver driver = new Driver(); // set up the logger for the driver Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); driver.setLogger(logger); try { //set the renderer to be PDF driver.setRenderer(Driver.RENDER_PDF); //create the input from the XSLT transform XSLTInputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile); // now prepare the outputStrean ByteArrayOutputStream outStream = new ByteArrayOutputStream(); //set the driver outputStream driver.setOutputStream(outStream); //do the XSLT driver.render(inputHandler.getParser(), inputHandler.getInputSource()); //now that the content is written in the output stream, //get ready to send the response back to browser byte[] content = outStream.toByteArray(); httpServletResponse.setContentLength(content.length); // set the MIME-TYPE httpServletResponse.setContentType("application/pdf"); //write the content httpServletResponse.getOutputStream().write(content); httpServletResponse.getOutputStream().flush(); } catch (Exception e) { e.printStackTrace(); } } } I am getting following: D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:1: package org.apache.fop.apps does not existimport org.apache.fop.apps.Driver; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:2: package org.apache.fop.apps does not existimport org.apache.fop.apps.XSLTInputHandler; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:3: package org.apache.fop.render does not existimport org.apache.fop.render.Renderer; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:4: package org.apache.avalon.framework.logger does not existimport org.apache.avalon.framework.logger.Logger; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:5: package org.apache.avalon.framework.logger does not existimport org.apache.avalon.framework.logger.ConsoleLogger; ^ Please can anybody give me clue about it ? What am i doing wrong ? regards Manisha Do you Yahoo!?Meet the all-new My Yahoo! Try it today! Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
Re: totally new to FOP -Please help me
On Feb 6, 2005, at 9:38 PM, Manisha Sathe wrote: I am very new to fop - just started learning it. 1)I downloaded the fop - 0.20.5 - binary version for windows (.zip) 2)Unzipped it (D:\fop-0.20.5) 3)Trying to run D:\fop-0.20.5\fop.bat - i get o/p as mentioned in the document http://apache.oss.eznetsols.org/xml/fop/ 4)but at the end of it i got error - [ERROR] No Input file specified What's missing ? JAVA_HOME is set properly. Running D:\fop-0.20.5\fop.bat will give you the the usage, since you're not specifying an input file. The USAGE is: fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-pcl|-ps|-txt|-svg|-at|-print] outfile (the | means OR so [-fo|-xml] means either -fo OR -xml) In the case of: D:\fop-0.20.5\fop.bat -xsl foo.xsl -xml foo.xml -pdf foo.pdf foo.xsl represents the xslt file foo.xml represents an input xml file foo.pdf represents an output pdf file and so on... Here're six examples: D:\fop-0.20.5\fop.bat foo.fo foo.pdf D:\fop-0.20.5\fop.bat -fo foo.fo -pdf foo.pdf (does the same as the previous line) D:\fop-0.20.5\fop.bat -xsl foo.xsl -xml foo.xml -pdf foo.pdf D:\fop-0.20.5\fop.bat foo.fo -mif foo.mif D:\fop-0.20.5\fop.bat foo.fo -print or fop -print foo.fo D:\fop-0.20.5\fop.bat foo.fo -awt 5)I also tried to compile one servlet (which i got it from web) - i put inside the classpath fop.jar and all other jars those inside fop.bat. But i am getting errors I don't know about servlets or embedding, but this might help: http://xml.apache.org/fop/servlets.html Please can anybody give me clue about it ? What am i doing wrong ? regards Manisha Hope this helps! Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: totally new to FOP -Please help me
Please refer to documents in your D:\fop-0.20.5\build\site\running.html the command line args are fop -fo input.fo -pdf output.pdf here input.fo is your input file and output.pdf is your output file hope this clarifies you. Cheers Eugene Manisha Sathe [EMAIL PROTECTED] 07.02.2005 11:50 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: totally new to FOP -Please help me hi all, 1) no 5 i could sort it out - some silly mistake in my classpath settings. but no 4 is as it is regards Manisha Manisha Sathe [EMAIL PROTECTED] wrote: I am very new to fop - just started learning it. 1)I downloaded the fop - 0.20.5 - binary version for windows (.zip) 2)Unzipped it (D:\fop-0.20.5) 3)Trying to run D:\fop-0.20.5\fop.bat - i get o/p as mentioned in the document http://apache.oss.eznetsols.org/xml/fop/ 4)but at the end of it i got error - [ERROR] No Input file specified What's missing ? JAVA_HOME is set properly. 5)I also tried to compile one servlet (which i got it from web) - i put inside the classpath fop.jar and all other jars those inside fop.bat. But i am getting errors -- import org.apache.fop.apps.Driver; import org.apache.fop.apps.XSLTInputHandler; import org.apache.fop.render.Renderer; import org.apache.avalon.framework.logger.Logger; import org.apache.avalon.framework.logger.ConsoleLogger; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.xml.transform.stream.StreamSource; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import java.io.IOException; import java.io.ByteArrayOutputStream; import java.util.logging.Level; public class FOPServlet extends HttpServlet { private String xmlFile = data.xml; private String xslFile = pdfGen.xsl; protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException { // set up a FOP driver Driver driver = new Driver(); // set up the logger for the driver Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); driver.setLogger(logger); try { //set the renderer to be PDF driver.setRenderer(Driver.RENDER_PDF); //create the input from the XSLT transform XSLTInputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile); // now prepare the outputStrean ByteArrayOutputStream outStream = new ByteArrayOutputStream(); //set the driver outputStream driver.setOutputStream(outStream); //do the XSLT driver.render(inputHandler.getParser(), inputHandler.getInputSource()); //now that the content is written in the output stream, //get ready to send the response back to browser byte[] content = outStream.toByteArray(); httpServletResponse.setContentLength(content.length); // set the MIME-TYPE httpServletResponse.setContentType(application/pdf); //write the content httpServletResponse.getOutputStream().write(content); httpServletResponse.getOutputStream().flush(); } catch (Exception e) { e.printStackTrace(); } } } I am getting following: D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:1: package org.apache.fop.apps does not exist import org.apache.fop.apps.Driver; ^ D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:2: package org.apache.fop.apps does not exist import org.apache.fop.apps.XSLTInputHandler; ^ D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:3: package org.apache.fop.render does not exist import org.apache.fop.render.Renderer; ^ D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:4: package org.apache.avalon.framework.logger does not exist import org.apache.avalon.framework.logger.Logger; ^ D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:5: package org.apache.avalon.framework.logger does not exist import org.apache.avalon.framework.logger.ConsoleLogger; ^ Please can anybody give me clue about it ? What am i doing wrong ? regards Manisha Do you Yahoo!? Meet the all-new My Yahoo! Try it today! Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
Want to know the normal practice
I need to pull some data from database and want to show it inside pdf in a tabular form. What is the best way to do it ? 1)First create XML and convert it to FO 2)Take FO and convert it into PDF Is there any other direct way ? My environment is java / JSP / Struts frameworkwith MSSQL as backend. Is there any examplefor FOPwith Database ? btw, the examples given seems to be using deprecated methods, where can i find latest examples ? (using j2sdk 1.4.2_03) regards Manisha Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
RE: Want to know the normal practice
Hi Manisha, Once you have your XML, you can directly use :- fop -xml myxml.xml -xsl myxsl.xsl -pdf mydoc.pdf Hope the above helps. Cheers. Arun From: Manisha Sathe [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Want to know the normal practice Date: Sun, 6 Feb 2005 23:14:52 -0800 (PST) I need to pull some data from database and want to show it inside pdf in a tabular form. What is the best way to do it ? 1)First create XML and convert it to FO 2)Take FO and convert it into PDF Is there any other direct way ? My environment is java / JSP / Struts framework with MSSQL as backend. Is there any example for FOP with Database ? btw, the examples given seems to be using deprecated methods, where can i find latest examples ? (using j2sdk 1.4.2_03) regards Manisha - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' _ MSN Spaces! Your space, your time. http://www.msn.co.in/spaces Your personal haven online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Userconfig.xml for FOP within an applet.
Please don't cross-post to fop-dev. All FOP developers are supposed to listen into the fop-user mailing list. Your approach should work because you can initialize the Options instance not only from a java.io.File but also from a java.io.InputStream. Just try it. On 07.02.2005 02:11:31 Manoj_Nair wrote: As you might know I have successfully got the Japanese fonts to be displayed on PDF by using the userconfig.xml file to load the MSGOTHIC.TTF fonts. In this case I was running a servlet which used FOP to convert the XML file on the webserver ( weblogic) to PDF and then open it using acrobat. I want to do the same thing within an applet. A few months back I could use FOP within an applet to convert XML residing on the server to PDF and then send the resulting PDF to the printqueue on the clients default printer. This works perfectly. Now my question is I want FOP within the applet to recognize Japanese character sets. My approach is to have the userconfig.xml, msgothic.ttf and msgothic.xml ( font metrics ) files in the same jar file as the Applet itself. Would this work? Can I just load the userconfig.xml file from the jar file using the classloader and then call FOP ? I will be trying this next week and just wanted to know your opinion. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: representative example needed
Hi Glen, Oops! Sorry...Google is giving 2:1 ratio that Ilya is male. That's right. If you also review other statements of yours in this thread, you'll understand, that all of them is are just the same rubbish. But first take a break. You are tired. Regards, Ilya -- Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: representative example needed
Hi Julian, Thank you very much. It looks very much like what i need. While the standard FOP examples are great for developers, they are not ideally suitable for demonstrations/presentations/promotions/... on the management level. I remember you from the XSL List, though i have not been able to participate in it for approx. 1.5 years already (unfortunately). Your answers were always of great help. Regards, Ilya I am maintaining an XSLT that converts RFC2629-style RFC documents to FO (thus, there's a good set of sources to try, but only a limited subset of XSL:FO is actually used). For instance, check http://greenbytes.de/tech/webdav/rfc3986.pdf. To support several distinct FO processors, I've been generating XSL-FO-1.1 for some time now, and use back-end XSLTs that either strip off 1.1 extensions or map them to custom extensions. In general, I like FOP (last time I checked it was the only free processor that does *most* what I need). I'm also testing with evaluation versions of RenderX and AntennaHouse which seem to be more complete, though. For FOP (0.20.5) and my specific application, the main drawbacks are: - need to put in specific line-breaking hints because it doesn't understand @page-break-before='always' - lack of automatic width computation in tables - link area computation problems - problems with many footnotes per page - various hyphenation issues (discussed on fop-dev 18 months ago, as far as I remember) - lack of custom extensions to map XSL 1.1 features to (for duplicate elimination in the index) Lots of samples are on http://greenbytes.de/tech/webdav/, the code itself can be found in http://greenbytes.de/tech/webdav/rfc2629xslt.zip Best regards, Julian -- green/bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: representative example needed
Back so soon, Ilya? ;) Welcome to Apache FOP! Glen --- Ilya Khandamirov [EMAIL PROTECTED] wrote: Hi Glen, Oops! Sorry...Google is giving 2:1 ratio that Ilya is male. That's right. If you also review other statements of yours in this thread, you'll understand, that all of them is are just the same rubbish. But first take a break. You are tired. Regards, Ilya -- Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ezmlm response
Hello, all, I'm quite fresh to FOP, so I need some assistance with following error message: [DEBUG] Input mode: [DEBUG] FO [DEBUG] fo input file: c:\Documents and Settings\behr\Local Settings\Temp\proC5.xml [DEBUG] Output mode: [DEBUG] pdf [DEBUG] output file: C:\DOCUME~1\behr\LOCALS~1\Temp\posC6.pdf [DEBUG] OPTIONS [DEBUG] no user configuration file is used [default] [DEBUG] debug mode on [DEBUG] dump configuration [DEBUG] quiet mode on [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] base directory: file:/c:/Documents and Settings/behr/Local Settings/Temp/ [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [ERROR] null org.apache.fop.apps.FOPException at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111) at org.apache.fop.apps.Fop.main(Fop.java:62) - java.lang.NullPointerException at org.apache.fop.fo.PropertyManager.getTextDecoration(PropertyManager.java:365) at org.apache.fop.fo.FObjMixed.init(FObjMixed.java:72) at org.apache.fop.fo.flow.Block.init(Block.java:115) at org.apache.fop.fo.flow.Block$Maker.make(Block.java:79) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:352) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.fop.apps.Driver.render(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) - java.lang.NullPointerException at org.apache.fop.fo.PropertyManager.getTextDecoration(PropertyManager.java:365) at org.apache.fop.fo.FObjMixed.init(FObjMixed.java:72) at org.apache.fop.fo.flow.Block.init(Block.java:115) at org.apache.fop.fo.flow.Block$Maker.make(Block.java:79) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:352) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.fop.apps.Driver.render(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) What is the problem FOP is crying about, and how can I solve it? Regards, Kai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedding Type 1 Polish font
Hello I am trying to produce PDF with polish fonts, unfortunately necessary characters are not in Base-14 fonts. The fonts I am trying to use can be found here - they are free: http://www.agh.edu.pl/pub/tex/GUST/contrib/fonts/cm-pl/plpsfont.zip I have created xml files with font metrics and added fonts to fop.xml. The PDF I am getting after processing my .fo file contains text with the right font but polish characters appear as '#'. My .fo file looks like this: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master margin-bottom=2cm margin-left=2cm margin-right=2cm margin-top=2cm master-name=simpleA4 page-height=29.7cm page-width=21cm fo:region-body/fo:region-body /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simpleA4 fo:flow flow-name=xsl-region-body fo:block font-family=PLRomanDemi10PLRomanDemi10-Regular: [polish chars here]/fo:block /fo:flow /fo:page-sequence /fo:root Instead of [polish chars here] I have real polish chars encoded correctly in UTF-8. For example Aogonek [hex: C484]. Has anyone solved a similiar problem? Regards Dominik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding Type 1 Polish font
I don't know myself. But these links may answer your question: http://marc.theaimsgroup.com/?l=fop-userw=2r=1s=POLISHq=b Also Google on Apache FOP Polish perhaps? Let us know if anything helped. Glen --- Jesiolowski, Dominik [EMAIL PROTECTED] wrote: Hello I am trying to produce PDF with polish fonts, unfortunately necessary characters are not in Base-14 fonts. The fonts I am trying to use can be found here - they are free: http://www.agh.edu.pl/pub/tex/GUST/contrib/fonts/cm-pl/plpsfont.zip I have created xml files with font metrics and added fonts to fop.xml. The PDF I am getting after processing my .fo file contains text with the right font but polish characters appear as '#'. My .fo file looks like this: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master margin-bottom=2cm margin-left=2cm margin-right=2cm margin-top=2cm master-name=simpleA4 page-height=29.7cm page-width=21cm fo:region-body/fo:region-body /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simpleA4 fo:flow flow-name=xsl-region-body fo:block font-family=PLRomanDemi10PLRomanDemi10-Regular: [polish chars here]/fo:block /fo:flow /fo:page-sequence /fo:root Instead of [polish chars here] I have real polish chars encoded correctly in UTF-8. For example Aogonek [hex: C484]. Has anyone solved a similiar problem? Regards Dominik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding Type 1 Polish font
Jesiolowski, Dominik wrote: I am trying to produce PDF with polish fonts, ... fop.xml. The PDF I am getting after processing my .fo file contains text with the right font but polish characters appear as '#'. ... Instead of [polish chars here] I have real polish chars encoded correctly in UTF-8. For example Aogonek [hex: C484]. My Unicode 4.0 Blocks file lists AC00..D7AF; Hangul Syllables The Data file lists 0104;LATIN CAPITAL LETTER A WITH OGONEK; Are you sure you are using the correct codes? Other possible causes of problems should have resulted in error messages: - If the font file doen't have a unicode table, you should have gotten a notification. You have to generate the metrics for such fonts with the winansiencoding flag. - The font name might have been mispelled in either the userconfig or the FO file. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]