RE: Referring to a image file in a JAR file

2010-07-21 Thread Bernard Giannetti
I already have a URIResolver implemented to resolve the something such as xsl:include href=pagesetup.xsl / which is what the Javadoc says it's used for: http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/javax/xml/transform/URIResolver.html Unfortunately, the

RE: Referring to a image file in a JAR file

2010-07-23 Thread Bernard Giannetti
@xmlgraphics.apache.org Hi, since the jar with our images was on the classpath we could reference the image directly: fo:external-graphic src=urn:some_logo.gif/ - urn: was the trigger for us in our resource resolver... Regards, ToM 2010/7/22 Bernard Giannetti thebernmeis...@hotmail.com: I already

RE: Referring to a image file in a JAR file

2010-07-23 Thread Bernard Giannetti
@xmlgraphics.apache.org Hi, since the jar with our images was on the classpath we could reference the image directly: fo:external-graphic src=urn:some_logo.gif/ - urn: was the trigger for us in our resource resolver... Regards, ToM 2010/7/22 Bernard Giannetti thebernmeis...@hotmail.com: I

Minimising FOP footprint...

2010-07-23 Thread Bernard Giannetti
Hi, I've noticed there's a lot of 3rd party JAR files bundled with FOP 1.0, notably: avalon-framework-4.2.0.jar batik-all-1.7.jar commons-io-1.3.1.jar commons-logging-1.0.4.jar serializer-2.7.0.jar xalan-2.7.0.jar xercesImpl-2.7.1.jar xml-apis-1.3.04.jar xml-apis-ext-1.3.04.jar

Inclusing of a dynmaically generated SVG into XSL

