performance of PNG output vs PDF
I'm working on an application that creates labels. For PNG at 300 dpi, cpu usage is 2x higher than PDF output. The application can expect high volumes so performance is important. Is the relatively poor performance of image output normal? Is there a setting that can improve the png renderer performance? thanks
Re: Help needed on Image rendering
Hi, What image type? SVG, by any chance? David Hi, I am facing random issues with image rendering while PDF generation with FOP 1.0 version. Some images are coming properly but some of them are not. Images are present in location but still it gives exception :Image not found Please let me know where I can subscribe to solve my issue. Any help will be appreciated. Regards, Meenakshi Musale Web Operations IGate Americas Inc Gexpro, 1000 Bridgeport Avenue. Shelton, CT 06484, USA. Tel: (203) 925 - 2480 Email: meenakshi.mus...@gexpro.com
Unable to load font file due to NullPointerException?
Hi all Still having trouble loading custom fonts - this time with a different approach. This time I'm running FOP instance with the following xml config: ?xml version=1.0? fop version=1.0 base./base source-resolution72/source-resolution target-resolution72/target-resolution default-page-settings height=297mm width=210mm/ renderers renderer mime=application/pdf fonts directory recursive=truefonts/directory /fonts /renderer /renderers /fop When I start my app which uses FOP, the log displays the following error: WARNING: Unable to load font file: file:/Users/me/Projects/myproject/fonts/League_Gothic.ttf. Reason: java.lang.NullPointerException The path to the font is correct, the font exists and FontBook (I'm on a mac) can read the font without issue (it's an open-source/free font). Any ideas what the error might be this time? -- Phillip B Oldham phillip.old...@gmail.com +44 (0) 7525 01 09 01 - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Still having trouble loading fonts at runtime - suggestions?
Hi Bernard Thanks for that code - that's really helpful. However, from what I can tell (java isn't one of my main languages, I'm a Python dev) it seems as though it doesn't actually tell FOP to reload any fonts, but rather gathers a list of fonts and then asks `PropertiesManager` to set the fonts. I can't see a reference to `PropertiesManager` in the FOP docs; is that a class in your app, or am I missing something? Cheers, Phill Bernmeister wrote: 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 FOPManager.refreshFonts( false ); Before allowing the user to initiate a print, I call FOPManager.isReady() When the user forces a cache update, I call FOPManager.refreshFonts( true ); My fopConfiguration.xml is standard and doesn't do anything fancy. Cheers, Bernard. -- View this message in context: http://old.nabble.com/Still-having-trouble-loading-fonts-at-runtime---suggestions--tp34000790p34005767.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Still having trouble loading fonts at runtime - suggestions?
Hi All I'm still having trouble loading using fonts while my app is running. I can load fonts without issue when configuring them via the XML config, but unfortunately the fonts are provided by a 3rd party at runtime and I therefore need to find a way to load them via java. Here's my current process (not working): 1. create a new FOP instance 2. load a number of default settings from an XML file 3. override some of these settings (eg. resolution) based on certain preferences passed in at runtime then, specifically regarding fonts: 4. create a temporary directory to store the font(s) that the 3rd party is providing 5. write each font to the temp directory 6. pass the temp dir to FontManager.getFontBaseURL() 7. process the FO file However, even though the FontBaseURL is changed, the fonts aren't loaded/used during processing. Is there a way to tell FOP/the FontManager to refresh it's cache/search the new directory and load the fonts? Is there a better approach to this? -- Phillip B Oldham phillip.old...@gmail.com - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Is it possible to load use a font at runtime?
Is it possible to start an app which uses the FOP jar and, at runtime, load and use a font rather than installing it before running the app? I'm developing an library for our team to use which will load an FO file, any image assets and (hopefully) any fonts needed to render a PDF. I've got everything working except the fonts, where I've hit a bit of a wall. Is it possible? -- Phillip B Oldham - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Is it possible to load use a font at runtime?
Thanks Pascal. I need to keep the system running (FOP will be embedded), and the font will be chosen/added by the user, so it looks like I'll have to create a new config in memory and load it for each request. Would it be worth forking a thread for each run of FOP and loading the config/fonts locally to that thread? The docs say that FOP may not be completely thread safe... are there any techniques I can follow to reduce issues? Hi, FOP Fonts do not need to be installed on your system. You just need to pass fonts location to FOP. 1/ register all used font files in configuration file (see [1], more precisely register a particular font) 2/ depending on how you use fop (either command line or embedded in your app), provide your config file to FOP (see [2] or [3]) note that the font-base configuration option can be very usefull here, either directly set in config file, or using the fopFactory.setFontBaseURL() method (see [4]). [1] http://xmlgraphics.apache.org/fop/1.0/fonts.html#register [2] http://xmlgraphics.apache.org/fop/1.0/configuration.html#general-available [3] http://xmlgraphics.apache.org/fop/1.0/embedding.html#config-external [4] http://xmlgraphics.apache.org/fop/1.0/embedding.html#fop-factory Le 22/05/2012 13:28, Phillip B Oldham a écrit : Is it possible to start an app which uses the FOP jar and, at runtime, load and use a font rather than installing it before running the app? I'm developing an library for our team to use which will load an FO file, any image assets and (hopefully) any fonts needed to render a PDF. I've got everything working except the fonts, where I've hit a bit of a wall. Is it possible? -- Pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Problem with SVGs on different servers
I don't suppose this is a Windows 64 bit issue, is it? http://tech.groups.yahoo.com/group/dita-users/message/24951 http://tech.groups.yahoo.com/group/dita-users/message/24091?threaded=1 HTH, David Ok what version of what jars are needed? I can run it fine within netbeans and out of netbeans it doesn’t work, The SVG’s are not displaying, but I now have no errors or hidden jar warnings. I have the following dependancies in netbeans Fop-1.0.jar Avalon-framework-api-4.3.1.jar Avalon-framework-impl-4.3.1.jar Batik-???-1.7.jar (16 of them) Xml-apis-ext-1.3.04.jar Xalan-2.6.0.jar What should I have? Kindest regards Theresa Forster Senior Software Developer From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] Sent: 01 February 2012 12:46 To: fop-users@xmlgraphics.apache.org Subject: Problem with SVGs on different servers I have an application being compiled with Maven and packaged by one- jar, It works fine locally on Java 1.6.0_26 When I put it on the live server running Java 1.6.0_27 the PDFS are missing the SVG files, I have batik 1.7 in the jar and am using fop-1.0.jar in there as well, Avalon-framework-impl/api 4.3.1 Avalon-framework-4.1.3 Why would it work on one machine and not on the other? The fop is not running in tomcat but the one that is not working is 5.5 the local one is 7.0.14 Kindest regards Theresa Forster Senior Software Developer
FOP 0.95 - Font metrics issue?
Hi All, I'm using the DITA Open Toolkit, which includes FOP 0.95 It's producing this error: [fop] SEVERE: Failed to read font metrics file null [fop] java.io.EOFException: Reached EOF, file size=49872 offset=49878 [fop] at org .apache.fop.fonts.truetype.FontFileReader.seekSet(FontFileReader.java: 86) [fop] at org .apache.fop.fonts.truetype.FontFileReader.seekAdd(FontFileReader.java: 99) [fop] at org.apache.fop.fonts.truetype.FontFileReader.skip(FontFileReader.java: 109) [fop] at org.apache.fop.fonts.truetype.TTFFile.readOS2(TTFFile.java:1016) [fop] at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:495) [fop] at org.apache.fop.fonts.truetype.TTFFontLoader.read(TTFFontLoader.java:58) [fop] at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:164) [fop] at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:113) etc, etc, etc I thought that the font metrics URL wasn't required? This maybe an obvious question, but I'd rather ask a daft question than create and add font metrics, only to find it's something else. MTIA David - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
org.apache.fop.pdf.PDFFunction Type 3 Stitching function
Dear list, We are experimenting with Apache FOP to generate PDF. We would like to create large PDF's. Memory usage is becoming an issue. In the past with other PDF toolkits we have resorted to stitching various PDF's together in order to avoid running out of memory. There is mention in the org.apache.fop.pdf.PDFFunction documentation of stitching functions. What do these functions do? Thanks in advance, Clifton Sothoron
help with building fom0.95 with X-less linux box
Greetings, I am new to this list. I am trying to compile fop-0.95 on a linux box with the following features: CPU: AMD64 sempron 2GBytes of RAM, linux -distribution: clfs, kernel-2.6.32, GCC4.4.2, jdk-6u17-linux-x64.bin, apache-ant-1.7.1/junit-4.3.1 (compiled as given here:- http://www.linuxfromscratch.org/blfs/view/svn/general/apache-ant.html For fop-0.95 I followed the recipe given here http://www.linuxfromscratch.org/blfs/view/svn/pst/fop.html first I tried running ant as ordinary user and it complained of 'unexplainable errors'. I then ran as root and obtained the following output; # junit-userconfig: [echo] Running user config tests [junit] Testsuite: org.apache.fop.config.UserConfigTestSuite [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 1.246 sec [junit] [junit] - Standard Error - [junit] Dec 21, 2009 6:39:41 PM org.apache.fop.apps.FopFactory resolveURI [junit] SEVERE: Attempt to resolve URI 'badprotocol:test/resources/fonts/glb12.ttf.xml' failed: [junit] javax.xml.transform.TransformerException: Error with URL; base 'file:/home/lattice/build09u6/sources-lan161109/fop-0.95/./' href 'badprotocol:test/resources/fonts/glb12.ttf.xml' ##eventually it ended as## junit-intermediate-format: junit: BUILD FAILED /home/lattice/build09u6/sources-lan161109/fop-0.95/build.xml:918: NOTE: ** * One or more of the Junit tests had Failures or Errors or were skipped! * * Please check the output above for relevant messages. * * Or use the junit-reports target to generate HTML test reports. * ** Total time: 1 minute 25 seconds ### I do not have X-windows installed as the tentative application is in a network a server. Advice/suggestions welcomed. sincerely bvol - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Sobtotal per Page
Hi, I finally i found something. But I have a problem in calling the template. What ist wrong, can't figure it out. !--- Template to calculate Subtotals -- xsl:template mode=do-sum match=Auftrag xsl:param name=sum select=0/ xsl:variable name=running-sum select=number(translate($sum + number(Auftragssumme),'.',''))/ xsl:choose xsl:when test=following-sibling::Rechnung xsl:apply-templates mode=do-sum select=following-sibling::Auftrag[1] xsl:with-param name=sum select=$running-sum/ /xsl:apply-templates /xsl:when xsl:otherwise xsl:value-of select=format-number($running-sum, '#.##0,00', 'numfrmt')/ /xsl:otherwise /xsl:choose /xsl:template xsl:template name=getSubtotal Subtotal: !-- xsl:apply-templates mode=do-sum select=/Root/Rechnung/Auftrag[1]/-- /xsl:template !-- End Template calculating subtotals -- fo:layout-master-set fo:simple-page-master master-name=Rechnung page-width=8.5in page-height=11in fo:region-body region-name=PageBody margin-top=1.5in margin-left=0.8in margin-bottom=0.8in/ fo:region-before region-name=Header extent=1.2in margin-left=0.8in/ fo:region-after region-name=Footer extent=1in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=Rechnung !-- Rechnungsnumemr und Seitenzahl-- fo:static-content flow-name=Header [...] /fo:static-content !-- Footer -- !--fo:static-content flow-name=Footer -- fo:static-content flow-name=Footer fo:block-container position=absolute left=4.65in top=40% height=1in width=100% !-- fo:retrieve-marker retrieve-class-name=title retrieve-position=first-starting-within-page retrieve-boundary=page/ -- fo:block font-size=9ptZwischensumme: ### Call Template xsl:call-template name=getSubtotal/ /fo:block /fo:block-container /fo:static-content !--/fo:static-content-- !-- Footer Ende -- I don't know what wrong and where zo put my templates. Everytime I get the-template-could-not-be-found. I skipped dealing with markers, because I couldn't figure out how to call the last marker on a page. Sorry about this nooby questions. -- View this message in context: http://www.nabble.com/Sobtotal-per-Page-tp24519516p24531834.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Sobtotal per Page
Thanks for this answer, Chris. Christopher R. Maden wrote: You are calling a template called “getSubtotal” and don’t have a template called “getSubtotal.” Hence, the template could not be found. I understand now. My mistake was i defined the template getSubtotal und my main template. I would recommend making a very simple XSLT that produces plain text or HTML from your data, with a running subtotal at every section. That should point the way to doing it in FO. Christopher R. Maden wrote: You may also consider raising this question on the xsl-list, as it’s independent of FOP. However, the very helpful people there are also very busy, so prepare a stripped-down example that demonstrates your problem. (You may also find that preparing such an example helps you to solve it yourself.) Sorry, did not know I was wrong. So this will me my last question (Sorry, but after this we have hopefully solved my Problem). Christopher R. Maden wrote: When you retrieve a marker with last-ending-within-page, you’ll get the last one on that page. So if you generated five subtotal markers on the page, you’ll just get the fifth one. Is the a possibility to return a value from a template? I would like to implement a rekursive service. It shall lokk like this. 3 Oders: 1 OderSum: 1 2 OderSum: 2 #PAGEBREAK# 3 OrdeSum: 3 $total = 0 I go through my xml with a for-each. !-- Call template -- $total = $total + OrderSum1; !-- Call retrieve marker to check if it is the last OrdeSum on a page -- RETURN $total into $total from for-each !-- Call template end -- Repeat from here if there are OderSums left. So i would have: Run: 1. Walk through: $total (for-each)=0 1. $OrderSum=1 2. $total (Template)=$total (Teplate)+$Ordersum (after this 1) 3. RETURN total 2. Walk through: $total (for-each)=1 1. $OrderSum=2 2. $total (Template)=$total (Teplate)+$Ordersum (after this 3) 3. RETURN total !-- Pagebreak -- Call retrieve-marker with param $total (for-each) and print it in my footer (Printed: Odersum: 3) 3. Walk through: $total (for-each)=3 1. $OrderSum=2 2. $total (Template)=$total (Teplate)+$Ordersum (after this 5) 3. RETURN total !-- Pagebreak -- Call retrieve-marker with param $total (for-each) and print it in my footer (Printed: Odersum: 5) I hope you could follow my thoughts. Is this in possible in any way. I would do something like that in JS or Java. -- View this message in context: http://www.nabble.com/Sobtotal-per-Page-tp24519516p24534811.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: FOP is fun, even images brighten up?
I'm not an expert, but I'd expect it to be down to the image's colour profile. Maybe the apache batik docs have futher information on how FOP manages colour profiles? Georg Datterl wrote: Hi everybody, please have a look at the attached files. I have a png image, which I place in a pdf. Without doing anything else, the image in the pdf is much brighter than the original image. I'm using the trunk. Can anybody tell me: Why is this image brighter? How can I prevent that? Where should I place this question, if it is not a FOP issue? Why always me? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Strae 8a 90449 Nrnberg HRB Nrnberg: 17193 Geschftsfhrer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -- Phillip B Oldham The Activity People ph...@theactivitypeople.co.uk Policies This e-mail and its attachments are intended for the above named recipient(s) only and may be confidential. If they have come to you in error, please reply to this e-mail and highlight the error. No action should be taken regarding content, nor must you copy or show them to anyone. This e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium, and we have taken steps to ensure that this e-mail and attachments are free from any virus. We must advise that in keeping with good computing practice the recipient should ensure they are completely virus free, and that you understand and observe the lack of security when e-mailing us. begin:vcard fn:Phillip Oldham n:Oldham;Phillip org:The Activity People;Systems Development email;internet:ph...@theactivitypeople.co.uk title:Chief Programmer tel;work:0870 162 4847 x-mozilla-html:TRUE url:http://theactivitypeople.co.uk/ version:2.1 end:vcard - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Status of display-align
Jeremias, Your hopes were realised. On my first attempt I put, automatically, space-before.maximum and space-before.minimum. I took me a lot of fiddling around in the wrong places before I read this message again more carefully. Thanks, Peter I'd recommend space-before: fo:flow flow-name=xsl-region-body fo:blockHello World!/fo:block fo:block space-before.optimum=30cm space-before.minimum=0mmThis block is aligned at the bottom of the page!/fo:block /fo:flow You make the optimum space-before quite big but allow it to shrink. The layout algorithm will do the rest. Unfortunately, using percentages in block-progression-direction doesn't work reliably, yet (as you noticed). So you can't specify space-before.optimum=100%. The spec also says: Percentages: N/A (Differs from margin-bottom in CSS). Just use a big absolute length. Furthermore, there are the display-align extensions proposed by Luca Furini a few years ago. But I don't think this works anymore because we don't test for it. HTH -- View this message in context: http://www.nabble.com/Status-of-display-align-tp18520672p18524786.html 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: Re: fop.jar, Service-registration mechanism, one-jar problem
Thanks for the fast and extensive replies. I'll have a look at it and retry. Maybe a JavaDoc-comment makes it a bit easier being new to «funny things with service registration that's not so funny at all». - original Nachricht Betreff: Re: fop.jar, Service-registration mechanism, one-jar problem Gesendet: Fr 27 Apr 2007 08:50:57 CEST Von: Jeremias Maerki[EMAIL PROTECTED] Plus, you may need to merge some text files inside /META-INF/services if you merge multiple JARs which may have files with the same name. BTW, FOP doesn't do funny things concerning renderer registration. This is a properly documented facility offered through Java. See here: http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Service%20Provider Many packages use that facility including: ImageIO, javax.sound, Apache Batik, Apache Xalan-J and many more. On 27.04.2007 02:10:20 Daniel Noll wrote: [EMAIL PROTECTED] wrote: Now FOP does a funny thing with renderer-registration and I don't see the use for it. Instead of doing a sort of init process like: - create map - register internal classes with MIMEs - handover map to plugin concept you do something like read entries from file fop.jar and register if instance of some sort of abstract renderer. It sounds like you might have just forgotten to put the content of fop.jar's /META-INF directory into your own jar file. Daniel Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- original Nachricht Ende - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fop.jar, Service-registration mechanism, one-jar problem
Hi there, I maintain a sort of release notes application, that is capable of exporting release notes information to various formats. I tried to add FOP-support to it and failed. I'm limited to one-jar solutions, I'm not allowed to refer to any sort of external package. That's why I use a huge jar containing all the neat stuff, including FOP. Now FOP does a funny thing with renderer-registration and I don't see the use for it. Instead of doing a sort of init process like: - create map - register internal classes with MIMEs - handover map to plugin concept you do something like read entries from file fop.jar and register if instance of some sort of abstract renderer. I don't have no fop.jar and it starts, but as soon as I transform something it fails to load the MIME-relevant renderer classes. Makes no sense to me, because I've packed them into the app's jar...they're definitely available. I also tried to register the renderers on my own (RendererMakers), but this causes some weird class cast exceptions with TransformerFactory (I assume somebody casts something into a non-SAX-special class, while I switched to SAX-implementation via System.properties). So how to get rid of this problem while relying on FOP and using it as part of a all-in-one-jar? Thanks so far... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performance Suggestions
Hi, I'm using FOP 0.92beta with Sun's J2RE 1.4.2_12, running on Red Hat Enterprise Linux 4. I'm processing FO documents that are about 4-7 MB in size and it takes about 60 - 80 seconds to parse into PDF. This is how I'm calling FOP: export FOP_OPTS=-Xmx128m; export JAVA_HOME=/usr/local/j2re1.4.2_12; /usr/local/fop-0.92beta/fop doc.fo -pdf doc.pdf errors The machine is dual Xeon 2.66GHz with 2GB RAM. Does anyone have any suggestions for ways I could improve performance? I'm not really familiar with Java-based applications. Thanks in advance! -- Jonathan B. York Software Developer http://www.entersol.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: marker value to variable [SOLVED]
Alexander Schwartz wrote: Hello Glen, One thing when doing calculations in XSL: All these numbers are floats, therefore every calculation may give you unexpected rounding errors. http://www.w3.org/TR/xpath#section-Number-Functions Is there a way to avoid this? Thanks, Alex. Interesting question, especially when calculating money amounts. I'd like to know the answer. Peter -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Key size / Encrypting PDFs / Security level
Hi, Somebody can tell me what´s is the maximum level of encription I can have in PDFs using FOP? I searched on the Internet and could only find something about RC4 algorithm with 128bits. Is it possible to use greater sizes of keys or even different algorithms? Thanks for any help! Regards, Marcelo Alcantara | GEM IB Tech São Paulo, Brazil | Office: GDP +281.3543 +55.11.3048.3543 | Mobile: +55.11.8196.8823
[Fwd: [Issue 66563] XMLUtil.write produces incorrect namespaces when using Xalan on JDK 1.5]
Given the recent comments about how problems with XSL processing were Sun's fault, I thought it appropriate to forward this. Peter Original Message Subject: [Issue 66563] XMLUtil.write produces incorrect namespaces when using Xalan on JDK 1.5 Date: 1 Jun 2006 22:03:52 - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] http://www.netbeans.org/issues/show_bug.cgi?id=66563 --- Additional comments from [EMAIL PROTECTED] Thu Jun 1 22:03:49 + 2006 --- brianminchau: the NetBeans product doesn't bundle Xalan at all. We use the version shipped with the JDK, which as far as I know doesn't have this problem in the Sun distribution. (Perhaps due to usage of XSLTC?) The problem arose with people bundling their own versions of Xalan with add-on modules, in which case the rest of the IDE would pick up the bundled Xalan instead of using the JDK's version. There is already a workaround in NetBeans which deals with this case (forcing the JAXP impl of XSLT to be used) provided that the JAXP version does not contain the bug. However see issue #70130. It seems that the IBM JDK 1.5.0 bundles a version of Xalan which does suffer from XALANJ-2219. For that reason, NB currently won't run on this JDK, as it has no working XSLT processor available and serialization of namespaced XML is critical for the project system to work. If a fix for XALANJ-2219 could be put into an update to the IBM JDK that would be great. The NB code already autodetects whether the JDK's Xalan has a fix for XALANJ-2219 or not (by testing its runtime behavior), so NB 5.0 ought to begin working unmodified on a patched IBM JDK. Thanks for the note! I know this situation is a bit complicated so feel free to contact me ([EMAIL PROTECTED]) if you need more information. -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: RTF, nested tables, context enhancement - status
- original Nachricht Betreff: Re: RTF, nested tables, context enhancement - status Gesendet: Fr 26 Mai 2006 16:42:13 CEST Von: Jeremias Maerki[EMAIL PROTECTED] On 23.05.2006 08:02:50 b.ohnsorg wrote: - original Nachricht Betreff: Re: RTF, nested tables, context enhancement - status Gesendet: Mo 22 Mai 2006 22:30:07 CEST Von: Jeremias Maerki[EMAIL PROTECTED] page-number-citation and page numbering: Both work to at least a certain degree. Can you elaborate on the problems you're seeing? RTF does not know any «citation», so you need to write a character '2', if you want a link to display a page information refering to page '2'. For example an index at the end of the document does not know, which page explains «Barcode» and all links will show a question mark. That's not correct. RTF has support for page number citations. You should take a lot at the RTF specification and create an RTF file in MS Word with references so you see how this should be implemented. If someone has a reliable resource, let me know. I don't own any Micros~1 component and took OpenOffice-documents. They contain fields like MS-Office, but page numbers are hard coded. (tried cross referencing and TOC-mechanism) I thought about that last night (while cruising through the PDF-renderer to compare my table width «guessing» with the already implemented one) and draw the following conclusion: Fact 1: RTF knows page breaks Wrong. RTF can contain hard page breaks but doesn't have to. That's what I say: «knows page breaks» (and it's obvious, that I mean Insert-Page break-«Manual page break») Fact 2: RTF is page-oriented Wrong. RTF is a flow-oriented format. Microsoft Word is responsible for the page break decisions unless you add hard page breaks. Same intention, other words. Mkay, it's a «stream» of format attributes, but it's intended to render to pages, therefore you may insert a page break. If it would be a drawing program, intended to render to large sheets of paper to stick to walls, it would not include page breaking. Depends on point of view. (You may set the page size to any value one may think of, mkay, but that's not the point. Another example would be an index or cross reference with the page number appended) Fact 3: RTF aligns elements absolute Yes. Fact 4: RTF does not know anything about the document's structuring Depends on what you mean by structure. RTF supports styles which allow some kind of structuring. Telling a block of text to be Arial, 22pt, underlined and bold is not structure, but formatting. You may assume that this is heading level 1 but it could also be a capitalized letter or dadaistic poem. What I mean with structure is something like: h1May there be light/h2, so it's a heading, nothing else (I exclude mistakenly used tags by HTML-beginners). Conclusion: RTF differs not that much from PDF-rendering (only written tokens are a bit different) - Use the PDF-layout management system and add a RTF-writer. So RTF would look exactly like all PDFs. And there's only a slight difference from Office-generated RTFs: page breaks after every page. That would defeat the purpose of the current RTF output support. The clue is that you can edit the generated file and then print it. If you predefine the page breaks you make the editing a lot harder for the end-user. If you don't need RTF editing, then don't generate RTF because PDF offers much better quality. And that's what I wanted to read: There's no need for all that TOC-ing, page number citation and whatsoever. Therefore also indenting makes no sense, esp. when nesting blocks, tables and lists. Mkay, there should be a small amount of space between a list item and it's bullet, but for editing you don't need any formatting attributes - what makes it a lot easier. What's exactly the problem with graphics? We've got pretty good support for many cases, even SVG now. I was only talking about the current RTF export. AFAIK GIFs are not rendered (there was an annoying exception string inside the document). GIF: The LZW patents are expired but still it's a good idea to forget GIF. The legal side is still less than clear. But PDF «understands» GIFs, so I can use them. Should be the same with RTF, and the only thing I'll do is reading them and transform into a RTF-compatible format...if it's not legal I won't do this... PDF doesn't understand GIFs. Images are converted from GIF to a generic bitmap format supported by PDF. In the case of RTF output this code hasn't been written, yet. Patches welcome. That's what I wanted to hear, too. RTF does support referenced images. So there ought to be a switch (render to the document, use references) ...if someone implements that switch. me got list - ugh! Over all, your post seems to address topics which, as far as I know, are mostly solved, so I'm
Re: Re: RTF, nested tables, context enhancement - status
- original Nachricht Betreff: Re: RTF, nested tables, context enhancement - status Gesendet: Mo 22 Mai 2006 22:30:07 CEST Von: Jeremias Maerki[EMAIL PROTECTED] page-number-citation and page numbering: Both work to at least a certain degree. Can you elaborate on the problems you're seeing? RTF does not know any «citation», so you need to write a character '2', if you want a link to display a page information refering to page '2'. For example an index at the end of the document does not know, which page explains «Barcode» and all links will show a question mark. I thought about that last night (while cruising through the PDF-renderer to compare my table width «guessing» with the already implemented one) and draw the following conclusion: Fact 1: RTF knows page breaks Fact 2: RTF is page-oriented Fact 3: RTF aligns elements absolute Fact 4: RTF does not know anything about the document's structuring Conclusion: RTF differs not that much from PDF-rendering (only written tokens are a bit different) - Use the PDF-layout management system and add a RTF-writer. So RTF would look exactly like all PDFs. And there's only a slight difference from Office-generated RTFs: page breaks after every page. What's exactly the problem with graphics? We've got pretty good support for many cases, even SVG now. I was only talking about the current RTF export. AFAIK GIFs are not rendered (there was an annoying exception string inside the document). GIF: The LZW patents are expired but still it's a good idea to forget GIF. The legal side is still less than clear. But PDF «understands» GIFs, so I can use them. Should be the same with RTF, and the only thing I'll do is reading them and transform into a RTF-compatible format...if it's not legal I won't do this... RTF does support referenced images. So there ought to be a switch (render to the document, use references) Over all, your post seems to address topics which, as far as I know, are mostly solved, so I'm not really sure what you're after. Maybe if you'd show the problems you're trying to address with examples I only wanted to check any progress, maybe I forgot some important fact or any discussion. But the referencing of page-number-citation is one problem (we already discussed this in February), nesting tables, indenting...everything which needs structures inside structures (a block inside a block, a table inside a block, a block inside a table...) Anyway, we're looking forward to any patches against FOP SVN Trunk you might have. At any rate, you'd have problems committing anything to the repository without write access. That privilege will need to be earned first. ;-) I know, therefore the review-strategy and «restructuring» the RTF-renderer will break it for a while (compiles, but does not produce any usable document). By now it's just transforming FOP-events to RTF-tags and I ran into problems which were solved with the new FOP-code (more effective memory usage) but seemed to be necessary (e.g. a table's width can only be determined if all columns were parsed, therefore you need to save previous column objects and by nesting tables it gets quite heavy [tried to experiment a bit with auto-table-layout, so you need all the rows, too]) -- Verlieben Sie sich mit Deutschlands größter Partneragentur für langfristige Beziehungen. Machen Sie den ersten Schritt. www.freenet.parship.de/?source=webmailfooter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fo:instream-foreign-object does not work with svg:rects and Barcode4j+FOP cut off barcodes
Hi there, I've tried to render barcodes into pdf documents by using fop 0.20.5, fo:instream-foreign-object and barcode4j (release from 2004). It works fine if I paste the barcode4j-output into the fo-document. When using the extension (barcode-tags inside instream-foreign-object) the barcode gets chopped of (12 characters, 7 or 8 are shown). So I could work around this by inserting the svg into the foreign-object-tag. It gets really weird if I upgrade from 0.20.5 to 0.91 or 0.92. In this case batik complains about missing width-attributes from svg:rect-tags, but they're definitely there (just took the same snippet as with 0.20.5). So I took an example from the homepage (http://xmlgraphics.apache.org/fop/dev/fo/embedding.fo) and the same error message occurs (instead of the funky tiger *g*). Any suggestions, sollutions, recommendations? (To be honest: I did not browse the archive and think nobody ran over this problem, due to the barcode-news and the missing Jan2006-release and the unparsable examples.) Thanks so far... -- freenet.de sucht den schlauesten Landkreis Deutschlands. Mitquizzen, fuer Ihren Kreis punkten und attraktive Preise gewinnen! http://www.herrderkreise.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RTF, nested tables, context enhancement - status
Hi there, I was quite busy with other tasks and followed the mailing list only if there were RTF-questions. I'm still working on that RTF-thingy, to get it working again (local *g*) and there'll be some major changes and serious limitations. Page numbering, linking and tables for layout won't work for fancy formatting. I assume, that RTF is not the most important part of FOP and only for post processing with Micros~1-tools. If there are other opinions, let me know, before planning major changes. Basically RTF is a bastard between outlining and streaming format, that's why some neet features cannot be done (page-number-citation, pages are rendered in the viewer, not in the document) and I'll remove that code (additional warning-option can be switched on). Nested tables (and graphics) are definitely hard work. All graphics will be embedded bitmaps (it should be possible to convert GIFs, any copyright issues? I won't write GIF images but convert them like PNG-files) and maybe there's an refer-option, I'll have to find out, if RTF supports referenced images (another additional parameter). Nested tables will be a quite dirty hack. RTF does not support nested tables and there must be a transformation from nested tables to a table with additional columns. Another interesting fact is RTF's limitation to fixed widths, no proportional widths are allowed. Here I'll have to insert some code (maybe some remember the nested PercentageContexts) which basically does the same as PDF's LayoutManager (talked about more abstract PercentageContext being able to have a parent to be able to calculate remaing width, indenting and margins up to this context). I also found some comments like «maybe configurable?» with some Office-version-dependant corrections. I'll add some more configuration parameters for RTF rendering. I dunno when this will be finished and in status «testing», but end of June is quite realistic. So there's no necessity to branch anything (and merge again). And I won't commit it to the repository but forward it as tar.gz to others who want to test it (kinda review). -- freenet.de sucht den schlauesten Landkreis Deutschlands. Mitquizzen, fuer Ihren Kreis punkten und attraktive Preise gewinnen! http://www.herrderkreise.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: fo:instream-foreign-object does not work with svg:rects and Barcode4j+FOP cut off barcodes
- original Nachricht Betreff: Re: fo:instream-foreign-object does not work with svg:rects and Barcode4j+FOP cut off barcodes Gesendet: Mo 22 Mai 2006 22:15:31 CEST Von: Jeremias Maerki[EMAIL PROTECTED] On 22.05.2006 16:37:02 b.ohnsorg wrote: Hi there, I've tried to render barcodes into pdf documents by using fop 0.20.5, fo:instream-foreign-object and barcode4j (release from 2004). It works fine if I paste the barcode4j-output into the fo-document. When using the extension (barcode-tags inside instream-foreign-object) the barcode gets chopped of (12 characters, 7 or 8 are shown). How does the barcode tag look like? I'm not aware of any problems like you describe with Barcode4J. Please give me an FO file so I can reproduce. The FO-file is structured like one of the examples, a table to align some blocks of information and a cell containing a fo:instream-foreign-object with a single barcode-tag including the String (Something like T123456789GD). The barcode is exactly 30.3mm long and I can see only 20mm (approximately). There are no width-attributes neither inside fo:instream... (not supported, too) nor in any of the barcode tags. And as said before: If I insert the SVG-snippet rather than using the barcode-tags it works fine, all 30.3mm are visible...I'll get an FO-example...need to send it from work back home... Hehe, the missing width attribute problem is not new: http://xmlgraphics.apache.org/fop/faq.html#svg-attribute-required I'm using the non-JDK-Xalan for processing Docbooks, won't be that hard to substitute it for FOP, too. I should stick first to the FAQs, thanks... Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- original Nachricht Ende 1 Million Singles in Ihrer Nahe. Finden Sie Ihren Traumpartner bei Deutschlands beliebteste Partnerboerse: http://singles.freenet.de/index.html?pid=11512 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: format-number incorrectly formatting number (fop 0.91beta)
Jeremias Maerki wrote: Right, not a FOP problem, but on the other side, XSL-FO also uses Java's DecimalFormat notation for formatting page numbers. Fortunately, we don't have page numbers that large. :-) Anyway, looks like Java has a problem with these numbers. Xalan probably simply uses the DecimalFormat and relies on Java to do everything right. Look at this: public class DecimalFormatTest extends TestCase { public void testDecimalFormat() throws Exception { DecimalFormat df = new DecimalFormat(###,###.00;###,###.00CR); //These check out ok: assertEquals(456,787.00CR, df.format(-456787.00)); assertEquals(890,123,456,787.00CR, df.format(-890123456787.00)); assertEquals(7,890,123,456,787.00CR, df.format(-7890123456787.00)); assertEquals(67,890,123,456,787.00CR, df.format(-67890123456787.00)); assertEquals(567,890,123,456,787.00CR, df.format(-567890123456787.00)); assertEquals(4,567,890,123,456,787.00CR, df.format(-4567890123456787.00)); assertEquals(34,567,890,123,456,788.00CR, df.format(-34567890123456788.00)); //The two next checks fail: assertEquals(34,567,890,123,456,786.00CR, df.format(-34567890123456786.00)); assertEquals(34,567,890,123,456,787.00CR, df.format(-34567890123456787.00)); } } To me it looks like Java's double datatype has trouble keeping up with precision with these large numbers. It's a problem with the limit of the precision of doubles, methinks. OP, if you need this level of precision, you can either use java.math.BigDecimal, if you really insist on courting trouble, or do what everyone *should* do with currency - represent it as a long in the smallest unit of the currency; in this case, one hundredth of a rupiah, whatever that is. Using floating point numbers to represent currency is fairly common, but nonetheless ridiculous for being common. Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Rtf Problem
Depends on my progress 'til the next release. Easter holidays are close and I think I'll take a first step towards the right direction and commit some changes (I'm not sure if I should branch this, no one else is working on that and RTF is not that commonly used)... - original Nachricht Betreff: Re: Rtf Problem Gesendet: Di 11 Apr 2006 17:05:20 CEST Von: Alessio[EMAIL PROTECTED] Ok, can i hope in the next release ? At 16.59 11/04/2006, Chris Bowditch wrote: Alessio wrote: Hi, i've a problem with nested trable in rtf, the question is that nested table fop's rtf format doesn't resolve. Is it a bug ? I don't think nested tables are supported in the RTF Renderer yet. FOP's RTF Renderer is not yet as mature as the PDF and PS Renderers. Chris - 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] --- original Nachricht Ende - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Questions on FOP-Trunk (text-align, keep-together, last-line-end-ind
Jeremias Maerki-2 wrote: On 24.03.2006 11:07:05 Joachim Pfaff wrote: ... I did never worked in an Open-Source project, but i think that I am not the worst java-coder. So what do you think how hard would it be, implementing it? Obviously, you don't need to implement last-line-end-indent, but if you want to take a stab at inline keep-together, that should also not be too difficult. The only problem is that you need to have some basic knowledge about the Knuth element model. Implementing keeps simply means switching off break possibilities in terms of the Knuth model. The absolutely essential basics are here: http://wiki.apache.org/xmlgraphics-fop/KnuthsModel But the paper referenced on that page helps much more. If you're serious about it I can point you to the right places in the code. Alternatively, see http://defoe.sourceforge.net/folio/knuth-plass.html. -- View this message in context: http://www.nabble.com/Questions-on-FOP-Trunk-%28text-align%2C-keep-together%2C-last-line-end-indent%29-t1335533.html#a3591321 Sent from the FOP - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hyphenation
Web Maestro Clay wrote: On Mar 23, 2006, at 11:13 PM, Peter B. West wrote: FYI Reworked hyphenation has been committed to Folio. It implements TeX's discretionary hyphen in the patterns and exceptions. Takes more space and runs more slowly. For the discretionary hyphens to work, the hyphenation pattern files will have to be changed to reflect this, which could be very useful for old German orthography, at least. HyphenationTree.hyphenate returns a WordHyphenator which includes the discretionary patterns. In fact, all inter-letter positions are marked by discretionary patterns, mostly degenerate. Oh, and it requires javax.xml.stream to build; i.e. Mustang. -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ Thank you for letting us know. What are the implications for folks running Java 1.3.x, 1.4.x or even 1.5 who can't upgrade to Mustang (Java 1.6)? They'll catch up. And until then, there are a number of implementations of stream parsing, including the reference implementation (RI) which started life with BEA, Woodstox, as well as the Sun implementation. Drop one of the other jars in, change the package name, and you should be in business. Peter -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hyphenation
Clay Leeds wrote: On Mar 24, 2006, at 10:44 AM, Peter B. West wrote: Web Maestro Clay wrote: Thank you for letting us know. What are the implications for folks running Java 1.3.x, 1.4.x or even 1.5 who can't upgrade to Mustang (Java 1.6)? They'll catch up. And until then, there are a number of implementations of stream parsing, including the reference implementation (RI) which started life with BEA, Woodstox, as well as the Sun implementation. Drop one of the other jars in, change the package name, and you should be in business. Peter I understand folks will catch up. But if the rest of FOP runs on 1.3.x or better (and this is one portion of FOP requires 1.6, then FOP 1.0--when it's released--would require JRE 1.6. I don't think this is an acceptable solution--not when FOP has what I believe to be an adequate hyphenation implementation which does not require Java 1.6. Does your HyphenationTree system have hooks, thereby making it merely an option for those who run on Java 1.6, as opposed to requiring FOP itself change its system requirements to JRE 1.6? Clay, I wasn't expecting that the HyphenationTree would find its way into FOP, not least because of the stream parsing requirement. It was strictly an FYI post for anyone who is interested in hyphenation issues. Peter -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hyphenation
FYI Reworked hyphenation has been committed to Folio. It implements TeX's discretionary hyphen in the patterns and exceptions. Takes more space and runs more slowly. For the discretionary hyphens to work, the hyphenation pattern files will have to be changed to reflect this, which could be very useful for old German orthography, at least. HyphenationTree.hyphenate returns a WordHyphenator which includes the discretionary patterns. In fact, all inter-letter positions are marked by discretionary patterns, mostly degenerate. Oh, and it requires javax.xml.stream to build; i.e. Mustang. -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: alternatives to floats in fop
Hi, I try to build a complex design with fop, the design-template can be seen here : http://yucca-net.de/data/gild.pdf After toying around with fop, I'm not sure if it is possible to realize this design with fop. I got alternating page-masters and the background-design working. I can format a fo:block with the design for the even page, I can format a fo:block with the design for the odd page, but I can't specify when to use which (the problem you can't see in the template is that it must be possible to put two or more workshops on one page). You know the size of the result, you know what to put where (which parts of information belong together) and you need to do this with fop...what about inserting the whole style as SVG? I mean, this one's really complex with images, colors and stuff, has nothing to do with floating text put with pinning objects to certain positions. Instead of working out a totally abstract concept which will work for handouts with thousands of workshops I'd concentrate on rendering these 5 or 6 pages perfect and as a single shot...Causes more work to think about how to do this with FO instead of focusing on the graphic aspect...(at least I'd draw it as a gif or png with some layers and ImageMagick, 'cause nobody will select pieces of text to copy them to the clipboard...so it can be a fullsized image). 1 Million Singles in Ihrer Nahe. Finden Sie Ihren Traumpartner bei Deutschlands beliebtester Partnerboerse: http://singles.freenet.de/index.html?pid=11512 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Create an SVG File.
OpenOffice is able to export vector graphics as SVG (embedded images too *g*) - original Nachricht Betreff: How to Create an SVG File. Gesendet: Mo 20 Mär 2006 05:32:24 CET Von: [EMAIL PROTECTED] How to create an SVG file, Can anybody show some example, or any tool is available ?? Regards Eugene * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * The information contained in this message is legally privileged and confidential information intended only for the use of the addressed individual or entity indicated in this message (or responsible for delivery of the message to such person). It must not be read, copied, disclosed, distributed or used by any person other than the addressee. Unauthorised use, disclosure or copying is strictly prohibited and may be unlawful. Opinions, conclusions and other information on this message that do not relate to the official business of any of the constituent companies of the SANMAR GROUP shall be understood as neither given nor endorsed by the Group. If you have received this message in error, you should destroy this message and kindly notify the sender by e-mail. Thank you. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- original Nachricht Ende - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Left and top border treated differently
I asked about this as a side question in another thread but got no reply, so I'm asking again: When I put a block-container to absolute-position=absolute left=0mm top=0mm and give it a border, then the left border is outside of the page area whereas the top border is inside of the page area. I'm surprised that they are treated differently. I'd have expected either both borders on the page or off the page. Is that a FOP bug or yet another one of those subtleties that make the FO specs so difficult to grasp completely? MSB -- God is real, unless declared integer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excess space between top border and content
On Fri, 17 Mar 2006 15:45:56 +0100 Pascal Sancho [EMAIL PROTECTED] wrote: Hi, Some weeks ago, someone gave on this list (I don't remember who, sorry) a solution: You just need to set both font-size and line-height properties to 0pt. Because line-height property defaults to 1.2 x font-size, you don't need to explicitely set line-height property. Thanks. That seems to work. Is this a workaround for a FOP problem or is this how the FO specs are supposed to be interpreted? MSB -- Entropy requires no maintenance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Excess space between top border and content
I'm trying to absolutely position an image on a page. I use the following construction block-container absolute-position=absolute left=... top=... width=... height=...blockexternal-graphic vertical-align=top src=url(...) content-width=... content-height=... //block/block-container However I just can't get the image into the top-left corner of the block-container. FOP always puts some space between the image and the top border. The attached files demonstrate the problem. Expected output would have the little black square touch the left-border as well as the top border. Actual output as can be seen in the PDF has the little square touch only the left border. Is this a bug in FOP or am I doing something wrong? I'm using FOP-0.91beta. Another strange thing (related?) is that FOP puts the left border of the block-container outside of the page area but puts the top-border inside the page area. I haven't checked the FO specs on whether the borders are supposed to be drawn outside or inside the coordinates left/top/width/height, but I would have expected left and top border to behave the same, so that for a block-container located at 0,0 I would either see left and top or neither border. MSB -- The most simple solutions are the most difficult to find. bug.fo Description: Binary data blackdot.png Description: PNG image bug.pdf Description: Adobe PDF document - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Optional hyphens in XSL-FO
Jeremias Maerki wrote: I think what you mean is soft hyphen (U+00AD) in Unicode (shy; in HTML) [1]. The problem is that this character is not yet treated as it should be in Apache FOP. TextLayoutManager would need to be extended to handle it. Basically, the same Knuth elements need to be generated as for the hyphenation points and the character needs to be recognized as break character. Shouldn't be too hard to implement. Anyone want to try? [1] http://en.wikipedia.org/wiki/Hyphen_%28punctuation%29 Hmmm http://www.cs.tut.fi/~jkorpela/shy.html On 17.03.2006 11:42:55 Sascha Schmidt wrote: Hi FOPies, I'm wondering if optional hyphen (like = in Latex) are included in the XSL-FO specification, I couldn't find anything. :-( My product is converting RTF into XSL-FO and since RTF can contain optional hyphens, we want to keep them in XSL-FO (if hyphenation is set to true). I know that this question is not really FOP related, but maybe somebody of you has an idea? Thanks and cheers, Sascha Peter -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table size spanning pages
- original Nachricht Betreff: Table size spanning pages Gesendet: Di 14 Mär 2006 15:13:22 CET Von: Noll,Jeffrey T HS[EMAIL PROTECTED] I've run into a problem with formatting a table for an invoice. What I'm looking to do is for the table footer to be placed in the same location on the last page of the invoice. IE: the total invoice value and summary notes should be placed 1 from the bottom of the page. What's happening now is that the footer is getting printed whever the table leaves off. The footer is static content defined for every page of a page flow (as well as the header is). So if you include some value into the footer, it will occur on every page of the flow, containing your table. Maybe the table is 3 pages long, which leads to the total sum being displayed on page 1, 2 and 3 - right!? If I'm right, you can't do this with footer (static content) and have to track the table's end. The best way to do this, is to insert an invisible footnote into the last column (or below it, if footnotes inside tables won't work). Now all you have to do is to format your footnote rendering the way you prefer it. This ensures, that the footnotes content will be rendered at the bottom of the last page (if included inside the last table row or underneath it). Is there any way to force it so that the table fills to a certain size on each page? I've thought about padding with table-rows but I can't figure out how many I need to add because of variable text lengths that wrap previous row sizes. This is not your task, this is FOP's job *g*. I'm thinking about another way... Any advice on how to handle this? When paging through invoices people would like to have the location of table footer in the same location. Mkay, another way would be to split up the table into fixed sized chunks. If you know, that the maximum length of a table needs 25 table rows, you could split after every 25 lines, format your footer the way you like it (as static content) and stuff every table into it's own page flow. Both sollutions are not very fancy, but they'll do it... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: Infinite loop with FOP 0.20.5
- original Nachricht Betreff: RE: Infinite loop with FOP 0.20.5 Gesendet: Mo 13 Mär 2006 17:19:20 CET Von: Rymasz Jacky[EMAIL PROTECTED] [...] It does depend on the exact XSL-FO, but I would say 0.91 is much better at detecting over constrained documents such as yours. However, the outcome may still be an error message, rather than falling back to breaking the FO when you've requested that it be kept together. But an error message is an improvement on an infinite loop :) RuntimeException, to be more specific. I ran into it when inserting a larger image (it was horribly scaled, should fit on a single A4 page but only the upper left corner was displayed [in RTF]). FOP 0.91 finished after 50 attempts to insert the image. [...] Ihr Traumpartner ist nur einen Klick entfernt. 1 Million Singles warten auf Sie in Deutschlands beliebtester Partnerboerse: http://singles.freenet.de/index.html?pid=11512 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hello, about fop
- original Nachricht Betreff: Hello, about fop Gesendet: Mo 06 Mär 2006 23:39:57 CET Von: chinlu chinawa[EMAIL PROTECTED] I understand dockbook/XML-XSLT/SGML-DSSSL and it's customization layers as a good way of working, although I'd like an expert to advise me. http://www.sagehill.net/docbookxsl/index.html I'd be working on a pdf output basis or any other format that would be better for a press to work with. I'm within a linux system, and have no troubles at all when starting to learn all over again, tex or any other format any one could advise me as the most proffesional one when dealing with presses (is that how you call those places that actually print out your book, isn't it?), sorry my english anyway. Dunno what this all about, I only use fop 0.91, even on a HP-UX 11 and I also rendered fancy svg into PDF-outputs. My only advice would be: OpenOffice-Export As «SVG»-insert into FO (or docbook-resource, have a look at the mediaobject) and run fop. Maybe it's not the right way to design flyers and graphical complex structures. Therefore leave the fo-step and export directly from OpenOffice...(if it runs on your box, at all). TeX and LaTeX is a bit more complicated, try starting with LyX, if it compiles/runs on your glibc-whatever *g* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: RTF and table/column widths
- original Nachricht Betreff: Re: RTF and table/column widths Gesendet: Mi 01 Mär 2006 00:54:40 CET Von: Paul Tremblay[EMAIL PROTECTED] I've written an rtf2xml program Now you're on my list *g* http://rtf2xml.sourceforge.net/ I'll take this into consideration [...] [...] that I wonder if in the future support for this format should be dropped altogether? I'm sure RTF support is important because of RTF's universality, I totally agree, but some folks can't deal with documents in a platform independent format and only rendering for delivery or printing...they're stuck with WYSIWYG. but it would seem that developers' time might be better spend on developing an Open Office format? I think it's not that hard to transform FO (XML) to OpenDocument (XML), needs twiddly fingers for all those fancy tags *g* I realize that my suggestion might come across as someone ungrateful for all the work of the fop team. I don't mean it to be so... I got it the right way, I dislike RTF too, but as said before, not everbody's got a Adobe Writer License or wants to learn how to use a XML editor. It's not about cutting down possibilities but to communicate disadvantages of certain decisions and advantages of the others. For writing docbook I need nothing more than a vi, I don't care what it looks like, 'cause I know this is the last part of editing a document. Again: not everbody's used to organize work logically, therefore they need unlogical ways of saving their thoughts...that's what I'm (we're) coding for. 1 Million Singles in Ihrer Nahe. Finden Sie Ihren Traumpartner bei Deutschlands beliebtester Partnerboerse: http://singles.freenet.de/index.html?pid=11512 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: fop trunk svg problems
- original Nachricht Betreff: Re: fop trunk svg problems Gesendet: Fr 24 Feb 2006 11:56:59 CET Von: Jeremias Maerki[EMAIL PROTECTED] Horrible! Here's what I found out: It's Sun's fault. :-) Mostly, anyway. ...so why is mine working? (The only difference is that I use blackdown-java, maybe the use a better xalan version. At the office I only use the endorsed mechanism due to the fact, that we're only allowed to use Xalan as XSLT-proc. Additionally I have a preceeding DocBook-FO-step which uses a separate Xalan lib...and so on) Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken www.klarmobil.de/index.html?pid=73025 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: fop trunk svg problems
- original Nachricht Betreff: Re: fop trunk svg problems Gesendet: Fr 24 Feb 2006 07:42:20 CET Von: Jason R Briggs[EMAIL PROTECTED] I meant trunk as in HEAD (i.e. the latest code in subversion). I know 'bout the difference of trunk and branch as well as the synonym meaning of trunk (subversion or revision control mechanism) and HEAD (default cvs tag). And 0.20.5 is trunk (or HEAD) and 0.91beta is released from the fop_90 branch. I should have added that blackdown jdk explicitly (implicit with gentoo). Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken www.klarmobil.de/index.html?pid=73025 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: fop trunk svg problems
- original Nachricht Betreff: Re: fop trunk svg problems Gesendet: Fr 24 Feb 2006 12:44:58 CET Von: Chris Bowditch[EMAIL PROTECTED] I'm not sure I understand you. 0.20.5 is released from a Subversion branch, whilst the new code 0.9x is released from Subversion head. [...] had a look at the graphics, I was totally wrong It sounds like you are saying it the wrong way round. Does not only sound like...was wrong, sorry for that... Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- original Nachricht Ende Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken www.klarmobil.de/index.html?pid=73025 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: RTF and table/column widths
I had a closer look at the RTF results and I found two basic problems: 1. If the table has a indent of 0, the RTF-table does not copy this attribute (il0) to every table row (trowd). From the table cell's point of view it's row does not have an indent, so it does not look at the table's parameter. Therefore indenting any paragraph wrapping the table causes all the cells to inherit this indenting. So all the cell's content is not displayed at the left border, only shifted right by it's padding, but by the preceeding paragraph's indent. Just insert a il0 (or il+cell.getIndent(RTFWidthContext) after trowd and it resets the indent. 2. When creating an index, all the index terms are listed but neither their page numbers occurs, nor is the link right (but there's a link). If there's enough time I could fix the deferred references, too... (A less important fact is, that list bullets are not rendered properly, I had a question mark instead of a bullet. Somewhere I have the sample code for rendering fancy bullets to RTF...) The other problem I described in the last mail (including pictures causes PercentageContext-Exception everytime) was a docbook related problem. If in docbook a table (yes, table ... wrong conclusion) column has the proportional width 1 this value is not rendered to the FO-document. Due to this little optimization the column's width is auto by default. (This default auto caused the problem, 'cause replaced only visible column width definitions.) Tomorrow I'll deliver the promised perl scripts a shell wrapper. With these little gadgets I could transform every FO to RTF, only problem 2. remains. I'll also post some RTF results for illustration. If you like it, I'll start coding into the RTF export classes. BTW, why doesn't RTF support GIFs? PDF does so and I see no difference, according to licenses. Nevertheless the RTF export is pretty cool, if you write the FO a bit more careful. Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken www.klarmobil.de/index.html?pid=73025 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop trunk svg problems
- original Nachricht Betreff: fop trunk svg problems Gesendet: Do 23 Feb 2006 20:44:55 CET Von: Jason R Briggs[EMAIL PROTECTED] Anyone else experiencing problems with SVG with the trunk version of fop? nope (fop 0.20.5, batik 1.5.1, gentoo linux) For example, the FO below works perfectly in 0.91beta, but doesn't throws an error (see below FO) in the latest trunk version. See: http://krachlattenpaul.homelinux.org/fop/circle_exception.* for perfectly rendered pdf (with a small circle in the upper left corner) Unfortunately I can't use 0.91 because I have some really odd layout problems that completely vanish in trunk. Maybe you post this too and I'm sure, somebody's got a sollution for this 1 Million Singles in Ihrer Nahe. Finden Sie Ihren Traumpartner bei Deutschlands beliebtester Partnerboerse: http://singles.freenet.de/index.html?pid=11512 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: fop beta performance
Me again with the promised stats. I've created larger Document (39 pages PDF result) with hardcore referencing (index terms, toc for headings, tables, lists and images) and 0.91 is twice as slow as 0.20. But the major resource consumption may be caused by heavy logging activity (debuggin, IO on stdout). So it's not time for any measurement. Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken www.klarmobil.de/index.html?pid=73025
Re: break-after page
- original Nachricht Betreff: break-after page Gesendet: Mi 22 Feb 2006 22:31:41 CET Von: Will Peterson[EMAIL PROTECTED] I'm using the FOP 0.91beta. Whenever I use the break-after=page in a block, any document after that point does NOT get rendered after that point. It inserts the page break and then the rest is gone. If I render to RTF, the page break is not a problem (but does not appear to be inserted) For example the following line would cause any XSL below it to be ignored. fo:block xmlns:fo=http://www.w3.org/1999/XSL/Format; break-after=page/ Any ideas on what is going on here? Thanks. I confirm, this happens with every block until the next fo:page-sequence. See: http://krachlattenpaul.homelinux.org/fop/simple90_break.fo.xml (line 1192) and the resulting PDF: http://krachlattenpaul.homelinux.org/fop/simple90_break.pdf (on page 4 the code sample is missing) http://krachlattenpaul.homelinux.org/fop/simple90.pdf (here the code sample is present) Maybe opening a fo:page-sequence instead of breaking with the block works around this (the chapters in the sample documents start on new pages). --- original Nachricht Ende 1 Million Singles in Ihrer Nahe. Finden Sie Ihren Traumpartner bei Deutschlands beliebtester Partnerboerse: http://singles.freenet.de/index.html?pid=11512 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: fop beta performance
- original Nachricht Betreff: Re: fop beta performance Gesendet: Mi 22 Feb 2006 21:47:29 CET Von: J.Pietschmann[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've created larger Document (39 pages PDF result)... The XSL list owner recently posted this link http://www.idealliance.org/proceedings/xml03/slides/xslfoshowcase/index.html Pathetic, after 78 pages fop0.20.5 quits with OutOfMemoryException (without vm tuning), I could create Sample[1456] out of the box, the others raise errors. With 0.91 none converts properly, there're a lot of missing child elements. I'll try to fix it somehow, at least the large one. Has lowest priority for me. First of all I need to sleep, do that RTF-investigation and then there'll be benchmarking. THX to a page with several FO samples which could probably be used for benchmarking. It includes a very big file. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- original Nachricht Ende Noch allein? 1 Million Singles warten auf ein Date! Schnell Kontakt aufnehmen bei Deutschlands beliebtester Partnerboerse http://singles.freenet.de/index.html?pid=11512 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: RTF and table/column widths
- original Nachricht Betreff: Re: RTF and table/column widths Gesendet: Mo 20 Feb 2006 21:55:58 CET Von: Jeremias Maerki[EMAIL PROTECTED] Hey, we certainly don't mind if you look at the sources. That's pathetic, I could have coded it without your sources, but that would have needed a few days more *g*. On the contrary, we encourage people to look at it and to send in patches that help improve FOP. We're certainly reviewing the stuff that comes in. Sure, no prob, I hate cvs and totally dislike commiting to such repos' If you need any help to get started, just ask. The code-/design-level documentation may not be as extensive as you might wish sometimes, but there are always people around you can ask. Mkay, maybe there'll be a few minutes on thursday, at least friday's gonna be productive. So at least on monday you'll get either the first questions or patches. On 20.02.2006 21:21:39 b.ohnsorg wrote: Hi there, besides the stats my second mail and special offer. I really like that RTF-thingy and it's quite sophisticated documents. My RTF-XSLs were not that neat. I've hacked some workaround for the proportional widths coming from docbook transformations, but this is not really a good sollution. So if you don't mind, I'd like to have a look at the sources and decide, whether I have enough time for adding the necessary bits and bytes or not. When it comes to java implementation I'm quite experienced, after a few years of professional software development (sdk, j2ee). (Now I'm part of the management, operating revision control systems, that sort of thing and I'd like to return to the classics.) I think it's nothing more than looking for the source of the runtime exception, expand that code like the PDF export and there you go (something like document.getWidth()*node.getWidthPercentage(), basically). Hope there's enough documentation 'bout that and nobody out there being faster than me. I wrote some very basic RTF renderer half a year ago and had to cope with fancy tables, spannings and so on. Maybe there'll be some free border-collapse-give-away, if there's enough time *g*. Thanks so far... Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- original Nachricht Ende Ihr Traumpartner ist nur einen Klick entfernt. 1 Million Singles warten auf Sie in Deutschlands beliebtester Partnerboerse: http://singles.freenet.de/index.html?pid=11512 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: fop beta performance
Hi there, first mail from me from Germany, right now I'm quite busy. Here're some first stats: realusersys 0m21.679s 0m3.503s0m0.250s 0m33.323s 0m3.467s0m0.266s 0m24.552s 0m3.468s0m0.256s 0m23.106s 0m3.627s0m0.263s 0m30.597s 0m3.639s0m0.241s 0m6.114s0m3.647s0m0.236s First part is fop-0.20.5, second is fop-0.91.beta. Bot done on a 2GHz Athlon Gentoo Linux, Blackdown Java and approx. 300kByte FO-document. Tomorrow I'll send some better stats, even from a HP-UX multiprocessor machine, running native SUN JDK and documents 100pages. The stats above show no difference, due to less complexity of source document, [past your favorite geek-talk here]... I use FOP for about 3 years and I'm totally excited 'bout the new release. Funny gadgets are working now, esp. page links with docbook indexterms and RTF (yes, some still worship Micros~1 tools to copy and paste tables from manuals and release notes. IE 5.0 on NT 4.0 can't do nothing wrong the right way). - original Nachricht Betreff: Re: fop beta performance Gesendet: Mo 20 Feb 2006 11:42:19 CET Von: Jeremias Maerki[EMAIL PROTECTED] Find out for us! :-) I did some tests a few months ago and back then the new code was indeed a little faster. In the meantime, new features have found their way in and the situation may look differently. Note also, that there has been no performance optimization work in the layout engine, yet, like it was done for 0.20.5. On 20.02.2006 11:31:57 Jimmy Dixon wrote: Is the new FOP beta any faster than the previous release? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- original Nachricht Ende - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RTF and table/column widths
Hi there, besides the stats my second mail and special offer. I really like that RTF-thingy and it's quite sophisticated documents. My RTF-XSLs were not that neat. I've hacked some workaround for the proportional widths coming from docbook transformations, but this is not really a good sollution. So if you don't mind, I'd like to have a look at the sources and decide, whether I have enough time for adding the necessary bits and bytes or not. When it comes to java implementation I'm quite experienced, after a few years of professional software development (sdk, j2ee). (Now I'm part of the management, operating revision control systems, that sort of thing and I'd like to return to the classics.) I think it's nothing more than looking for the source of the runtime exception, expand that code like the PDF export and there you go (something like document.getWidth()*node.getWidthPercentage(), basically). Hope there's enough documentation 'bout that and nobody out there being faster than me. I wrote some very basic RTF renderer half a year ago and had to cope with fancy tables, spannings and so on. Maybe there'll be some free border-collapse-give-away, if there's enough time *g*. Thanks so far... - If I can't turn it off it's a bug. Noch allein? 1 Million Singles warten auf ein Date! Schnell Kontakt aufnehmen bei Deutschlands beliebtester Partnerboerse http://singles.freenet.de/index.html?pid=11512
background image
I need to draw a rounded rectangle around an area on a document. Setting the background-image property seems to be the way to go. What tools are best for generating the image? Background-image limits me pretty severely in what I can specify. Peter --- [This E-mail has been scanned for viruses but it is your responsibility to maintain up to date anti virus software on the device that you are currently using to read this email. ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: background image
Thanks for that. I have tried OpenOffice Draw, exporting to SVG, but Gimp doesn't like the result (it complains that no image size is specified.) In practiavl terms, do I need a border around the border-line I am drawing, so that I must make the target are a little larger to accomodate the border, or can I drwa to the edge of the image area? Does this depend on the tool? Peter Jeremias Maerki wrote: SVG images work nicely as background images. Just use a tool like Adobe Illustrator, CorelDraw or even Inkscape to create the SVG with a rounded rectangle. The only problem is that you need to know the exact size of the rectangle beforehand as you can't scale background images. Some manual tweaking of the SVG might even get you some more flexibility so that you could simply reuse the SVG by only having to adjust the size of the image. On 09.12.2005 11:03:52 Peter B. West wrote: I need to draw a rounded rectangle around an area on a document. Setting the background-image property seems to be the way to go. What tools are best for generating the image? Background-image limits me pretty severely in what I can specify. --- [This E-mail has been scanned for viruses but it is your responsibility to maintain up to date anti virus software on the device that you are currently using to read this email. ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
0.20.5 XP and SVG
I'm trying to output an SVG image as an fo:external-graphic. I'm getting the following: Exception in thread main java.lang.NoSuchMethodError: org.apache.batik.bridge. UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/w3c/dom/ Element;)Lorg/apache/batik/util/UnitProcessor$Context; at org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:107) at org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.jav a:85) at org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFact ory.java:129) at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181) at org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:18 8) Is this a classpath problem, is it not finding the image, or is it something else? Peter --- [This E-mail has been scanned for viruses but it is your responsibility to maintain up to date anti virus software on the device that you are currently using to read this email. ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 0.20.5 XP and SVG
Jeremias Maerki wrote: Make sure you're using the Batik version that comes with FOP 0.20.5. Newer versions of Batik have a backwards-incompatible change in the API. The alternative is to use the maintenance branch [1] where the necessary adjustments have been made. [1] http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain/ On 07.12.2005 11:27:04 Peter B. West wrote: I'm trying to output an SVG image as an fo:external-graphic. I'm getting the following: Exception in thread main java.lang.NoSuchMethodError: org.apache.batik.bridge. UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/w3c/dom/ Element;)Lorg/apache/batik/util/UnitProcessor$Context; at org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:107) at org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.jav a:85) at org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFact ory.java:129) at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181) at org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:18 8) Is this a classpath problem, is it not finding the image, or is it something else? Hi Jeremias, As far as I can tell, I'm using a standard 0.20.5 distribution. The script I'm using is calling the fop.bat script, and the classpath includes the lib/batik.jar from 0.20.5. ??? Peter --- [This E-mail has been scanned for viruses but it is your responsibility to maintain up to date anti virus software on the device that you are currently using to read this email. ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 0.20.5 XP and SVG
Peter B. West wrote: Jeremias Maerki wrote: Make sure you're using the Batik version that comes with FOP 0.20.5. Newer versions of Batik have a backwards-incompatible change in the API. The alternative is to use the maintenance branch [1] where the necessary adjustments have been made. [1] http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain/ On 07.12.2005 11:27:04 Peter B. West wrote: I'm trying to output an SVG image as an fo:external-graphic. I'm getting the following: Exception in thread main java.lang.NoSuchMethodError: org.apache.batik.bridge. UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/w3c/dom/ Element;)Lorg/apache/batik/util/UnitProcessor$Context; at org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:107) at org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.jav a:85) at org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFact ory.java:129) at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181) at org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:18 8) Is this a classpath problem, is it not finding the image, or is it something else? Hi Jeremias, As far as I can tell, I'm using a standard 0.20.5 distribution. The script I'm using is calling the fop.bat script, and the classpath includes the lib/batik.jar from 0.20.5. ??? Peter There is a local habit of dropping every jar that comes along into jre/lib/ext, including batik 1.6. That will be the problem. Peter --- [This E-mail has been scanned for viruses but it is your responsibility to maintain up to date anti virus software on the device that you are currently using to read this email. ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hello
Helo there, I´m using fop under a linux-debian box. I´ve been trying to get the trunk version of fop, from here: http://cvs.apache.org/snapshots/fop/ I´ve set up ant, and the last version of java sdk/jre. I´ve donwloaded the last two versions by now, which are: fop_20051021104642.tar.gz fop_20051021043611.tar.gz But when I build them up and try to use them, I get an error like this, more or less: No element mapping definition found for fox:outline I think (in my ignorance), this could be either because automatic-snapshots are not always working-products, or because I´m doing something wrong, although build-process seems to finish ok. Why I´m looking for a newer version than 0.20.5 is because I can use background-image, and some other properties seem to be already implemented, as seen here: http://xmlgraphics.apache.org/fop/compliance.html#fo-object-section Any comments are welcome. Kind Regards, __ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with fox:outline in FOP Trunk (was: Hello)
Hello again, Sorry about that, and thanks very much to both of you for your replies. I din´t say I´m using dockbook, together with xlstproc and fop. I´m just a newbie with all of this, but after your replies, I´ve managed to correct docbook-xsl sources to handle properly fo:bookmark-tree and it´s descendants. Now I´m getting another error wich has got something to do fo:static content asking for one or more block entries. I mean, what to do If I´d like to use fop´s latest snapshot + docbook as a tool-chain? Anywhere form where to get info about this specific issue? Also, Jeremias said the actual snapshot is broken due to long path names in this case, where can I find info on whether the actual snapshot is actually broken or not (and where), so I sync of all this and handle it and work always with latest versions? Kind Regards, --- Jeremias Maerki [EMAIL PROTECTED] escribió: The snapshots are currently broken due to long path names. But that's not the problem you're experiencing. The problem is that fox:outline [1] is not implemented in FOP Trunk anymore. It has been superseded by the new bookmark elements from XSL-FO 1.1 [2]. I wonder if we should add fox:outline again for backwards compatibility. Hmm. A little request: Please put a descriptive text in the subject line next time. Thanks. [1] http://xmlgraphics.apache.org/fop/extensions.html#bookmarks [2] http://www.w3.org/TR/xsl11/#d0e14085 On 21.10.2005 16:43:37 a b wrote: Helo there, I´m using fop under a linux-debian box. I´ve been trying to get the trunk version of fop, from here: http://cvs.apache.org/snapshots/fop/ I´ve set up ant, and the last version of java sdk/jre. I´ve donwloaded the last two versions by now, which are: fop_20051021104642.tar.gz fop_20051021043611.tar.gz But when I build them up and try to use them, I get an error like this, more or less: No element mapping definition found for fox:outline I think (in my ignorance), this could be either because automatic-snapshots are not always working-products, or because I´m doing something wrong, although build-process seems to finish ok. Why I´m looking for a newer version than 0.20.5 is because I can use background-image, and some other properties seem to be already implemented, as seen here: http://xmlgraphics.apache.org/fop/compliance.html#fo-object-section Any comments are welcome. Kind Regards, Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Uncommon NoClassDefFoundError exception
Glen Mazza wrote: (BTW, does anyone know if FOP runs--or runs well--on Gentoo[5]? That distribution is becoming increasingly of interest to me.) Glen, An ebuild of fop 0.20.5 is available on gentoo. Peter -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ http://folio.bkbits.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]