what are the other output produced by fop using xsl-fo.
Hi all I created one xsl file for converting a html page into pdf.(Using xsl-fo).It works fine. Here I am producing the formatting object tree using xhtml and my xsl-fo file.I am not storing the fo in Hard disk.I am directly apply it to the driver. I would like to know ,using fop what are the other output I can produce using this xsl-fo.Can I produce ms word output.then what about the rendering type .i tried with driver.setRenderer(Driver.RENDER_TXT); response.setContentType(application/msword); But it showing some error like it require some converter and finally it will open the msword but not getting the content correctly. I would like to know what are the other output produced by fop using xsl-fo.Any help is available Please tell me Thanks in advance george ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ang: Re: Placing text on bottom of region-body...
Thanks for the input! footnotes worked just fine for me :-) Regards Johann M [EMAIL PROTECTED] 04/09/21 15:47 On Sep 21, 2004, at 2:33 AM, Johann Mattsson wrote: Hello all I am producing a document which may consists of 1 or more pages of same type, followed by 0 or more pages of another type, every page have a header and a footer. The last page of the first set of pages should have a certain text down on the bottom of that page, regardless of how much text it consists of otherwise. Im not certain how to produce such a FOP code to achieve this, i guess i somehow have to make a table or something that fills up the empty space in the page to get to the bottom on the page. But maybe someone have another idea or some input to give to me. Any input is welcome! Regards Johann M Sorry. I don't know the answer to this one, but perhaps it has something to do with Markers[1] and/or Footnotes[2]? Unfortunately, I'm not pointing to links on the internet of where to look, although a google search might be useful. Instead I'm pointing to example files included with FOP: [1] examples/fo/markers/ [2] examples/fo/footnotes/ Hope this helps! Web Maestro Clay - 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]
Ang: NullPointerException at.org.apache.transformer.TransformerImpl.run
Ummm Im not sure abut this, but did the rendering actualy produce any pages? The FOP output usualy logs for every page it produces too, in your console output i cant see any of that. /Johann M [EMAIL PROTECTED] 04/09/22 13:49 Hi, I use a Struts Action doing what the FopPrintServlet (from examples) does. When I put projectteam.xml and projectteam2fo.xsl (from examples too) into the querystring as suggested, everything works fine. But when I try to provide the projectteam.xml via a JSP file that includes the content of projectteam.xml I get a NullPointerException: java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.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.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134) at org.apache.fop.apps.Driver.render(Driver.java:498) at at.syslog.spm.action.Print_Action.renderXML(Unknown Source) and more Let me say that the jsp file is perfect xml markup: ?xml version=1.0 encoding=UTF-8? jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jstl/core; version=2.0 jsp:directive.page contentType=text/html/ c:set var=locationTable jsp:include page=/Include_Servlet flush=true/ /c:set c:out value=${locationTable}/ /jsp:root the console says: [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] Parsing of document complete, stopping renderer What went wrong? Wolfgang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Faxing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Neil, have a look at http://sourceforge.net/projects/documentserver/ There I set up a document-server which also has a modul to fax FOP generated documents with HylaFax. Even if the hole Documentserver might be to much for your purposes, you can look at the source of the HylaFax module. If you have further questions feel free to contact me. Holger Am Mittwoch, 22. September 2004 20:06 schrieb Neil Guinto: I wan't to get some ideas from this list how you handle faxing of PDF documents? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBUnkr1ZVW9AajbE4RAuKCAJ0Rk6WuoTgn0WL0mFyUWOxaHMFh/QCggoRB ETDoqEcWv0PGp8Wi1h3W6IY= =ywee -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error with multi-column page
Hi there, When I try to generate a PDF with the following FO, I get an error: [ERROR] file:/E:/projets/peugeot/blueTeam/fop3/data.fo:12:35 No meaningful layout in block after many attempts. Infinite loop is assumed. Processing halted. I use FOP 0.20.5. If I suppress either a fo:external-graphic or the span=all attribute in the final fo:block, I get no error. - span attribute is used to avoid id already exist error (can't remove it) Is there a solution? Pascal snip ?xml version=1.0 encoding=ISO-8859-1? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set xmlns:fox=http://xml.apache.org/fop/extensions; fo:simple-page-master page-height=327mm page-width=240mm margin-top=0mm margin-bottom=0mm margin-left=0mm margin-right=0mm master-name=gauche fo:region-body column-count=2 column-gap=5mm margin-top=79.35mm margin-bottom=42mm margin-left=59.55mm margin-right=34.8mm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence language=fr master-reference=gauche fo:flow flow-name=xsl-region-body fo:block border=solid red .1mmfo:external-graphic width=800pt height=548pt src=dummy.gif//fo:block fo:block border=solid red .1mmfo:external-graphic width=800pt height=548pt src=dummy.gif//fo:block fo:block border=solid red .1mmfo:external-graphic width=800pt height=548pt src=dummy.gif//fo:block fo:block/fo:block /fo:flow /fo:page-sequence /fo:root /snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Words Search!
Dear Support Team! When I created a PDF file (FOP02005) and want search after some words which cames in the PDF, I doesn't get any results. But when I copy the Text from the PDF and paste it on the Search value (I get some special signs, when I save the PDF file as a text file I get dots for the Textfields.) When I use some fonts which is not in the fopconfig.xml, I'm able to search. Is it a bug or ? Best Regards! Anton Thavakumar Packianathan Professional Service jCatalog Software AG Lindemannstr. 79 44137 Dortmund - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Words Search!
It's a known bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5335 There's a proposed work-around if you follow the closed duplicate bug at the bottom of the above page. I think Victor Mote has fixed the issue in his foray branch: http://foray.sourceforge.net/release.html It's also not fixed, yet, in CVS HEAD (redesign), I think. I hope we can backport his fix into the redesign later. On 23.09.2004 11:54:22 Anton Packianathan wrote: Dear Support Team! When I created a PDF file (FOP02005) and want search after some words which cames in the PDF, I doesn't get any results. But when I copy the Text from the PDF and paste it on the Search value (I get some special signs, when I save the PDF file as a text file I get dots for the Textfields.) When I use some fonts which is not in the fopconfig.xml, I'm able to search. Is it a bug or ? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: what are the other output produced by fop using xsl-fo.
George, it's all on the website: http://xml.apache.org/fop/output.html If you want to create output to open in MS Word, you should look for RTF, Word HTML or WordML output. JFOR provides RTF output. JFOR has also been integrated into the FOP redesign. There are other tools to create WordML and Word HTML from FO. I don't think there's any converter for FO to DOC, yet. At least, I haven't found any, yet. The Text output you mention is really text-only. I don't think that's what you're looking for. On 23.09.2004 07:28:19 Eldho George wrote: I created one xsl file for converting a html page into pdf.(Using xsl-fo).It works fine. Here I am producing the formatting object tree using xhtml and my xsl-fo file.I am not storing the fo in Hard disk.I am directly apply it to the driver. I would like to know ,using fop what are the other output I can produce using this xsl-fo.Can I produce ms word output.then what about the rendering type .i tried with driver.setRenderer(Driver.RENDER_TXT); response.setContentType(application/msword); But it showing some error like it require some converter and finally it will open the msword but not getting the content correctly. I would like to know what are the other output produced by fop using xsl-fo.Any help is available Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Opening fop pdf in Internet Explorer
Hi, I have a process that creates a PDF through FOP and stores it in Documentum (a document management service). When a user wishes to view the PDF it is streamed back via a servlet into IE, but IE cannot open it and the user is presented with a blank screen. To get around this we have to send it to a windows box and open and save it in acrobat and then stream it back. Our HTTP header includes the content type and length. Does anyone know why the fop only version does not open? thanks, Stuart Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SPAM-LOW: Building FOP
Dear John Farrow, Thank you very much. Now I have build the fop successfully. My main aim is to have MathML support in FOP. I have taken the mathml.fo from examples folder and executed the fop command. I got the following error message. Please help me in how to solve this problem and get the mathml output. fop mathml.fo mathml.pdf Unknown formatting object http://www.w3.org/1998/Math/MathML^math Unknown formatting object http://www.w3.org/1998/Math/MathML^mrow Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mrow Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^math Unknown formatting object http://www.w3.org/1998/Math/MathML^mrow Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mtable Unknown formatting object http://www.w3.org/1998/Math/MathML^mtr Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mrow Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mtable Unknown formatting object http://www.w3.org/1998/Math/MathML^mtr Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mtr Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mrow Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mtable Unknown formatting object http://www.w3.org/1998/Math/MathML^mtr Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mtr Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mtr Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mn Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mrow Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mtable Unknown formatting object http://www.w3.org/1998/Math/MathML^mtr Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mtr Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mtd Unknown formatting object http://www.w3.org/1998/Math/MathML^mi Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Exception org.apache.fop.apps.FOPException Regards, Ganesh -Original Message- From: john farrow [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 3:12 PM To: [EMAIL PROTECTED] Subject: Re: SPAM-LOW: Building FOP Try editing the
problem in rendering PS image
Dear All, I had ps image and it has to be inserted in the PDF which I am going to generate. I have used the following code to insert this graphic. fo:block fo:external-graphic src=file:D:/xml-fop/gae.ps/ /fo:block The result is, following error message. Please suggest me how to solve this. I am attaching both fo and ps file. fop helloworld.fo helloworld.pdf Could not find a set of breaking points java.lang.OutOfMemoryError Exception in thread main Thanks in advance. Ganesh gae.ps Description: PostScript document ?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 master-name=simpleA4 page-height=29.7cm page-width=21cm margin-top=2cm margin-bottom=2cm margin-left=2cm margin-right=2cm 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:blockHello World!/fo:block fo:block fo:external-graphic src=file:D:/xml-fop/gae.ps/ /fo:block /fo:flow /fo:page-sequence /fo:root - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem in rendering PS image
That doesn't work like this. FOP provides limited support for EPS (not PS!) images. An embedded EPS graphic will not show within Acrobat Reader as Acrobat Reader doesn't contain a PostScript interpreter, neither does FOP. Only if you print a PDF to a PostScript printer will an EPS graphic embedded in a PDF be visible. Only GhostScript is able to display EPS graphics in a PDF because it is a PostScript interpreter. Note: Support for EPS graphics in PDF has been deprecated with the latest specs. Either you convert your PS file to EPS and live with the limitations indicated above or you will have to use an entirely different image format. SVG would be a good choice. On 23.09.2004 01:12:56 Ganesh Babu Nallamothu, Integra-India wrote: I had ps image and it has to be inserted in the PDF which I am going to generate. I have used the following code to insert this graphic. fo:block fo:external-graphic src=file:D:/xml-fop/gae.ps/ /fo:block The result is, following error message. Please suggest me how to solve this. I am attaching both fo and ps file. fop helloworld.fo helloworld.pdf Could not find a set of breaking points java.lang.OutOfMemoryError Exception in thread main Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building FOP
You have to make sure that the MathML extension from examples/mathml is compiled and added to the classpath. Otherwise, the MathML namespace will not be recognized and processed. On 23.09.2004 01:12:55 Ganesh Babu Nallamothu, Integra-India wrote: Thank you very much. Now I have build the fop successfully. My main aim is to have MathML support in FOP. I have taken the mathml.fo from examples folder and executed the fop command. I got the following error message. Please help me in how to solve this problem and get the mathml output. fop mathml.fo mathml.pdf Unknown formatting object http://www.w3.org/1998/Math/MathML^math snip/ Exception org.apache.fop.apps.FOPException Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PDF Processors
Hi Do we have any PDF processors without using XSLT. In this GUI Tools world lack of GUI design tools to produce XSLT and some of our team members thinking XSLT is big hassle to design as per their requirement mainly grouping after 3 or 4 levels. Any comments please. Regards Srini Visit our website at http://www.aqa.org.uk. DISCLAIMER: This e-mail is intended solely for the addressee, is strictly confidential, and may also be legally privileged. If you are not the addressee you may not read, print, re-transmit, store or act in reliance on it or any attachments. Please also destroy this message and notify us immediately by reply. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hyphenation
Hi, how i can activate the hyphenation for geman! Regards! Thava! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF Processors
Hi Srini, FOP has nothing to do with XSLT at all. XSLT just happens to be the recommended way to generate XSL-FO which is what FOP is designed to convert to PDF. Packages such as iText, for example, can be used to create PDF by hand, but then you're going from standard to proprietary solutions. You can also use a reporting engine such as Crystal Reports or JasperReports. It all depends if you want to use XSL-FO or not. There are also alternatives to XSLT: Velocity: http://jakarta.apache.org/velocity/ FreeMarker: http://www.theserverside.com/news/thread.tss?thread_id=20015 XPathScript: http://axkit.org/docs/xpathscript/guide.dkb more by googling... ...but that doesn't spare you from designing templates by hand. If a GUI design tool is important to you and the FO editors on the market don't fit your needs, popular reporting tools are probably your best alternative. On 23.09.2004 13:42:00 Avula, Srini wrote: Do we have any PDF processors without using XSLT. In this GUI Tools world lack of GUI design tools to produce XSLT and some of our team members thinking XSLT is big hassle to design as per their requirement mainly grouping after 3 or 4 levels. Any comments please. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hyphenation
See here: http://xml.apache.org/fop/hyphenation.html http://offo.sourceforge.net/ http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=1881555 On 23.09.2004 14:09:34 Anton Packianathan wrote: how i can activate the hyphenation for geman! Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Opening fop pdf in Internet Explorer
[EMAIL PROTECTED] napisa(a): Hi, I have a process that creates a PDF through FOP and stores it in Documentum (a document management service). When a user wishes to view the PDF it is streamed back via a servlet into IE, but IE cannot open it and the user is presented with a blank screen. To get around this we have to send it to a windows box and open and save it in acrobat and then stream it back. Our HTTP header includes the content type and length. Does anyone know why the fop only version does not open? I set headers: response.setContentType(application/pdf); response.setHeader(Content-Length, length ); response.setHeader(Last-Modified, Tue, 03 Jun 01997 08:14:00 GMT); and it works fine for me. Does it happen only on one computer? Did you test it on others? plastic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Opening fop pdf in Internet Explorer
Hi It cannot be opened on any computer in in the company or on our clients Pc's. This is my header: (Response Status) HTTP/1.0 200 OK Content-Length 122130 Content-Typeapplication/pdf DateThu, 23 Sep 2004 09:58:45 GMT Server Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 ) but just shows a blank page. -Original Message- From: Michal Postupalski [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 14:05 To: [EMAIL PROTECTED] Subject: Re: Opening fop pdf in Internet Explorer [EMAIL PROTECTED] napisa(a): Hi, I have a process that creates a PDF through FOP and stores it in Documentum (a document management service). When a user wishes to view the PDF it is streamed back via a servlet into IE, but IE cannot open it and the user is presented with a blank screen. To get around this we have to send it to a windows box and open and save it in acrobat and then stream it back. Our HTTP header includes the content type and length. Does anyone know why the fop only version does not open? I set headers: response.setContentType(application/pdf); response.setHeader(Content-Length, length ); response.setHeader(Last-Modified, Tue, 03 Jun 01997 08:14:00 GMT); and it works fine for me. Does it happen only on one computer? Did you test it on others? plastic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Opening fop pdf in Internet Explorer
Hi Stuart Did you also try with other browsers? It could to be the 'good old' IE-mimetype-problem :-/ What happens if you append 'pdf=.pdf' to the url in the request? Helmut -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 23. September 2004 12:55 An: [EMAIL PROTECTED] Betreff: Opening fop pdf in Internet Explorer Hi, I have a process that creates a PDF through FOP and stores it in Documentum (a document management service). When a user wishes to view the PDF it is streamed back via a servlet into IE, but IE cannot open it and the user is presented with a blank screen. To get around this we have to send it to a windows box and open and save it in acrobat and then stream it back. Our HTTP header includes the content type and length. Does anyone know why the fop only version does not open? thanks, Stuart Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Helmut Gehrer (Helmut Gehrer (Visana)).vcf Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NullPointerExceptionat.org.apache.transformer.TransformerImpl.run
- Original Message - From: Johann Mattsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 23, 2004 8:45 AM Subject: Ang: NullPointerExceptionat.org.apache.transformer.TransformerImpl.run Ummm Im not sure abut this, but did the rendering actualy produce any pages? The FOP output usualy logs for every page it produces too, in your console output i cant see any of that. Actually my JSP file could not produce any input, But that problem is solved now by introducing the JSP file via URL class. Thanks Wolfgang /Johann M [EMAIL PROTECTED] 04/09/22 13:49 Hi, I use a Struts Action doing what the FopPrintServlet (from examples) does. When I put projectteam.xml and projectteam2fo.xsl (from examples too) into the querystring as suggested, everything works fine. But when I try to provide the projectteam.xml via a JSP file that includes the content of projectteam.xml I get a NullPointerException: java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH andlerImpl.java:433) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatc h(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.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134) at org.apache.fop.apps.Driver.render(Driver.java:498) at at.syslog.spm.action.Print_Action.renderXML(Unknown Source) and more Let me say that the jsp file is perfect xml markup: ?xml version=1.0 encoding=UTF-8? jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jstl/core; version=2.0 jsp:directive.page contentType=text/html/ c:set var=locationTable jsp:include page=/Include_Servlet flush=true/ /c:set c:out value=${locationTable}/ /jsp:root the console says: [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] Parsing of document complete, stopping renderer What went wrong? Wolfgang - 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]
FOP Tools, Tips, Techniques and Examples
On Sep 23, 2004, at 12:20 AM, Holger Dehnhardt wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Neil, have a look at http://sourceforge.net/projects/documentserver/ There I set up a document-server which also has a modul to fax FOP generated documents with HylaFax. Even if the hole Documentserver might be to much for your purposes, you can look at the source of the HylaFax module. If you have further questions feel free to contact me. Holger If anyone has any other Tools, Tips, Techniques and/or Examples (or anything not listed there, but useful to the FOP ccommunity), please send a reply to this message. At the least, I could put a link to your project. If the code/source/binary is particularly useful, and has the proper license, we might even be able to distribute it with FOP (which would require an Apache Software License). Thanks! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Opening fop pdf in Internet Explorer
On Sep 23, 2004, at 3:54 AM, [EMAIL PROTECTED] wrote: Hi, I have a process that creates a PDF through FOP and stores it in Documentum (a document management service). When a user wishes to view the PDF it is streamed back via a servlet into IE, but IE cannot open it and the user is presented with a blank screen. To get around this we have to send it to a windows box and open and save it in acrobat and then stream it back. Our HTTP header includes the content type and length. Does anyone know why the fop only version does not open? thanks, Stuart Can you confirm that you've checked the FAQ[1] and that the problem isn't discussed here[2]? Thanks! Web Maestro Clay [1] http://xml.apache.org/fop/faq.html [2] http://xml.apache.org/fop/servlets.html#ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building FOP
Dear Jeremias Maerki, Thanks for pointing out where the error is. If my understanding is correct, I have checked in the classes folder in the build folder. In that I can not able to find MathML folder. fop.jar will contain only this folder. I am seeing in each folder inside examples folder we are having one build.xml file. Is it that we need to go into each folder and build. or main build.xml will take care. If main will take care how to add the MathML folder into the main. Ganesh -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 4:56 PM To: [EMAIL PROTECTED] Subject: Re: Building FOP You have to make sure that the MathML extension from examples/mathml is compiled and added to the classpath. Otherwise, the MathML namespace will not be recognized and processed. On 23.09.2004 01:12:55 Ganesh Babu Nallamothu, Integra-India wrote: Thank you very much. Now I have build the fop successfully. My main aim is to have MathML support in FOP. I have taken the mathml.fo from examples folder and executed the fop command. I got the following error message. Please help me in how to solve this problem and get the mathml output. fop mathml.fo mathml.pdf Unknown formatting object http://www.w3.org/1998/Math/MathML^math snip/ Exception org.apache.fop.apps.FOPException Jeremias Maerki - 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: Building FOP
The two builds are not connected to each other. The build in examples/mathml will create a file named mathml-fop.jar. After building FOP itself, add the above JAR file to the classpath when running FOP. The MathML extension is automatically detected during runtime by FOP (if it's in the classpath). On 23.09.2004 05:15:40 Ganesh Babu Nallamothu, Integra-India wrote: Thanks for pointing out where the error is. If my understanding is correct, I have checked in the classes folder in the build folder. In that I can not able to find MathML folder. fop.jar will contain only this folder. I am seeing in each folder inside examples folder we are having one build.xml file. Is it that we need to go into each folder and build. or main build.xml will take care. If main will take care how to add the MathML folder into the main. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building FOP
I tried to build MathML. But it is asking jeuclid.jar file should be there in the lib folder. I have searched in the I am having jeuclid.tar.gz but I am not having jeuclid.jar. Can you please help me how to create the jeuclid.jar from the gz file. -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 9:00 PM To: [EMAIL PROTECTED] Subject: Re: Building FOP The two builds are not connected to each other. The build in examples/mathml will create a file named mathml-fop.jar. After building FOP itself, add the above JAR file to the classpath when running FOP. The MathML extension is automatically detected during runtime by FOP (if it's in the classpath). On 23.09.2004 05:15:40 Ganesh Babu Nallamothu, Integra-India wrote: Thanks for pointing out where the error is. If my understanding is correct, I have checked in the classes folder in the build folder. In that I can not able to find MathML folder. fop.jar will contain only this folder. I am seeing in each folder inside examples folder we are having one build.xml file. Is it that we need to go into each folder and build. or main build.xml will take care. If main will take care how to add the MathML folder into the main. Jeremias Maerki - 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: Opening fop pdf in Internet Explorer
Is the servlet accessed by HTTPS? If so there is a bug in IE that will prevent it opening pdf's (or any other plug-in requiring mime type) if Do NOt Save Encrypted Pages to Disk is selected. We came across this problem recently. We were sent a Knowledge base report and managed to find a work-around but I don't have the details to hand. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 23, 2004 11:54 AM Subject: Opening fop pdf in Internet Explorer Hi, I have a process that creates a PDF through FOP and stores it in Documentum (a document management service). When a user wishes to view the PDF it is streamed back via a servlet into IE, but IE cannot open it and the user is presented with a blank screen. To get around this we have to send it to a windows box and open and save it in acrobat and then stream it back. Our HTTP header includes the content type and length. Does anyone know why the fop only version does not open? thanks, Stuart Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.762 / Virus Database: 510 - Release Date: 15/09/04 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ERROR -2
Not sure if this is a posting to the FOP users group or not. Here goes anyway ... Ive just started using Xalan and FOP to attempt creation of pdf documents. When running FOP I get the following: [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [ERROR] -2 Im not getting any output file and cant find the error code -2 on the FAQ. Just wondering what this means or if there is an error code listing? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 17:59 To: [EMAIL PROTECTED] Subject: WELCOME to [EMAIL PROTECTED] Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. Acknowledgment: I have added the address [EMAIL PROTECTED] to the fop-user mailing list. Welcome to [EMAIL PROTECTED] Please save this message so that you know the address you are subscribed under, in case you later want to unsubscribe or change your subscription address. --- Administrative commands for the fop-user list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: To subscribe to the list, send a message to: [EMAIL PROTECTED] To remove your address from the list, send a message to: [EMAIL PROTECTED] Send mail to the following for info and FAQ for this list: [EMAIL PROTECTED] [EMAIL PROTECTED] Similar addresses exist for the digest list: [EMAIL PROTECTED] [EMAIL PROTECTED] To get messages 123 through 145 (a maximum of 100 per request), mail: [EMAIL PROTECTED] To get an index with subject and author for messages 123-456 , mail: [EMAIL PROTECTED] They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499. To receive all messages with the same subject as message 12345, send an empty message to: [EMAIL PROTECTED] The messages do not really need to be empty, but I will ignore their content. Only the ADDRESS you send to is important. You can start a subscription for an alternate address, for example [EMAIL PROTECTED], just add a hyphen and your address (with '=' instead of '@') after the command word: [EMAIL PROTECTED] To stop subscription for this address, mail: [EMAIL PROTECTED] In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription. If despite following these instructions, you do not get the desired results, please contact my owner at [EMAIL PROTECTED] Please be patient, my owner is a lot slower than I am ;-) --- Enclosed is a copy of the request I received. Return-Path: [EMAIL PROTECTED] Received: (qmail 20828 invoked by uid 99); 23 Sep 2004 16:58:29 - X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [194.217.126.3] (HELO mailgate.tissoft.co.uk) (194.217.126.3) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 23 Sep 2004 09:58:28 -0700 Received: by mailgate.tissoft.co.uk (Postfix, from userid 538) id 080128E4F; Thu, 23 Sep 2004 17:58:25 +0100 (BST) Received: from ct-mail.tissoft.co.uk (ct-mail.tissoft.co.uk [192.168.1.227]) by mailgate.tissoft.co.uk (Postfix) with ESMTP id 296438E4D for fop-user-sc.1095958608.hkhlnogjecibidngadke-mark.donnelly=strategixsoftware [EMAIL PROTECTED]; Thu, 23 Sep 2004 17:58:21 +0100 (BST) Received: by ct-mail.tissoft.co.uk with Internet Mail Service (5.5.2656.59) id RS90NL1G; Thu, 23 Sep 2004 18:08:26 +0100 Message-ID: [EMAIL PROTECTED] From: Mark Donnelly [EMAIL PROTECTED] To: 'fop-user-sc.1095958608.hkhlnogjecibidngadke-mark.donnelly=strategixsoftwar [EMAIL PROTECTED]' fop-user-sc.1095958608.hkhlnogjecibidngadke-mark.donnelly=strategixsoftware [EMAIL PROTECTED] Subject: RE: confirm subscribe to [EMAIL PROTECTED] Date: Thu, 23 Sep 2004 18:08:24 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset=iso-8859-1 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mailgate.tissoft.co.uk X-Spam-Status: No, hits=-3.9 required=5.3 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Level: X-Virus-Checked: Checked -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 17:57 To: [EMAIL PROTECTED] Subject: confirm subscribe to [EMAIL PROTECTED] Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. To confirm that you would like [EMAIL PROTECTED] added to the fop-user mailing list, please send an empty reply to this address: fop-user-sc.1095958608.hkhlnogjecibidngadke-mark.donnelly=strategixsoftware. [EMAIL PROTECTED] Usually, this happens when you just hit the reply button. If this does not
Re: Building FOP
As far as I know, JEuclid ships source-only, so you have to build it yourself. It has a build.xml, hasn't it? Just call ant or ant.sh in the directory. If you don't have that you'll need to do a proper installation of Ant first, which is a good idea anyway. On 23.09.2004 07:02:19 Ganesh Babu Nallamothu, Integra-India wrote: I tried to build MathML. But it is asking jeuclid.jar file should be there in the lib folder. I have searched in the I am having jeuclid.tar.gz but I am not having jeuclid.jar. Can you please help me how to create the jeuclid.jar from the gz file. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ERROR -2
Strange. If you're doing this on the command-line, use -d to get additional error information. If you're running from Java make sure that DEBUG log level is enabled. On 23.09.2004 19:20:39 Mark Donnelly wrote: Not sure if this is a posting to the FOP users group or not. Here goes anyway ... Ive just started using Xalan and FOP to attempt creation of pdf documents. When running FOP I get the following: [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [ERROR] -2 Im not getting any output file and cant find the error code -2 on the FAQ. Just wondering what this means or if there is an error code listing? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ERROR -2
M: org.apache.fop.apps.FOPException: -2 at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111) at org.apache.fop.apps.Fop.main(Fop.java:62) Looks like FOP is not happy with something but what it doesnt really say. -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 18:23 To: [EMAIL PROTECTED] Subject: Re: ERROR -2 Strange. If you're doing this on the command-line, use -d to get additional error information. If you're running from Java make sure that DEBUG log level is enabled. On 23.09.2004 19:20:39 Mark Donnelly wrote: Not sure if this is a posting to the FOP users group or not. Here goes anyway ... Ive just started using Xalan and FOP to attempt creation of pdf documents. When running FOP I get the following: [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [ERROR] -2 Im not getting any output file and cant find the error code -2 on the FAQ. Just wondering what this means or if there is an error code listing? Jeremias Maerki - 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]
XSLT transformation to PDF, Chinese characters lost
Problem: generated PDF file shows '#' characters instead of Chinese characters. So I dug around on the faqs and archives and didn't see a specific example that shows how to accomplish what I'm trying to do heres the problem, I have a xslt file which gets loaded and transformed via java code. The transformation does the following: 1) Creates a .fo file 2) Calls an XSLT extension to generate the PDF file, using the .fo file it just produced In detail here what I do. Java code executes Transformation- transformation creates .fo file--transformation then grabs file and passes it to a XSLT extension which produces the pdf file. The XSLT extension java code looks like public static void createPDF (String foFileName, String pdfFileName) { .. do setup work // Create a new FOP driver object Driver driver = new Driver(); // Setup FOP with a logger Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); driver.setLogger(logger); MessageHandler.setScreenLogger(logger); // Setup FOP to render PDF driver.setRenderer (Driver.RENDER_PDF); // Create an output stream for the pdf file and tell FOP about it out = new java.io.FileOutputStream (pdfFile); driver.setOutputStream (out); // Create an input stream for the fo file and tell FOP about it in = new java.io.FileInputStream (foFile); driver.setInputSource (new InputSource (in)); // Generate the output driver.run(); the xslt for the extension looks like xsl:value-of select=java:com.xxx.core.internal.XSLT.XSLTExtension.createPDF($foFullPathName, $reportFullPathName)/ This all works great BUT!! The problem is that on Chinese if I have text that has Chinese characters they are replaced with # characters, and I can figure no way around this. So. Digging around I see that I need to embed fonts, but... How do I do this programmatically? How do I do this so it works on Windows and Linux?
Re: ERROR -2
No idea where this comes from. Anyone else got an idea? Mark, please give us the full command-line you're using along with the JDK version you're using. On 23.09.2004 19:41:49 Mark Donnelly wrote: M: org.apache.fop.apps.FOPException: -2 at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111) at org.apache.fop.apps.Fop.main(Fop.java:62) Looks like FOP is not happy with something but what it doesnt really say. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSLT transformation to PDF, Chinese characters lost
On 23.09.2004 20:24:22 Mike J Boyersmith wrote: Problem: generated PDF file shows '#' characters instead of Chinese characters. As you probably found out yourself, this here applies: http://xml.apache.org/fop/faq.html#pdf-characters snip/ This all works great BUT!! The problem is that on Chinese if I have text that has Chinese characters they are replaced with ‘#’ characters, and I can figure no way around this…. So…. Digging around I see that I need to embed fonts, but…... How do I do this programmatically? Create the font metrics XML for your TrueType fonts as described here: http://xml.apache.org/fop/fonts.html Then use the userconfig.xml as described here: http://xml.apache.org/fop/embedding.html#config-external It's probably best to try on the command-line first and then port the whole thing into Java. How do I do this so it works on Windows and Linux? Don't worry about that. It works the same way on both platforms. That's because FOP uses its own font subsystem for PDF and PS output. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSLT transformation to PDF, Chinese characters lost
On 23.09.2004 20:24:22 Mike J Boyersmith wrote: Problem: generated PDF file shows '#' characters instead of Chinese characters. As you probably found out yourself, this here applies: http://xml.apache.org/fop/faq.html#pdf-characters yup saw that, I found the FOP examples to... but not One of them shows how to do a end to end walk through of dealing with language/i18n type issues :(. That would be a great addition to the examples collection. snip/ This all works great BUT!! The problem is that on Chinese if I have text that has Chinese characters they are replaced with '#' characters, and I can figure no way around this. So. Digging around I see that I need to embed fonts, but How do I do this programmatically? Create the font metrics XML for your TrueType fonts as described here: http://xml.apache.org/fop/fonts.html Then use the userconfig.xml as described here: http://xml.apache.org/fop/embedding.html#config-external It's probably best to try on the command-line first and then port the whole thing into Java How do I do this so it works on Windows and Linux? Don't worry about that. It works the same way on both platforms. That's because FOP uses its own font subsystem for PDF and PS output. Would be nice if I could just specify font-family, and it would all work, but guess I'm dreaming. will try walking through the problem from the command line as you suggested. Thanks for the quick reply :D
Re: XSLT transformation to PDF, Chinese characters lost
On 23.09.2004 20:58:08 Mike J Boyersmith wrote: On 23.09.2004 20:24:22 Mike J Boyersmith wrote: Problem: generated PDF file shows '#' characters instead of Chinese characters. As you probably found out yourself, this here applies: http://xml.apache.org/fop/faq.html#pdf-characters yup saw that, I found the FOP examples to... but not One of them shows how to do a end to end walk through of dealing with language/i18n type issues :(. That would be a great addition to the examples collection. You could write that for us when you've got it working. It's the cool thing about Open Source: Everybody can help. :-) snip/ This all works great BUT!! The problem is that on Chinese if I have text that has Chinese characters they are replaced with '#' characters, and I can figure no way around this…. So. Digging around I see that I need to embed fonts, but How do I do this programmatically? Create the font metrics XML for your TrueType fonts as described here: http://xml.apache.org/fop/fonts.html Then use the userconfig.xml as described here: http://xml.apache.org/fop/embedding.html#config-external It's probably best to try on the command-line first and then port the whole thing into Java How do I do this so it works on Windows and Linux? Don't worry about that. It works the same way on both platforms. That's because FOP uses its own font subsystem for PDF and PS output. Would be nice if I could just specify font-family, and it would all work, but guess I'm dreaming. will try walking through the problem from the command line as you suggested. No dreaming, that's the plan. It just didn't happen, yet. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]