2011-05-01 Thread Bernard Giannetti
Hi, I have a dynamically generated SVG image (using Batik included with the FOP distribution) and I want to pass the SVG (say as a bytearrayoutputstream) into the render process. The render process is typical: bufferedOutputStream = new BufferedOutputStream( new FileOutputStream(

Missing render messages

2011-05-06 Thread Bernard Giannetti
Hi, Having trouble capturing all logging from a FOP render. I am using log4j and have configured it using the XML file (see the end of this post). Normally I find that all logging goes to my log file and console as per the logging level I set. However I found by accident I had mistyped an

RE: fop not handling svn rotated text on linux

2011-06-24 Thread Bernard Giannetti
Something which happened to me (unrelated to rotating text) but I noticed a difference between the PDF viewing engines of Adobe and Ubuntu's Document Viewer. There is some bug in the way the underlying library (used by Document Viewer) does rendering - I cannot remember the specifics but the

Interrupt/cancel/abort a render

2011-09-18 Thread Bernard Giannetti
Hi, I'm wondering if it's possible to interrupt/cancel/abort a render once it has been started. I'm embedding FOP into a Java desktop application in a similar way which is described here:

RE: Still having trouble loading fonts at runtime - suggestions?

2012-06-12 Thread Bernard Giannetti
Hi Phillip, I have written a desktop application which, on start up, refreshes a cache of fonts (using FOP code) and subsequently allows the user to refresh that cache by hitting a button (again, calls the same FOP code). See attached. When the application starts up I call

RE: Still having trouble loading fonts at runtime - suggestions?

2012-06-13 Thread Bernard Giannetti
Hi Phill, The PropertiesManager is a class of mine which basically extends java.util.Properties and essentially reads/writes a hash table of key/value pairs. I store in the properties a list of the font names and their respective font files (as discovered via FOP). For me on Ubuntu 12.04 I

RE: Still having trouble loading fonts at runtime - suggestions?

2012-06-13 Thread Bernard Giannetti
Hi Phill, I make a call to FOP itself to find the fonts - see FOPManager::InitialiseFonts in the code from my first reply. The magic line is SortedMap?,? fontFamilies = new FontListGenerator().listFonts( ms_fopFactory, org.apache.xmlgraphics.util.MimeConstants.MIME_PDF, fontEventListener );

Getting a list of font names without the memory hit...

2013-07-30 Thread Bernard Giannetti
Hi, I'm making a call to org.apache.fop.tools.fontlist.FontListGenerator.listFonts( ... ) to get a list of font names for my desktop application. To get the font names, I take the keys from the returned fontFamilies SortedMap; the actual data is junked. I hadn't realised just how much memory

Getting a list of font names without the memory hit...‏

2013-07-30 Thread Bernard Giannetti
(apologies for the double post...somehow my email got tagged to the end of an unrelated post) Hi, I'm making a call to org.apache.fop.tools.fontlist.FontListGenerator.listFonts( ... ) to get a list of font names for my desktop application. To get the font names, I take the keys from the

RE: Getting a list of font names without the memory hit...‏

2013-07-30 Thread Bernard Giannetti
the list of fonts in your system? On 7/30/13 5:42 PM, Bernard Giannetti wrote: (apologies for the double post...somehow my email got tagged to the end of an unrelated post

RE: Getting a list of font names without the memory hit...‏

2013-07-31 Thread Bernard Giannetti
using FOP in your Desktop app (meaning you feed and FO file and output one of the supported formats) or you just want to use some classes to get the list of fonts in your system? On 7/30/13 5:42 PM, Bernard Giannetti wrote: (apologies

RE: Getting a list of font names without the memory hit...‏

2013-07-31 Thread Bernard Giannetti
The config file or the cache file? My config file has no fonts listed for PDF: renderer mime=application/pdf filterListvalueflate/value /filterList fontsauto-detect/ /fonts/renderer Date: Wed, 31 Jul 2013 04:26:33 -0700 From: djs...@yahoo.com To: fop-users@xmlgraphics.apache.org

RE: Getting a list of font names without the memory hit...‏

2013-07-31 Thread Bernard Giannetti
I'm reading org.apache.fop.fonts.FontCache now...red-faced and fingers crossed! From: thebernmeis...@hotmail.com To: fop-users@xmlgraphics.apache.org Subject: RE: Getting a list of font names without the memory hit...‏ Date: Wed, 31 Jul 2013 21:29:59 +1000 The config file or the cache file?

RE: Getting a list of font names without the memory hit...‏

2013-07-31 Thread Bernard Giannetti
Now I'm chasing my tail...looking at FontCache has gotten me back to FontInfo.getFonts()! Any other ideas please?! From: thebernmeis...@hotmail.com To: fop-users@xmlgraphics.apache.org Subject: RE: Getting a list of font names without the memory hit...‏ Date: Wed, 31 Jul 2013 21:33:14 +1000

RE: Getting a list of font names without the memory hit...‏

2013-08-01 Thread Bernard Giannetti
Thanks Chris - simplest solution is often the best: String fonts[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames(); Getting a list of fonts this way does NOT appear to impact memory at all...so much better! I don't have the use-cache tag in my config file, so

Memory usage and page numbering...

2013-08-08 Thread Bernard Giannetti
Hi, I have a Java desktop application, using embedded FOP to create PDFs from a data XML file and an XSLT file. I wanted to see how much memory is being used, given the point about memory usage, page numbers and page totals (http://xmlgraphics.apache.org/fop/1.1/running.html#memory). My PDF

RE: Memory usage and page numbering...

2013-08-09 Thread Bernard Giannetti
Thanks Robert - I found https://code.google.com/a/eclipselabs.org/p/jvmmonitor/ which I managed to get running in a few minutes and has pretty realtime graphs! Good enough to get started :-) From: rme...@hotmail.co.uk To: fop-users@xmlgraphics.apache.org Subject: RE: Memory usage and page

RE: Memory usage and page numbering...

2013-08-09 Thread Bernard Giannetti
Having now done a few runs using JVM Monitor on both Ubuntu 32 bit and 64 bit, I've found that the heap memory is slightly less when page numbers with totals are used compared to no page numbers at all. Slightly less, but really nothing worth howling about. From the FOP section on Memory

Processing selected nodes...

2013-09-29 Thread Bernard Giannetti
Hi, I'm using FOP, embedded in a desktop application, to create PDFs from a single data XML file using an XSLT file. Say the data XML file is a list of items, for example: items itemapple /item itemorange /item itemwater melon /item.../items I want to be able to tell the XSLT

RE: Processing selected nodes...

2013-09-29 Thread Bernard Giannetti
, and it is absolutely the most spam-free environment you can imagine.http://www.tek-tips.com/threadminder.cfm?pid=426 Tom MorrisonHill Country Software From: Bernard Giannetti [mailto:thebernmeis...@hotmail.com] Sent: Sunday, September 29, 2013 1:23 AM To: fop-users@xmlgraphics.apache.org

RE: Processing selected nodes...

2013-10-02 Thread Bernard Giannetti
FYI, I posted a question (and solution) at http://www.tek-tips.com/viewthread.cfm?qid=1719206. From: thebernmeis...@hotmail.com To: fop-users@xmlgraphics.apache.org Subject: Processing selected nodes... Date: Sun, 29 Sep 2013 16:23:24 +1000 Hi, I'm using FOP, embedded in a desktop

RE: png vs. jpg

2013-10-17 Thread Bernard Giannetti
Hi Luis, I went to the page you provided (ImageLoaderRawPNG) and noticed in the config for application/pdf xmlHandler mime=text/svg+xml/ I searched for xmlhandler and cannot find any reference to this tag (other than the page you gave). I'm generating PDFs using embedded FOP (which include a

RE: Table of Content

2014-03-19 Thread Bernard Giannetti
Hi Anastasya, After a bit of Googling I found these... http://stackoverflow.com/questions/7159747/xsl-fo-creating-dynamic-table-of-contents http://stackoverflow.com/questions/7284236/xsl-fo-how-to-generate-table-of-contents