Re: SVG rendering without border?
Hello Jeremias, I am sorry but I don't know how to get the (intermediate?) FO file. I am directly converting from an XML docbook file via XSLT DocBook stylesheets to PDF using Fop. Martin Jeremias Maerki wrote: If you get borders around SVG files, it's not FOP that's creating them. But I don't know what DocBook does. If you have a small FO file that demonstrates the problem we might be able to help. On 19.08.2005 17:43:59 Martin Honermeyer wrote: I am creating a DocBook PDF using FOP. My SVG always have a black border around them. Is it possible to render without those, somehow? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SVG rendering without border?
Martin Honermeyer wrote: Hello Jeremias, I am sorry but I don't know how to get the (intermediate?) FO file. I am directly converting from an XML docbook file via XSLT DocBook stylesheets to PDF using Fop. You need to run XSLT on your docbook and input XML to generate intermediate FO file. There is a xalan.bat provided with the FOP ditribution to help you do this. This is explained on the website: http://xml.apache.org/fop/running.html#check-input Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SVG rendering without border?
Try the xalan.bat/xalan.sh that comes with FOP 0.20.5 to do just the XSLT stage. If you do: fop -xml my.xml -xsl my.xsl -pdf my.pdf you can get the intermediate file using: xalan -IN my.xml -XSL my.xsl -OUT my.fo On 23.08.2005 10:23:41 Martin Honermeyer wrote: Hello Jeremias, I am sorry but I don't know how to get the (intermediate?) FO file. I am directly converting from an XML docbook file via XSLT DocBook stylesheets to PDF using Fop. Martin Jeremias Maerki wrote: If you get borders around SVG files, it's not FOP that's creating them. But I don't know what DocBook does. If you have a small FO file that demonstrates the problem we might be able to help. On 19.08.2005 17:43:59 Martin Honermeyer wrote: I am creating a DocBook PDF using FOP. My SVG always have a black border around them. Is it possible to render without those, somehow? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specifying Fop 'fontBaseDir' property using command line parameters
Solved it - should have added: else if (args[i].equals(-fontBaseDir)) { log.info(Setting extended property -fontBaseDir); if ((i + 1 == args.length) || (args[i + 1].charAt(0) == '-')) { throw new FOPException(if you use '-fontBaseDir', you must specify the path to the fonts directory); } else { ((java.util.HashMap) ((java.util.HashMap) org.apache.fop.configuration.Configuration.getConfiguration()).get(standard)).put(fontBaseDir, (args[i + 1])); i++; } } instead of the chunk of code previously posted. It works now. -- Why? Because YES! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ) pagination and width=100%
Sorry, the code got really worse when sending the email. I now caught the fo-output of a test-doc between two processing steps and put some example images on my server, so you should be able to reproduce everything, including the wrong table-width. It is attached here. Bye! sonja -Original Message- From: Sonja Löhr [mailto:[EMAIL PROTECTED] Sent: Dienstag, 23. August 2005 13:09 To: fop-users@xmlgraphics.apache.org Subject: (re:) pagination and width=100% Hi! Some days ago we talked about the problem of wrong computation of table-widths if a break between two pages occurs and the region-bodies (or column-widths) of these to pages differ in width. I use something like the following to keep the headline and first paragraph of an article together. Actually, it is a bit more complicated because not only ps may occur first, but that shouldn't make a difference. xsl:template match=article !-- Headline and first paragraph -- fo:block font-size=11pt space-after=0.6cm fo:table table-layout=fixed width=100% fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row keep-with-next=always keep-together=always xsl:apply-templates select=headline mode=content/ /fo:table-row fo:table-row keep-together=always fo:table-cellxsl:apply-templates select=p[1]//fo:table-cell /fo:table-row /fo:table-body /fo:table xsl:apply-templates select=p[position() gt; 1]/ /fo:block /xsl:template The evil part is that one (shortened): fo:simple-page-master master-name=first page-height=29.7cm page-width=21cm margin-top=0cm margin-bottom=2.2cm margin-left=2.5cm margin-right=2.5cm fo:region-body margin-top=7cm margin-bottom=0cm margin-left=7cm/ fo:region-before precedence=true region-name=first-before extent=7.5cm/ fo:region-start region-name=first-start extent=5.6cm/ /fo:simple-page-master The other fo:simple-page master objects don't have this region-start and therefore don't have such a big left margin on their region-body. (There is a box containing the the contents on on the left of the first page). So what happens is that if there really has to be a page-break from page 1 to page2 when a new article starts, the headline-p1-table will have the width of the first page's region-body. After that headline-p1-table everything is fine. Hmm, my customer was so sold on that content-box on the left side ;-), in the end I will have to remove it... Greetings and many thanks! sonja - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] testOutput.fo Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]