Re: FOPException / Quiet Mode / error compliing servlets
Thanks Jay and Jeremias for your help. I need to convince people from work that FOP is our PDF solution. However, without a good scalability test result (100% job completion rate), I am having trouble doing so. I truely believe that one of the main reason for out of memory error is because FOP is running in debug mode, where you see every page gets generated (ex: page 1,2 [1][2]). Most of the memory is used by java to write debug information such as pages complete, initial and final heap size.. etc on to window's console. If I can turn this off and run FOP in quiet mode, I am guessing the performance would increase by at least 30% and scability will also improve. Jeremias, you sugguest to me to change edit the logger (http://xml.apache.org/fop/embedding.html). how do I edit the code? Do I need to get Avalon? Using a text editor. :-) Seriously, I guess you're using the fop.war in docs/examples/embedding, right? The source code is in FopServlet.java. Unfortunately, the WAR file is not built with the build script, so you have to manually build the WAR file after adjusting the code. Actually, it's not even necessary to build the WAR. It is sufficient to compile FopServlet.java (you need to get servlet.jar from your web container to do that) and place it (along with a web.xml file) in the right places. And you don't need to get Avalon, since the necessary jars are in the lib directory of FOP's distribution. Jay, you mentioned that I might have to edit the FOP source code. Do you know which java file I should edit so I can turn off the log screen? Also, I am having trouble compling servlets. Following is the error message, can you tell me where I can get the SAX servlet package? SAX has nothing to do with servlets. The SAX stuff is in xerces.jar. You can get the servlet.jar from your web container or from here: http://java.sun.com/products/servlet/ To turn of logging you can also try to call MessageHandler.setOutputMethod(MessageHandler.NONE); Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch
RE: : XML - MS Word??
It would be. However, we had to present the data that we presented in an HTML table in an instant in Excel and this was the easiest way to make sure that the customer did not have to perform any action in Excel to view the data (so no imports/formatting necessary). Apart from that, the whole thing was meant as an extra feature in an HTML reporting system. But I agree: this is totally off topic for this list. $ -Original Message- $ From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] $ Sent: maandag 4 maart 2002 18:47 $ To: [EMAIL PROTECTED] $ Subject: Re: : XML - MS Word?? $ $ $ From: Carlos Araya [EMAIL PROTECTED] $ $ Michiel: $ $ Wouldn't it be easier to translate the xml to a CSV (comma separated $ value) $ file, import that into Excel and then finish up the $ formating? I wouldn't $ even bother trying the MS_HTML option $ $ See http://jakarta.apache.org/poi/ . $ Pure java classes that write to Office formats. $ Excel reader-writer is tried and tested. $ $ -- $ Nicola Ken Barozzi [EMAIL PROTECTED] $ - verba volant, scripta manent - $(discussions get forgotten, just code remains) $ - $
watermarking
hello all Is there any way of adding some kind of watermark to a PDF document generated with FOP ? I am using FOP in a JSP environment. Thanks Chris
Re: watermarking
I've heard some people using FOP for generating PDFs, then using iText afterwards to add watermarking to their dynamically FOP-generated PDFs. But I havent tested it myself. Good luck. Guillaume - Original Message - From: Chris Faulkner To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 10:44 AM Subject: watermarking hello allIs there any way of adding some kind of watermark to a PDF document generated with FOP ? I am using FOP in a JSP environment.ThanksChris
mathml and fop
Hi I need to include a few maths formulae (both inline and displayed) and a 3x3 matix in a pdf document created from an XML source. As fop does not recognize mathml any suggestions how I can do it? Tony McNicholl [EMAIL PROTECTED]
FAQ
The FOP FAQ is back up at a slightly new location http://www.owal.co.uk/cgi-bin/fopfaq.cgi It isn't perfect yet. It doesn't tell you the topics each question is in - just lists questions and answers. However it should have all the answers from the FAQ as of a couple of months ago. Any criticism of the FAQ is welcome but volunteers more so :-) If you like you can take a backup copy of this html file. I will be looking into producing an xdocs (XML) version of the FAQ so that it can be stored in CVS. If anyone wants to discuss this then please email me. PS - Please can people come up with more example fo files. Thanks. I think I may take this opportunity for a plug Anyone who dislikes adverts should stop reading now. My firm (http://www.OWAL.co.uk) is offering London companies free consultancy in open source software. This can include FOP. Check the website for more info or email me. Alex
Re: mathml and fop
At 12:25 05/03/02, Tony McNicholl wrote: Hi I need to include a few maths formulae (both inline and displayed) and a 3x3 matix in a pdf document created from an XML source. As fop does not recognize mathml any suggestions how I can do it? Hello Tony. I'm not sure if this is obvious to you but you essentially need to convert your mathml into XSL:FO so that FOP can recognise it. You would typically use an XSL stylesheet, but other methods may be possible. This is probably something which should be approached by whoever developed mathml as I don't expect it to be trivial. A swift google search for Mathml and fo came up with http://lists.oasis-open.org/archives/docbook/200104/msg00029.html and http://www.biglist.com/lists/xsl-list/archives/200105/msg01310.html Oh - this latter suggests that a different XSL:FO processor (PassiveTeX) natively supports MathML. Hm. Ok Here's my guess What you need to do is to take the MathML and convert it to vector graphics (SVG) and then feed the SVG to FOP. Unfortunately I don't know of such a tool. Anyone want to take up the baton? Alex
Re: mathml and fop
alex wrote: Ok Here's my guess What you need to do is to take the MathML and convert it to vector graphics (SVG) and then feed the SVG to FOP. Unfortunately I don't know of such a tool. Anyone want to take up the baton? I think custard might work http://www.schemasoft.com/MathML/ not tried it really though cheers James
Re: mathml and fop
See https://sourceforge.net/projects/jeuclid/ The JEuclid is a project, which creates the possibility to display MathML content. It is primary a Transformer/Serializer for the Cocoon project, and creates GIF images or converts the MathML content to SVG. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) -
Re: mathml and fop
On 2002.03.05 14:37 Nicola Ken Barozzi wrote: See https://sourceforge.net/projects/jeuclid/ The JEuclid is a project, which creates the possibility to display MathML content. It is primary a Transformer/Serializer for the Cocoon project, and creates GIF images or converts the MathML content to SVG. I don't know how advanced that is but adding an extension to do the conversion in fop would be no problem.
Re: watermarking
Use the region-before. Make it large enough to contain your image and then include a block (and if required an absolutely positioned block-container) with your image in the static-content for the region-before. (BTW this is the same technique as used in MS Word). Trev Chris Faulkner [EMAIL PROTECTED] To: [EMAIL PROTECTED] world.com cc: Subject: watermarking 05/03/2002 08:44 PM Please respond to fop-user hello all Is there any way of adding some kind of watermark to a PDF document generated with FOP ? I am using FOP in a JSP environment. Thanks Chris
SV: dynamic image in PDF
Am I the only one having problems with including images when running FOP as part of a J2EE application? When running FOP stand alone, I can specify the path to my image as per normal, but when Im running FOP as part of my application I get output that boils down to that I havent specified a base directory. Now, going through the API I find no way of setting FOP:s base directory at runtime, neither how to turn off logging. Could someone help me out? It would be awesome if I could give FOP an Image or a byte[] directly, but just getting file: or url: to work when its part of an application would do for now. WR -Ursprungligt meddelande- Från: Jeremias Maerki [mailto:[EMAIL PROTECTED] Skickat: den 28 februari 2002 08:20 Till: [EMAIL PROTECTED] Ämne: Re: dynamic image in PDF I have a servlet which creates imagery. I want to embed this in a PDF document and I've been playing around with FOP in JSP. I can get PDF generated but only on static image references, using external- graphic. What I need to know is - is there anyway of generating the image dynamically, with the reference to the servlet embedded in the .fo ? I can see there is a fo:instream- foreign-object but the examples just show examples of SVG. Is there anyway to extend this and if so, doesanyone have examples ? I haven't tested what you do, but I think you should be able to specify a full URL with parameters and all in the src attribute of external-graphic that will call your servlet to get the image. Or do you get any error messages? Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29 Internet http://www.outline.ch
RE: dynamic image in PDF
Hi All, I have been trying to create a pdf using FOP. This is the exception I get.. Any thoughts. Attached is the FO file being used... Thanks, Ankur [DEBUG]: Input mode: [DEBUG]: FO [DEBUG]: fo input file: DateTrial.fo [DEBUG]: Output mode: [DEBUG]: pdf [DEBUG]: output file: DateTrial.pdf [DEBUG]: OPTIONS [DEBUG]: no user configuration file is used [default] [DEBUG]: debug mode on [DEBUG]: dump configuration [DEBUG]: quiet mode on [DEBUG]: base directory: file:/c:/program files/ibm/visualage for java/ide/project_resources/APACHE FOP/ [INFO]: FOP 0.20.3 [DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser [INFO]: building formatting object tree [DEBUG]: setting up fonts [ERROR]: 'master-reference' for 'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master' org.apache.fop.apps.FOPException: 'master-reference' for 'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master' java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) org.apache.fop.apps.FOPException(java.lang.String) org.apache.fop.layout.PageMaster org.apache.fop.fo.pagination.PageSequence.getNextPageMaster(java.lang.String, int, boolean, boolean) org.apache.fop.layout.Page org.apache.fop.fo.pagination.PageSequence.makePage(org.apache.fop.layout.AreaTree, int, boolean, boolean) void org.apache.fop.fo.pagination.PageSequence.format(org.apache.fop.layout.AreaTree) void org.apache.fop.apps.StreamRenderer.render(org.apache.fop.fo.pagination.PageSequence) void org.apache.fop.fo.FOTreeBuilder.endElement(java.lang.String, java.lang.String, java.lang.String) void org.apache.xerces.parsers.SAXParser.endElement(org.apache.xerces.utils.QName) void org.apache.xerces.validators.common.XMLValidator.callEndElement(int) boolean org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(boolean) boolean org.apache.xerces.framework.XMLDocumentScanner.parseSome(boolean) void org.apache.xerces.framework.XMLParser.parse(org.xml.sax.InputSource) void org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader, org.xml.sax.InputSource) void org.apache.fop.apps.CommandLineStarter.run() void org.apache.fop.apps.Fop.main(java.lang.String []) DateTrial.fo Description: DateTrial.fo
Trouble with ZapfDingbats
I recently upgraded to the latest version of Fop (fop-0.20.3rc2) to take advantage of the changes to the attribute master-name and am now having problems with the ZapfDingbats font. Essentially my PDF doesn't recognise the font. Is anyone else experiencing the same problems? Is this a known problem? Am I missing something? Should I rollback to a previous version? Any help would be appreciated. Cheers Tim Keen Analyst Programmer WERD Project Dept of Natural Resources Mines 4th Floor, Mineral House 41 George St Brisbane QLD 4000 (07) 3224 2559 (ph) (07) 3224 7963 (fax) [EMAIL PROTECTED] The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network.