Re: Problem with table margin-left property
Hi Jeremias, Jeremias Maerki wrote: No bug. Miroslav, please set start-indent=0pt and end-indent=0pt on the table-body. That should get it right. Note, this is a weirdness of the FO spec, not in FOP (all described in the Wiki). It's working! Thanks a lot! Regards, Miroslav. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main
I have downloaded fop-0.93-src.zip and extracted it and added fop-0.93\lib folder to classpath. And simply tried ‘fop’ command without args. I got this error. D:\fop-0.93fop java Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main I couldn't find fop.jar in the extracted folder. Please help me on this -- View this message in context: http://www.nabble.com/Exception-in-thread-%22main%22-java.lang.NoClassDefFoundError%3A-org-apache-fop-cli-Main-tf3394371.html#a9449677 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: font-weight: bolder
Hi Daniel, Daniel Noll a écrit : Hi all. Is there a particular reason why when I have a font-weight=bolder, it doesn't actually make the text any bolder? Perhaps because bolder isn't implemented yet... :-\ http://xmlgraphics.apache.org/fop/compliance.html#fo-property-font-weight Vincent font-weight=bold works as one would expect. Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699 Web: http://nuix.com/ Fax: +61 2 9212 6902 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jonn schrieb: I have downloaded fop-0.93-src.zip and extracted it and added fop-0.93\lib folder to classpath. And simply tried ‘fop’ command without args. I got this error. D:\fop-0.93fop java Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main I couldn't find fop.jar in the extracted folder. Please help me on this Hi John, Download http://apache.mirroring.de/xmlgraphics/fop/fop-0.93-bin-jdk1.4.zip or http://apache.mirroring.de/xmlgraphics/fop/fop-0.93-bin-jdk1.3.zip and try again. Stefan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF9mofirQ0Ts08AdMRAuR9AKCXKZ11T6SeG5Nlhz27d/a6jekqMgCggI3H VmwrTHpFGYyNI/efgVVA+LU= =qTYH -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main
Hi Jonn, You downloaded the source only. You need to build it with ant first. cd D:\fop-0.93 ant jar-main fop Adrian. jonn wrote: I have downloaded fop-0.93-src.zip and extracted it and added fop-0.93\lib folder to classpath. And simply tried ‘fop’ command without args. I got this error. D:\fop-0.93fop java Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main I couldn't find fop.jar in the extracted folder. Please help me on this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: border-top-xxx and border-bottom-xxx causing wierd errors
Jeremias, the border bottom and top is working like it should so a big Merci to you buddy =) 2007/3/12, nick humphrey [EMAIL PROTECTED]: thanks a bigillion Jeremias! i'll download the trunk tomorrow and test it out... i'm so happy that it was a bug and that i wasn't crazy =) 2007/3/12, Jeremias Maerki [EMAIL PROTECTED]: Thanks for the test file. I was able to reproduce and fix the bug. It is fixed in FOP Trunk: http://svn.apache.org/viewvc?view=revrev=517415 If you can't use FOP Trunk you can work around the problem by explicitely setting the height or block-progression-dimension property on the block-container. On 12.03.2007 20:43:05 nick humphrey wrote: see attached file... i echo the java_home variable in the fop script and it is using the correct java version, to where i also made the endorsed directory ($JAVA_HOME/lib), but like i said, still the same errors. when i run fop with just the fo and pdf statements: ./fop XXX.fo XXX.pdf then some errors aren't present/repeated (like when i run with -xml -xsl -pdf parameters), i only get this: 12/03/2007 10:17:32 org.apache.fop.apps.FOUserAgent setTargetResolution INFO: target-resolution set to: 72.0dpi (px2mm=0.3528) 12/03/2007 10:17:34 org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.IllegalStateException: lineWidth must be set and positive, but it is: -2834 snip/ java.lang.IllegalStateException: lineWidth must be set and positive, but it is: -2834 at org.apache.fop.layoutmgr.BreakingAlgorithm.getLineWidth(BreakingAlgorithm.java:1087) snip/ = would really like to get this working so i don't have to use jasperreports... :-) snip/ 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]
OutOfMemoryError while processing a large table
Hi all, I have a problem with a large XML file containing 1 large table. The corresponding FO file is about 28MB. I got an OutOfMemoryError while processing this file in spite of 1,5GB memory allocated to the JVM. There are no forward references or images in the FO. What can I do in order to be able to process this file? Kai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How could I change vertical alignment of list item bullet?
Andrejus, try to remove the whole fo:inline ... and just leave the bullet in the fo:block, like fo:list-item-label end-indent=label-end() fo:block#x2022;/fo:block /fo:list-item-label It seems to do the trick for me. Manuel Manuel, Yes, I've tried that and it really works with latest fop trunk build. Ok, I could stay with this workaround(?) while someone will tell it's totally wrong :). Thanks a lot for your prompt help! Andrejus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to use saxon:while and saxon:assign tin FOP
Johan Johansson wrote: Hi! Trying to use saxon:assign and while in fop, but i recive this: (dont know if saxon extension works within the fop?) snip / xmlns:saxon=http://saxon.sf.net; Your namespace is incorrect, perhaps that has something to with it? Replace it with: http://saxon.sf.net/ (I've had troubles before when not including the trailing slash. A namespace is not a path, remember, but a URI, and must be precisely and correctly set to the letter, which in this case does include the trailing slash) -- Abel Braaksma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Trying to use saxon:while and saxon:assign tin FOP
Hi, Thank you for your reply. Didt do any difference for me when i added the trailing slash: Mar 13, 2007 2:56:39 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker WARNING: Unknown formatting object http://saxon.sf.net/^while Mar 13, 2007 2:56:39 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker WARNING: Unknown formatting object http://saxon.sf.net/^assign Mar 13, 2007 2:56:39 PM org.apache.fop.layoutmgr.LayoutManagerMapping makeLayoutManagers SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj best regards Johan -Ursprungligt meddelande- Från: Abel Braaksma [mailto:[EMAIL PROTECTED] Skickat: den 13 mars 2007 14:33 Till: fop-users@xmlgraphics.apache.org Ämne: Re: Trying to use saxon:while and saxon:assign tin FOP Johan Johansson wrote: Hi! Trying to use saxon:assign and while in fop, but i recive this: (dont know if saxon extension works within the fop?) snip / xmlns:saxon=http://saxon.sf.net; Your namespace is incorrect, perhaps that has something to with it? Replace it with: http://saxon.sf.net/ (I've had troubles before when not including the trailing slash. A namespace is not a path, remember, but a URI, and must be precisely and correctly set to the letter, which in this case does include the trailing slash) -- Abel Braaksma - 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: out.flush()
Could you please state which OutputStream implementation are used in your code? SorryI didn't answer your question: java.io.FileOutputStream and java.io.BufferedOutputStream. A code snippet from the servlet appears below. Thanks, Jeff // Setup output OutputStream out = new java.io.FileOutputStream(pdfFile); out = new java.io.BufferedOutputStream(out); // Transform the XML+XSLT to PDF try { // Create and configure the FOUserAgent FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); foUserAgent.setProducer(Oracle Pluggable Destination - DesXslFo); foUserAgent.setCreator(X); foUserAgent.setAuthor(X); foUserAgent.setCreationDate(new Date()); foUserAgent.setBaseURL(file:/// + transformDir); // Construct fop with desired output format Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out); // Setup the transformer with the XSLT TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(new StreamSource(xsltFile)); // Set the XSLT stylesheet version being used transformer.setParameter(versionParam, xsltVersion); // Setup input for XSLT transformation Source src = new StreamSource(xmlFile); // Resulting SAX events (the generated FO) must be piped through to FOP Result res = new SAXResult(fop.getDefaultHandler()); // Start XSLT transformation and FOP processing transformer.transform(src, res); // Flush the buffered output before exiting out.flush(); out.close(); // Help garbage collection res = null; src = null; transformer = null; factory = null; fop = null; foUserAgent = null; } catch (Exception e) { try { out.close(); } catch (Exception ignore) {} throw new Exception(e.getClass() + : + e.getMessage()); } transformer = null; factory = null; fop = null; foUserAgent = null; } catch (Exception e) { try { out.close(); } catch (Exception ignore) {} throw new Exception(e.getClass() + : + e.getMessage()); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError while processing a large table
On Mar 13, 2007, at 11:38, Kai Mütz wrote: Hi, I have a problem with a large XML file containing 1 large table. The corresponding FO file is about 28MB. I got an OutOfMemoryError while processing this file in spite of 1,5GB memory allocated to the JVM. There are no forward references or images in the FO. What can I do in order to be able to process this file? Your only option is to split up the table over multiple page-sequences. FOP simply cannot handle such large uninterrupted page-sequences ATM... Sorry. Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP failing while accessing SVG DTD
We are getting intermittent failures making PDF from XSL-FO with SVG images. I think the problem is caused by network errors accessing the SVG DTD from the w3.org site. We are using fop 0.20.5. Error: ([ERROR] Could not load external SVG: Connection refused [ERROR] Error while creating area : No ImageReader for this type of image (file:/usr/local/apache/sites/web_src/vod/htdocs//images/svg/layout4_logo.svg) The SVG file is generated by Adobe Publisher and contains the following DOCTYPE: !DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; [ !ENTITY ns_svg http://www.w3.org/2000/svg; !ENTITY ns_xlink http://www.w3.org/1999/xlink; ] Is there any way to cause FOP to not fetch the DTD? Or use a local copy? - Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP failing while accessing SVG DTD
Ian, This is a basic XML parsing question, not particular to FOP: Use the XML prolog standalone attribute to prevent the DTD lookup. eg: ?xml version=1.0 encoding=UTF-8 standalone=yes? Regards, Roland Ian Burrell wrote: We are getting intermittent failures making PDF from XSL-FO with SVG images. I think the problem is caused by network errors accessing the SVG DTD from the w3.org site. We are using fop 0.20.5. Error: ([ERROR] Could not load external SVG: Connection refused [ERROR] Error while creating area : No ImageReader for this type of image (file:/usr/local/apache/sites/web_src/vod/htdocs//images/svg/layout4_logo.svg) The SVG file is generated by Adobe Publisher and contains the following DOCTYPE: !DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; [ !ENTITY ns_svg http://www.w3.org/2000/svg; !ENTITY ns_xlink http://www.w3.org/1999/xlink; ] Is there any way to cause FOP to not fetch the DTD? Or use a local copy? - Ian - 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: out.flush()
Interesting. I think I shall try to reproduce the problem in a quiet moment. Thanks for the code snippet. A note on that: I consider it better style to put the close() in a finally section so you don't have to make sure that the close() is called in every situation (exception or not). On 13.03.2007 01:28:17 Jeff Vannest wrote: Closing the buffered out without flushing causes the PDF file to be closed before all data is written to it. Originally when I started working with the embedded FOP I had this problem...adding the flush got rid of the problem completely. Another user had the same problem and reported it on 3/6/07 in a message titled, FOP 0.93 generated a damaged PDF File. Liam responded on 3/7/07 to do a flush before the close. According to http://java.sun.com/j2se/1.4.2/docs/api/java/io/FilterOutputStream.html#clos e(), the flush() should be implicit, which agrees with your response. On a possibly related note, I only experienced the problem within the context of my servlet, never on my local system, so I'm not ruling out a java bug. Jeff Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
keep-together implementation
I'm using keep-together to maintain adjacent data on the page, but I need it to flow to the next page if it doesn't fit. The xsl is fo:table-cell column-number=5 text-indent=3mm fo:block keep-together.within-page=1 fo:block padding-top=2mm Piece Count: xsl:value-of select=count(Items/Item)/ /fo:block xsl:for-each select=Items/Item fo:block padding-top=1mm font-size=9pt xsl:value-of select=TrackingNumber/ /fo:block /xsl:for-each /fo:block /fo:table-cell But if the number of Items is too large, it runs off the page and doesn't flow to the next page. Did I do something wrong? keep-with-next/keep-with-previous doesn't produce the desired effect: keeping the item count and item list on the same page when possible. (The result is the same as keep-together=auto). I'm not sure of the implication of the spec here http://www.w3.org/TR/xsl/#keepbreak, the explaination here http://www.biglist.com/lists/xsl-list/archives/200506/msg00534.html sounds reasonable, but I'm not sure how it's implemented by apache fo. An alternative solution would be to induce a page break if the Item block won't fit on the current page. Is this possible? Thanks for any insight. Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP failing while accessing SVG DTD
On 3/13/07, Roland Neilands [EMAIL PROTECTED] wrote: This is a basic XML parsing question, not particular to FOP: Use the XML prolog standalone attribute to prevent the DTD lookup. eg: ?xml version=1.0 encoding=UTF-8 standalone=yes? Is there any way to set the fop config or pass command-line option to not fetch the DTD? Setting the standalone attribute works great for static SVG files that I can change. I am worried about dynamically generated ones. Or getting my content guys to change future files they make. - Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: font-weight: bolder
- Original Message - From: Vincent Hennebert [EMAIL PROTECTED] To: fop-users@xmlgraphics.apache.org Sent: Tuesday, March 13, 2007 7:16 PM Subject: Re: font-weight: bolder Hi Daniel, Daniel Noll a écrit : Hi all. Is there a particular reason why when I have a font-weight=bolder, it doesn't actually make the text any bolder? Perhaps because bolder isn't implemented yet... :-\ http://xmlgraphics.apache.org/fop/compliance.html#fo-property-font-weight Ah. Whoops, should have known to check that list. I wonder why it wasn't just aliased to bold until a better option became available. The sad thing is that tools like CSS2XSLFO output bolder for a b tag, so I have to post-process its FO to change them all to bold. Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699 Web: http://nuix.com/ Fax: +61 2 9212 6902 This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this message or attachment is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]