Re: How to use FOP with MAVEN?
https://code.google.com/p/fop-maven-plugin/ does that, but it seems to be closer to an abandoned proof of concept than a mature plugin. You'd need to build and deploy it yourself, and it seems to require xml+xsl as input, it doesn't yet allow processing .fo files. On 06/16/2015 02:56 AM, Peter wrote: > Hello, > > I want to use FOP with Maven, but cannot find any examples searching the > internet. > > Exactly, I want to use sth. like this: > > src > | > +-- main > | > +-- xml (for my contents, *.xml) > | > +-- resources (containing my xsl:fo-stylesheet, e.g. my.xsl) > > How can I activate FOP to use these files for generation of one or more PDF > files? > > Extensions: > - How to tell FOP, which files to collect into one distinct PDF document? > > Kind regards > Peter > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SVG pixel size
On 07/09/2013 01:43 PM, Vincent Hennebert wrote: > On 09/07/13 18:51, Sergiu Dumitriu wrote: >> On 07/09/2013 12:26 PM, Vincent Hennebert wrote: >>> Hi Massimo, >>> >>> the easiest is to have the source resolution match the target >>> resolution. That way, one pixel in your source will become 1 pixel in >>> the output. >>> >>> That said, if you want a real one-pixel line and not something >>> anti-aliased you have to ensure that the coordinates will match output >>> pixels. Start by setting the font-size on the outer block to 0, in order >>> to avoid that the baseline ends up somewhere in between two pixels. >>> Then, for some reason, you have to set the y pixels to half values. For >>> example, 1.5px. I haven’t investigated why. >> >> Because the stroked line width is split evenly around the imaginary line >> defined by the coordinates. If it goes through 1.5, then 0.5px will be >> above and 0.5px will be below it, which means that it actually fills in >> a solid stripe between 1.0 and 2.0, which is exactly a pixel without any >> antialiassing. > > I was looking in the SVG Recommendation for something similar to the > description in the javadoc of Graphics2D: > http://docs.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html > “The JDK(tm) 1.1 rendering model is based on a pixelization model that > specifies that coordinates are infinitely thin, lying between the > pixels. Drawing operations are performed using a one-pixel wide pen > that fills the pixel below and to the right of the anchor point on the > path.” > > I couldn’t find anything though. Do you happen to have any pointers? Couldn't find anything after a quick scan of the specification, but it makes sense since SVG is "scalable". Unlike Java graphics, which is clearly targeting interactive displays (screens), and most coordinates are integers, SVG is defined as scalable, device- and resolution-independent graphics. It works on an abstract mathematical canvas, and coordinates are abstract points, with zero width, around which paint is applied with a real width. The pixel (px) doesn't make that much sense defined as a screen dot, since one of the main targets of SVG is print, and a possible usecase is for SVG to be implemented as a standard printer language, alongside PCL and EPS, and printers don't have pixels (that's the purpose of SVG Print). Another aspect is that units correspond to pixels only in the initial coordinate system, but that one isn't fixed. The actual coordinate system can be either explicitly or automatically changed, so in the end a pixel length can be equal to 10 device pixels, or 0.024 device pixels. Should everything be shifted by 0.5 device pixels so that they align nicely? > According to that model, there would be no need to specify coordinates > in 0.5 to have full lines. > > SVG seems to do the same as PDF however: > “stroking a path entails painting all points whose perpendicular > distance from the path in user space is less than or equal to half the > line width.” > > That makes sense I guess. > > >> If it were to pass through 2.0, then it would end up as a solid stripe >> between 1.5 and 2.5, which means that half of the first pixel and half >> of the second pixel must be stroked, and since half pixels can't be >> drawn, antialiassing is used. >> >> I usually shift the viewbox by 0.5px to get rid of this problem and use >> integer coordinates in the rest of the SVG. > > > Thanks, > Vincent > > - -- Sergiu Dumitriu http://purl.org/net/sergiu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SVG pixel size
On 07/09/2013 12:26 PM, Vincent Hennebert wrote: > Hi Massimo, > > the easiest is to have the source resolution match the target > resolution. That way, one pixel in your source will become 1 pixel in > the output. > > That said, if you want a real one-pixel line and not something > anti-aliased you have to ensure that the coordinates will match output > pixels. Start by setting the font-size on the outer block to 0, in order > to avoid that the baseline ends up somewhere in between two pixels. > Then, for some reason, you have to set the y pixels to half values. For > example, 1.5px. I haven’t investigated why. Because the stroked line width is split evenly around the imaginary line defined by the coordinates. If it goes through 1.5, then 0.5px will be above and 0.5px will be below it, which means that it actually fills in a solid stripe between 1.0 and 2.0, which is exactly a pixel without any antialiassing. If it were to pass through 2.0, then it would end up as a solid stripe between 1.5 and 2.5, which means that half of the first pixel and half of the second pixel must be stroked, and since half pixels can't be drawn, antialiassing is used. I usually shift the viewbox by 0.5px to get rid of this problem and use integer coordinates in the rest of the SVG. -- Sergiu Dumitriu http://purl.org/net/sergiu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: SVG pixel size
The problem is that the "pixel" is a very wrong/misleading unit. Initially (HTML3) there was no CSS, and no units, so there were just unit-less length: would create a table with a 4 pixels wide border [1]. Back then (early-mid 90s), almost all monitors were low resolution, and it was so obvious what a pixel was that it wasn't even defined. CSS1 defined [2] the pixel not as a screen unit, but as a an angle: "The suggested reference pixel is the visual angle of one pixel on a device with a pixel density of 90dpi and a distance from the reader of an arm's length. For a nominal arm's length of 28 inches, the visual angle is about 0.0227 degrees." That means that a pixel isn't a display pixel, or a dot, regardless of the DPI. Would it make sense for a 2400DPI printer to print lines 1/2400 in? Would that even be visible? One pixel is always a dot at 90DPI, according to CSS1. CSS2 defines the pixel both as a fixed length [3] and as an angle [4]: "1px is equal to 0.75pt", and "the points used by CSS are equal to 1/72nd of 1in." => 1px = 1/96in "The reference pixel is the visual angle of one pixel on a device with a pixel density of 96dpi and a distance from the reader of an arm's length. For a nominal arm's length of 28 inches, the visual angle is therefore about 0.0213 degrees. For reading at arm's length, 1px thus corresponds to about 0.26 mm (1/96 inch)." This is a change from the 1/90, since there are far more monitors at 96DPI than at 90DPI, so it makes no sense to define it that way. CSS3 removes the pt from the pixel definition, and goes straight to [5]: "1px is equal to 1/96th of 1in" And it keeps the visual angle definition for the "reference pixel". So, a pixel is a fixed length that doesn't scale down with the DPI, it should always be 1/96 inches. At 204 DPI that would translate into 2.125 dots. [1] http://www.w3.org/TR/REC-html32.html#table [2] http://www.w3.org/TR/1999/REC-CSS1-19990111#length-units [3] http://www.w3.org/TR/CSS21/syndata.html#x39 [4] http://www.w3.org/TR/CSS21/syndata.html#x40 [5] http://www.w3.org/TR/css3-values/#absolute-lengths On 07/09/2013 09:33 AM, Luis Bernardo wrote: > Lets look at the default case, that creates a 100x100 pixel image. The > default target dpi is 72, so 100/72 = 1.38. > > If you set the target dpi to 204, then the image needs to be 283x283 > pixels because 204*1.3 = 283.. Then a 1 pixel line needs to be > 2.83 pixels to keep the scaling correct. Since you cannot have 2.83 > pixel thickness in the monitor, it defaults to 3 pixels. > > Is your goal to print (to paper) a line of a certain thickness? Then you > need to talk about dimensions (say, mm) not pixels. > > > > On Tue, Jul 9, 2013 at 1:35 PM, Massimo <mailto:massimo.iasev...@snai.it>> wrote: > > Thanks for the answer. > > I try to better explain the problem with an attached java example. > > If you run the main method you should get two png image > . svgDefImage.png that contain a 1px thin line generated with > default target > resolution > . svg204Image.png that contain a 3px thin line generated with 204dpi > target > resolution > > According to the svg tag, both files should contain 1px thin lines. > > All images is generated with the same attached fo file. > > Notice that I use a custom Java2D renderer. > > I forgot to mention that I am using the fop trunk version. > > Thanks. > Massimo. > > SVGTest.java > <http://apache-fop.1065347.n5.nabble.com/file/n38858/SVGTest.java> > svgpixelsize.fo <http://svgpixelsize.fo> > <http://apache-fop.1065347.n5.nabble.com/file/n38858/svgpixelsize.fo> > svgDefImage.png > <http://apache-fop.1065347.n5.nabble.com/file/n38858/svgDefImage.png> > svg204Image.png > <http://apache-fop.1065347.n5.nabble.com/file/n38858/svg204Image.png> > -- Sergiu Dumitriu http://purl.org/net/sergiu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Simple SVG path doesn't render at all with FOP 1.0
On 12/19/2012 12:04 PM, Abel Braaksma wrote: > Hi List, > > I'm trying to get an SVG logo on a pageusing fo:instream-foreign-object, > but all I got was total nothingness. So I trimmed down the example and > after some experimenting, I got it working with svg:rect, but as soon as > a svg:path turned up, it didn't get rendered. > > Does anybody know of this issue? Or am I simply missing something? I'm > using FOP 1.0 with Batik 1.7.From a long time ago I remember I had > something similar and that I needed to setup a viewport or coordinates > translation or something, but I can't find the example I had back then. > > This is a rectangle drawn by svg:path, which doesn't work: > >http://www.w3.org/2000/svg"; > width="40px" height="40px"> > d="M 20 390 L 80 390 L 80 410 L 20 410 Z" /> > > > Any helpis appreciated, > > Thanks, > Abel Braaksma The problem is in the SVG content. Since you specify a width and a height, but not a viewbox, the path is drawn, but outside the visible area. If you increase the height of the SVG to 500, you'll see the image somewhere very low. So, make sure you're drawing inside the area that's actually displayed. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Strange fop/batik font problem with apache in webapp.
On 09/08/2012 04:10 AM, Müller, Wolfgang wrote: Hi all, I want to generate some PDF from SVG via fop/batik from inside a web application. I am using the Grails framework, BTW. Grails runs its webapps inside a tomcat. Exec summary: Something works as a script, does not work in the tomcat, need idea where things could go wrong. PDF gets generated both times, but no custom fonts when using webapp. Long version: I took some of the sample code, wrote a small Groovy script that creates a transformer (no, i.e. default configuration), feeds it with the proper input/output streams and creates the output. Fonts are correct in the file generated. I also get plenty of output that shows that fop is configuring its fonts from the fonts on my machine. Great stuff. It also generates a .fop directory in my home and puts font caches in there. Great. Webapp: Now, for testing, I put a subset of the code into the bootstrapping code of the webapp. It creates a transcoder and transcodes an example svg string. It does a default font configuration, but completely ignores the fonts on my machine and also does not create anywhere a .fop directory. Depending on how your tomcat is configured, one problem that I've encountered in the past is that on some Linux distributions Tomcat runs as the "tomcat" user, and that user doesn't have a home folder where it can write. FOP tries to create a .fop directory in the home folder of the current user, and since that's not possible, it fails to register fonts. Just to check if this is what's happening in your case, you could configure tomcat to run as the root user. However, for security reasons don't just leave it running as root, switch back to the tomcat user and try configure a writable home directory for it. Another possible cause is that you didn't specify an absolute path to the custom fonts, and FOP looks for them starting from a different directory. From the documentation I did not really understand what happens. Also setting log level to trace does not help. Any suggestions? I would also be thankful for points of documentation where I could learn more. I thought "fontconfig" would be the place, but I don't see my problem represented there. Cheers, Wolfgang -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: using cmyk() in fop-1.1rc1
On 08/27/2012 11:09 AM, Rob Sargent wrote: Does anyone have at hand (a link to) an example of using the cmyk() function. All I get is "Could not find function: cmyk". Who supplies this function? Running from cli ~/tools/fop/fop-1.1rc1/fop -xml doc-1.xml -xsl /d3/support/config/stylesheet/prose.xsl -foout cmyk.fo with this (attempted) call in my stylesheet: Definitely not XSLT. The way you wrote this, it's not FOP that fails to find the function, but the XSLT engine that transforms XML into FO. Try something like: cmyk(0.0, 0.564, 0.529, 0.325) -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Chinese PDFs and non embedded fonts
On 04/24/2012 11:46 AM, Jean-Philippe Courson wrote: Hi Glenn, I don't want to embed the fonts to avoid significant font redistribution licensing costs. The produced PDFs will be distributed to people having the fonts installed on their machine. Is that particular font a hard requirement, or could you use a free font such as http://www.freedesktop.org/wiki/Software/CJKUnifonts/Download ? Thanks for your help Best regards, JP On 24 Apr 2012, at 16:28, Glenn Adams wrote: why do you *not* want to embed? note that only the actually used glyphs will be embedded in a subset font, so size should not be an issue On Tue, Apr 24, 2012 at 9:15 AM, Jean-Philippe Courson mailto:jean-philippe.cour...@cognitran.com>> wrote: Hi Glenn, Thanks for your reply. In your example, you are embedding the font: the embed-url attribute will get the font embedded. I have no problem creating a chinese PDF when the font is embedded. The issue I am raising is when trying to reference (not embed) the font. Thanks for your help, Best regards, JP On 23 Apr 2012, at 15:26, Glenn Adams wrote: > I just tried this with the font you referenced and had no problem. Attached is the configuration file and input file I used and resulting output. I'm using the current FOP 1.1dev (trunk) build. > > As Chris points out, you may wish to avoid . Also, you notice that I disabled the font cache and placed the font in a "fonts" subdirectory where I did the test. > -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: external-graphic
On 03/30/2012 09:43 AM, Amick, Eric wrote: I’m using FOP 1.0, and I’m trying to scale an image that is too large for the page so that it fits. What attributes do I need to use? I can’t figure out which ones I need or what values are required. Eric Amick Systems Engineer II The best way of scaling images that I've found so far is a bit more complex: I you also have a target size that you'd like the image to have, you can also add one or both of these: inline-progression-dimension.optimum="300pt" (for the width) block-progression-dimension.optimum="300pt" (for the height) You can read about all the ways of controlling width and height at http://www.w3.org/TR/xsl/#d0e22982 -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: The way to go
On 10/04/2011 04:02 PM, Christian Grobmeier wrote: Hello all, I currently create a xslt sheet which contains several block-containers. Noob as i am, I was a bit surprised to see my containers are overlapping and not showing up in some kind of "flow". I don't want to make everything absolute, because sometimes i cannot know how long the preceding block is. What is the best practice for making a good design with FOP? Should I base everything on tables? Or have I done something wrong which causes my block-containers to overlap? Normally, they shouldn't overlap, so they probably already have absolute positioning set somehow. FOP doesn't consume .xslt, but .fo files, so you should try to run the XSLT transformation first to convert the XML into a FO file, then check the FO file to see what happens. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: with content-height="scale-to-fit" and content-width="scale-to-fit"
On 09/21/2011 10:45 PM, ThiagoHP wrote: Hi! FO and Apache FOP newbie here. :) I need to include images using with no possibility of knowing their width and height previously (it's part of a larger processing pipeline). Some images can be large and I'd like to scale them down so they can fit completely inside a page. I tried, but an image, which is 2x higher than wide, has its lower part clipped. inline-progression-dimension.maximum only specifies the maximum width, so the behavior is normal: you don't limit the height. Also add: block-progression-dimension.maximum="90%" Am I using the right attributes and their values? Thanks in advance. :) Thiago -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Understanding Following-Sibling
On 09/19/2011 07:48 PM, Rita Greenberg wrote: Hello. Could somebody please explain the following code I found in a .fo file. Here is my XML file. ZE W1 5878.14 NR 45 0.00 Here is the Following-sibling statement: My understanding of following-sibling::* is that the test is checking the (first RC element and it it's not '' (empty) and the following siblings (RCANSI, TRC, RCREDUCTION, RCOVERRIDE, RCMODIFIED) are = '' (empty)) AND (first RC element and it it's not '' (empty) and the following siblings (RCANSI, TRC, RCREDUCTION, RCOVERRIDE, RCMODIFIED) are not = 'Y'. With the values above the condition is met and a block of code executed but I don't understand how the first part of the test can be true since some of the following-siblings are not = ''. First, this is not a question for the FOP list, since this is strictly an XSLT (or rather XPath) question. An xsl:if test doesn't check all the nodes, but the existence of _some_ nodes that pass the test. A parent/descendant selector doesn't pick the first node of type , but one that does fit in the whole expression. The following-sibling axis, as explained on http://www.w3.org/TR/xpath/#axes , refers to all the nodes that are children of the same parent and follow the current node. So, the whole test checks that: - there are any RC nodes that have some text in them - and they have at least one following sibling that is empty (this is true for the TRC node) AND, distinctly: - there are any RC nodes that have some text in them (it doesn't have to be the same node as in the above condition) - and they have at least one following sibling that doesn't have Y as their content (and this is again true for every sibling node in your example) Overall, I think that the whole test is wrong, since it never tries to relate to the context node. What you probably want is to put this condition in a template that is already on the RCDATALINE, and continue testing from that point on with ./RC instead of going from the root with /doc/.. Thanks, Rita -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: TransformerConfigurationException
On 08/18/2011 09:39 AM, KAMOHELO MOFOKENG wrote: Hi All, Has anyone encountered this exception before, if yes, what does it mean? I'm running a XSL-FO to PDF code inside a JApplet. The code work fine as a stand alone module but it fails inside an applet throwing the exeption: javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected. at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:124) at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:125) at net.sf.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:80) This looks like an XSLT error, not a FOP one. Are you using such a transformation to obtain the XSL-FO document from another XML file? If it fails in an applet but works standalone, I'd say the difference that triggers the error is in the classpath; a different XSLT processor is used in the applet (or at least a different version of saxon). -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP 1.0 Japanese # marks
katakana) not available in font "Helvetica-Oblique". Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "モ" (0x30e2, mokatakana) not available in font "Courier". Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "ノ" (0x30ce, nokatakana) not available in font "Courier". Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "ス" (0x30b9, sukatakana) not available in font "Courier". Aug 15, 2011 10:36:14 AM org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "ペ" (0x30da, pekatakana) not available in font "Courier". My PDF contains # throughout where Japanese glyphs should be. Eric Douglas wrote: You don't supply metrics in 1.0. -Original Message- From: mike 675 [mailto:m_mcl...@yahoo.co.uk] Sent: Friday, August 12, 2011 11:35 AM To: fop-users@xmlgraphics.apache.org Subject: RE: FOP 1.0 Japanese # marks I see the config file format has changed from 0.20.5. 0.20.5 config file used these params: embed-file metrics-file 1.0 config file uses these params: embed-url metrics-url Am I on to something? mike 675 wrote: It's the default fop.xconf file. I haven't made any changes or specified any fonts in there. Eric Douglas wrote: Yes and yes Your FOP should have configuration telling it what fonts are available. Your XSLFO should have tags in it telling what font to use. If you can provide more details about what you're doing someone may provide more details about what you're missing. Are you using fop.xconf file? What's that look like? -Original Message- From: michael mclaughlin [mailto:m_mcl...@yahoo.co.uk] Sent: Friday, August 12, 2011 5:23 AM To: fop-users@xmlgraphics.apache.org Subject: Re: FOP 1.0 Japanese # marks Do you mean configure FOP 1.0 to use a Japanese font? Or is there an XSL stylesheet option to do this? Or do I manually edit the .fo file. Thanks, Mike --- On Fri, 12/8/11, Sergiu Dumitriu wrote: From: Sergiu Dumitriu Subject: Re: FOP 1.0 Japanese # marks To: fop-users@xmlgraphics.apache.org Date: Friday, 12 August, 2011, 2:03 On 08/11/2011 03:48 PM, mike 675 wrote: I used to use FOP 0.20.5 to build Japanese PDFs and they looked fine. Now after upgrading to FOP 1.0 the PDF build completes with no errors. But the PDF file is full of # marks. I am running on Red Hat 5.5. # usually means that the font is missing those characters. Make sure you've configured your FO to use a font that does cover the Japanese Unicode range. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP 1.0 Japanese # marks
On 08/11/2011 03:48 PM, mike 675 wrote: I used to use FOP 0.20.5 to build Japanese PDFs and they looked fine. Now after upgrading to FOP 1.0 the PDF build completes with no errors. But the PDF file is full of # marks. I am running on Red Hat 5.5. # usually means that the font is missing those characters. Make sure you've configured your FO to use a font that does cover the Japanese Unicode range. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP Extension to handle Wiki Syntax
On 06/14/2011 04:46 PM, Glenn Adams wrote: You know, given the time spent answering questions about XSL and the XML+XSL -> XSL-FO front-end ("convenience mechanism") in FOP, I sometimes wonder if it would be better to rip out that function. Perhaps then folks would understand better that FOP is fundamentally an XSL-FO -> output format processor. As to the original comment, I agree with Eric that is is not appropriate to consider an FOP extension to accommodate semantics that apply to the XML+XSL -> XSL-FO 'convenience mapping' mechanism. On the other hand, XSLT is not the best language for implementing wiki syntax rendering either. An alternative to writing a FOP extension would be to write an XSLT/XPath extension that handles the wiki syntax; instead of simply copying the textual content of the source element, do something like: . http://xml.apache.org/xalan-j/xpath_apis.html#functionresolver explains a bit what's needed to write a custom XPath function. You could use an existing Java library for wiki syntax rendering, such as http://rendering.xwiki.org/ G. On Tue, Jun 14, 2011 at 8:29 AM, Eric Douglas mailto:edoug...@blockhouse.com>> wrote: It could handle any format you want to write your input in as long as it can be translated to FO. If another format is commonly used for generating FOP input someone would just have to write an input translator extension. FOP doesn't even do anything with XML/XSL. It accepts input as XML/XSL as a courtesy extension. I wrote a transform with embedded code starting with data in XML using an XSL to translate it. Then I figured out how to generate FO and split that out as a separate step. That uses the javax transformer. That step doesn't use any FOP objects. If you think about it, output could be considered extensions also. The main task of the FOP is to input FO and generate the IF. Once that's laid out it can take various renderers and generate output so you have a PDF extension, a PNG extension, a TIFF extension, etc. They don't need to be in the FOP package. Someone who only wants to create PDFs doesn't need any classes which create PNGs. If you could break all the extensions out into subprojects it would make it a few extra steps to download but it would be simplified into smaller jars which of course load faster if you don't need them all. -Original Message- From: Christopher R. Maden [mailto:cr...@maden.org <mailto:cr...@maden.org>] Sent: Tuesday, June 14, 2011 9:44 AM To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> Subject: Re: FOP Extension to handle Wiki Syntax On 06/14/2011 07:25 AM, kalgon wrote: > Yes I could transform the XML prior to rendering it to PDF but that > wouldn't be as nice and clean as an extension which would take care of > everything. Moreover, an extension can be reused whereas > pre-transforming the XML would require a specific XSLT for each XML > schema... definitely not the way I want to go. Except that's how XSL works, and what FOP implements. FOP takes exactly[*] 1 kind of input: the FO markup in XML defined by the XSL Recommendations. Nearly all FOP users, as well as users of other XSL formatters, transform their source either with XSLT or some other tool into FO for presentation to the formatter. If FOP supports MediaWiki syntax natively, why not MoinMoin or some other wiki? Why not HTML, DocBook, DITA, CALS, ...? ~Chris [*] approximately -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Multi Threaded FOP?
On 06/09/2011 10:51 AM, Peter Hancock wrote: Hi Theresa, I believe there are multi-threading gotchas when embedding FOP and her dependencies; see http://xmlgraphics.apache.org/fop/0.95/embedding.html#multithreading, There are certainly many multi-threaded production systems that have successfully embed FOP and it would be nice to know some of the issues that were faced whilst they were being developed. it would be very useful to have a page on the website, or perhaps on the wiki dedicated to this subject, included some war stories and solutions devised. We didn't notice any big problems in our integration. Just read the Javadoc to see which classes are thread-safe and which aren't. You can create a singleton FopFactory, but you have to create new FOUserAgent and Fop objects for each new transformation. You can look here for an example: https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/pdf/impl/PdfExportImpl.java Peter On Thu, Jun 9, 2011 at 9:26 AM, Theresa Jayne Forster wrote: I am looking into redoing my FOP integration and maybe adding it into some form of MQ service, So many applications can request fop functionality and then have their response sent on the MQQueue, How Threadsafe is the Fop engine? Or is the current newFopInstance from a singleton factory instance totally threadsafe? Are there any catcha’s I need to be aware of? Kindest regards Theresa Forster Senior Software Developer -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fop 1.0: resolving relative Font URLs
On 04/13/2011 02:58 PM, Ulrich Mayring wrote: mehdi houshmand wrote: Hi Ulrich, Have you tried setting the font-base in your fop.xconf? I must admit I haven't used the API much but you can set the font-base by inserting following in the fop.xconf: ** the base directory ** Hi Mehdi, we have set the font-base to a non-existing directory and overwrite that programmatically when the application starts. That being said, I just tried your suggestion and it didn't work either. Ulrich Works for me with 1.0, also setting it dynamically. Try appending a trailing slash to the font-base directory. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FreeSerif Font not working
On 02/28/2011 05:10 PM, Graeme Kidd wrote: Date: Mon, 28 Feb 2011 15:59:22 + Subject: Re: FreeSerif Font not working From: med1...@gmail.com To: fop-users@xmlgraphics.apache.org Hi sorry guys, ignore my last email, a clear oversight on my part. Graeme, the metrics-url aren't necessary any more, they're deprecated. Remove that from the fop.xconf and it should work (with the test file you provided). Sometimes the simple things are easy to over look. No worries, we have all been there, I suppose someone should edit the documentation: http://xmlgraphics.apache.org/fop/1.0/fonts.html Anyway it now correctly picks up the font with the following change: However it still is unable to find the blackboard bold z glyph: [WARN ] Glyph "ℤ" (0x2124) not available in font "FreeSerif". Are you saying you are able to generate it fine at your end? Works fine when rendering to PDF as TTF font. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: The Apache Software Foundation Announces Apache FOP Version 1.0
On 07/22/2010 09:26 AM, Simon Pepping wrote: On Thu, Jul 22, 2010 at 08:19:13AM +0200, Michael Seeberger wrote: Hi there, when i select the "Version 1.0"-Tab on http://xmlgraphics.apache.org/fop/ it still shows "Apache FOP Trunk (Development code)" and there is no download-link to the new version. is this the right behaviour? Indeed, it is. The download link is in the Home tab, second link under About. And when will 1.0 be available on the central maven repo? -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Font Cascade
On 06/06/2010 09:44 AM, spyros Papantoniou wrote: Sergiu Dumitriu xwiki.com> writes: Hello Sergiu, I have downloaded and installed freefont on Snow Leopard, Word writes greek ok in freeSerif, however fop still puts ## in place of teh Greek letters when I choose FreeSerif as font family. Any ideas how to convince fop 0.95 to write greek? Are you sure that the font is picked up correctly? As an experiment, if you use FreeMono instead of FreeSerif, does the rest of the text appear in a monospaced font? many thanks Spyros -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Does FOP 0.95 supports Chinese Fonts?
On 04/05/2010 08:30 PM, Charanpreet Arora wrote: Dear All, I'm getting the following error while trying to generate the PDF file containing Simplified Chinese Characters (from uming.ttf): *java.lang.RuntimeException: Character reference "" is an invalid XML character.* This () is not a Chinese character, it's a control character (see http://en.wikipedia.org/wiki/Shift_Out ). It's either a wrong input file, which means that the file should be checked so that no control characters are present, or the file is read using the wrong encoding. Please note that I have generated the metrics file (uming.xml) for the same and configured it through fopConfiguration.xml before running xslt through FOP. With FOP 0.95 you don't need to generate metrics files anymore, just use the font file directly. Can you please guide me if I'm doing anything wrong or I'll be able to generate Chinese file at all using FOP 0.95? Yes, FOP works very well with Chinese text. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Font Cascade
On 03/05/2010 05:11 PM, JoshC wrote: Thanks for the input. Sounds like I had a few assumptions wrong about the font cascade. It looks like bug 48481 is pretty close to what I'm having trouble with, so I'll study that a bit more. Two additional questions: 1. How stable is the code in the trunk, and when will it be released as a FOP version? 2. I'm still unsure how deal with font cascades. I've seen numerous examples that have the final three fonts in the cascade as: sans-serif, Symbol, ZapfDingbats. How would Symbol and ZapfDingbats ever be used? Every FOP call would use sans-serif and ignore anything that comes after, right? I'm still really fuzzy about how this works for documents that have English text and something like Greek characters for math equations, for example. The Greek characters would have to come from Symbol, right? So how are they ever used if sans-serif is always used? Traditionally, different fonts were needed for different charsets, but Unicode solved this. All Greek characters are present in Unicode, so a good font with wide Unicode support should have all the needed greek fonts. Using special fonts to replace ASCII with symbols was a bad idea, better not propagate it into the new century. If anyone can point me to additional resources to read about fonts and FOP I would appreciate it. It sounds like the questions I have are FOP issues and not XSL-FO issues, but maybe there is something in the XSL-FO spec that would clarify some of this as well. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Font Cascade
On 03/04/2010 09:51 PM, JoshC wrote: Hi Everyone, I'm trying to output a PDF that has both English and Korean characters, sometimes both within the same paragraph. I was told by a coworker that you could use a "cascade" of fonts like you do in CSS, something like the following: However, this doesn't seem to work. FOP only seems to use the first font listed. If I use the above font-family list it will still print out English characters, but they look odd. If I list Arial first, it will print out English, but not Korean. Does anyone have any suggestions about how to do this? I'm not sure what the point is of listing more than one font when FOP only seems to use the first one listed. Cascading doesn't mean that the first font which supports a given character is used, but that the first font that exists is used. So, as long as Arial exists, it will be used, even if it doesn't include glyphs for a specific codepoint. You could try using the Arial Unicode font, which has a broader support for characters, although the license might prohibit using it. You could also try a free font with better Unicode support, such as http://www.gnu.org/software/freefont/ (an excellent font, with serif, sans-serif and monotype variants), -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: How to:"
On 01/24/2010 03:40 PM, Magdikova wrote: How it is possible?: " help me please You mean: select="string-length(text)"/> -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Page Breaks in Table
On 10/15/2009 01:21 PM, shrutin wrote: Hello All, I have a list of record and each record needs to be displayed on a different page. But if i add a break-before="page" or break-after="page" i get a blank page before or after respectively. So how could i achieve this requirement without an extra blank page, also setting the length of the row or column is also not possible before the data content may vary. Strange, the specification says that only "odd-page" and "even-page" create blank pages, while "page" simply forces the content to be on a new page. You either have some other code that generates the extra page (maybe a previous attempt to insert page breaks, or a break-after on another element), or there's a bug in FOP. Please check that there's no problem in your XSLT or FO documents. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: AW: AW: Text rendering with FOP
Georg Datterl wrote: Hi fopit, I see. Instead of rendering a pdf you want a text file. Or RTF? I think, I read something lately about discontinuing the rtf functionality because nobody uses it, but I leave the topic to the experts, since I only render to pdf. I really hope this is not true, XWiki relies on RTF support in FOP for exporting wiki documents as RTF. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Auto-generate table of contents
Brian Trezise wrote: Can somebody point me to a good (and well explained) example of using XSL/FOP to auto-create a table of contents? I’ve spent the last couple hours looking for information on this but it’s not making sense. Here’s a sample of my xml: C0805C101J1GACTU C0805C101J1GAC7800 KEMET C:/svn/code/IntelliSpec/images/ 2006-2009 . . . T491B107K010AT KEMET C:/svn/code/IntelliSpec/images/ 2006-2009 . . . . . . I would like to generate a table of contents page using the text of the catalog/intellispec/pn and mfg tags (the table of contents would render more or less as follows: C0805C101J1GACTU (KEMET) . 1 T491B107K010AT (KEMET) ... 2 . . . (Each item would also have an internal hyperlink to the page number in the pdf where the associated datasheet is located) Perhaps this can help as an example: http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/resources/xhtml2fo.xsl Look for to find the code that generates the table of contents, and then search for to see how to generate the link target. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/cli/Main
Tuan Quan wrote: This is on Solaris Solaris is Unix-like, so : is used. See http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html *From:* Sergiu Dumitriu *To:* fop-users@xmlgraphics.apache.org *Sent:* Tuesday, August 4, 2009 4:39:44 PM *Subject:* Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/cli/Main Tuan Quan wrote: > Hi all, > I'm using FOP 0.93. > Got the above message, when execute the following script. > Any help would be very appreciated. > I have checked the .jar and they all are there specified in class path. > thanks. On Linux systems, classpath entries should be separated by a colon (:) instead of a semicolon (;) LOCALCLASSPATH="$LOCALCLASSPATH;$LIBDIR/jimi-1.0.jar" becomes: LOCALCLASSPATH="$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar" -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/cli/Main
Tuan Quan wrote: Hi all, I'm using FOP 0.93. Got the above message, when execute the following script. Any help would be very appreciated. I have checked the .jar and they all are there specified in class path. thanks. On Linux systems, classpath entries should be separated by a colon (:) instead of a semicolon (;) LOCALCLASSPATH="$LOCALCLASSPATH;$LIBDIR/jimi-1.0.jar" becomes: LOCALCLASSPATH="$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar" and so on. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: xslt and xslfo
Ming Yu wrote: Hi, I'm new to xslfo but I have been using xslt for a while. My question is, what is the best practice to output xml to pdf? As far as I understand, those are the step involved: 1. xml -> xslfo through xslt 2. xslfo -> pdf through FOP But when writing xsl for step 1, I have to put all the fo coding inside xsl for the formatting. It seems to be very distracting. If I know what data I want from the xml file and what design I want for the pdf output, is it possible to build the fo file first and add the xsl piece later on? I saw that xmlspy provides a tool to generate xsl:fo file from a design. Is this a good tool to use? The first step is *usually* done through xslt, but that's not mandatory. You have to obtain an xslfo file from the original XML in any possible way. Now, the problem with xslt is that it mixes the processing code with the output in a not-too-clear way, which is a bit confusing if you don't have a good understanding of both languages. You could take another approach, such as using an imperative programming language (like Java or C++ or Python) with an XML library, or a templating language (like Velocity, JSP or PHP), which allows you to actually write the skeleton of the resulting xslfo, with tiny blocks of processing code where the data from the XML must be inserted. The latter approach is closer to your idea of writing the xslfo first. You could write an example static xslfo file, then replace pieces of text with XML processing instructions. Whatever approach you take, the process will still be valid, so feel free to choose the one you are more familiar with. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: PDF document asking
Andreas Delmelle wrote: On 28 May 2009, at 15:46, Sergiu Dumitriu wrote: Andreas Delmelle wrote: Not sure if it is a possibility for you to download and build FOP Trunk. If you have Subversion and Ant available on your system, then it requires virtually no extra effort. Just check out with Subversion, navigate to FOP's root directory in a terminal window, and run 'ant package' to create the fop.jar. Not exactly, I had some problems when trying this on the command line, but it worked from Eclipse. codegen: [echo] Generating the java files from xml resources compile-java: resourcegen: BUILD FAILED java.lang.NullPointerException at org.apache.fop.tools.EventProducerCollector.createMethodModel(EventProducerCollector.java:138) Seems that QDox' JavaMethod.isReturns() may produce null in some cases, which results in Type.isVoid() yielding a NPE. Their API docs do not offer a lot of explanation, unfortunately Do you have another version of QDox in the classpath? Does Eclipse use the exact same Java version/build? No, the settings are exactly the same, nothing special. Could be the way the classpath entries are ordered? On my system (Gentoo) there is a global qdox library, but it's the same version as the one provided in the lib directory (although not exactly the same binary, since Gentoo builds all packages locally, from the sources). -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: PDF document asking
Andreas Delmelle wrote: Not sure if it is a possibility for you to download and build FOP Trunk. If you have Subversion and Ant available on your system, then it requires virtually no extra effort. Just check out with Subversion, navigate to FOP's root directory in a terminal window, and run 'ant package' to create the fop.jar. Not exactly, I had some problems when trying this on the command line, but it worked from Eclipse. init-avail: [echo] --- Apache FOP svn-trunk [1999-2009] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.7.1 compiled on May 25 2009 [echo] VM: 11.3-b02, Sun Microsystems Inc. [echo] JAVA_HOME: /opt/sun-jdk-1.6.0.13 [echo] JAI Support PRESENT [echo] JCE Support PRESENT [echo] JUnit Support PRESENT [echo] XMLUnit Support PRESENT init: codegen: [echo] Generating the java files from xml resources compile-java: resourcegen: BUILD FAILED java.lang.NullPointerException at org.apache.fop.tools.EventProducerCollector.createMethodModel(EventProducerCollector.java:138) at org.apache.fop.tools.EventProducerCollector.processEventProducerInterface(EventProducerCollector.java:128) at org.apache.fop.tools.EventProducerCollector.scanFile(EventProducerCollector.java:98) at org.apache.fop.tools.EventProducerCollectorTask.processFileSets(EventProducerCollectorTask.java:189) at org.apache.fop.tools.EventProducerCollectorTask.execute(EventProducerCollectorTask.java:66) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP Servlet in restricted environment
Luke-SuperDude wrote: cbowditch wrote: Luke-SuperDude wrote: Hi, Hi Luke, I am trying to get a Fop Servlet working in a Godaddy Linux java hosting account. I am running a servlet like the example wich a feed with an xml. create a fo out of it and try to build a pdf. It works fine locally on my own system, but not on this restricted hosting environment. I get the following error and i can't figure out what to do. I know it is the fop in its init doing stuff: java.security.AccessControlException: access denied (java.io.FilePermission /root read) java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) java.security.AccessController.checkPermission(AccessController.java:427) java.lang.SecurityManager.checkPermission(SecurityManager.java:532) java.lang.SecurityManager.checkRead(SecurityManager.java:871) java.io.File.exists(File.java:700) org.apache.fop.fonts.FontCache.getUserHome(FontCache.java:87) org.apache.fop.fonts.FontCache.getDefaultCacheFile(FontCache.java:100) org.apache.fop.fonts.FontCache.load(FontCache.java:117) org.apache.fop.apps.FopFactory.setUseCache(FopFactory.java:692) org.apache.fop.apps.FopFactory.(FopFactory.java:158) org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:166) DocGen.init(DocGen.java:82) javax.servlet.GenericServlet.init(GenericServlet.java:211) sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source) Looks like this error occurs when FOP is checking for its Font Cache. You can disable the cacue with the use-cache option as documented here: http://xmlgraphics.apache.org/fop/trunk/configuration.html#general-elements Simply put the XML element false into the fop.xconf file. Chris Hi, i tried this with the option and it appears not to make any difference. (Will try a bit more with it) I am using the 0.95 version, and when i look at the fop-configuration.xsd the option is not there. So i am still a bit confused. Try using a trunk build. You won't even have to disable the cache, since it will automatically try to use the system temporary directory instead of the root's home. -- Sergiu Dumitriu http://purl.org/net/sergiu/ - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org