Re: Font Metrics
Mark, Would you be willing to write up a concise document for this? That way one won't have to surf the list. Also, if there are any other notes and/or tips you can provide, it would be very helpful. You might want to modify the Subject: [New Subject (was Re: Font Metrics) to make the subject more clear. Thanks! On Nov 11, 2004, at 5:51 AM, Mark Williams wrote: Andreas, Jarred the necessary classes for a TTF converter. Just in case anyone refers to this thread in the future, you also need the tools\io classes. Thanks again, Mark - Original Message - From: Andreas L. Delmelle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 6:11 PM Subject: RE: Font Metrics -Original Message- From: Mark Williams [mailto:[EMAIL PROTECTED] Hi Mark, The fonts page on the apache fop web site contains the following info re generating font metrics files. snip / I would like to jar up the necessary classes for doing this (to be packaged with an ActiveX). Does anyone have a list of the classes that are necessary? IIC, then it should be sufficient to include (for FOP 0.20.5): - all classes in the org.apache.fop.fonts package - and of course the org.apache.fop.fonts.apps.TTFReader class If you don't need the functionality for type1 fonts, you obviously don't need to include that package, nor the PFMReader app. HTH! Greetz, Andreas - 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] Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font Metrics
On Nov 11, 2004, at 8:04 AM, Clay Leeds wrote: Mark, Would you be willing to write up a concise document for this? That way one won't have to surf the list. Also, if there are any other notes and/or tips you can provide, it would be very helpful. You might want to modify the Subject: [New Subject (was Re: Font Metrics) to make the subject more clear. Thanks! BTW, if you are willing to write up a concise document it would be better to attach it to a 'bug report'[1] with 'Component' set to 'documentation'. http://xml.apache.org/fop/bugs.html Thank you! Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having a font which is not embedded in the PDF
On Nov 10, 2004, at 1:21 PM, Jeremias Maerki wrote: Ask Jeremias Good name for a company. :-) http://www.askjeremias.com/ heh! nice! Anyway, as far as I can tell you can omit the embed-file for Type1 fonts if the name under which the font is registered matches a font that is registered in your operating system's font subsystem. For TrueType this doesn't work because currently FOP does something wrong with the (multibyte) character encodings. It may work if you're using an 8 bit encoding though I haven't tested. This encoding problem is fixed in Foray where omitting embed-file might work, though I haven't tested either. I've used non-embedded Type1 fonts so the PDF/PS file sizes stay small for high-volume processing. The fonts were installed directly in the printer's RIPs. What I'm looking is a place to update the docs ;-) I'll wait a bit before I do. On 10.11.2004 00:39:53 J.Pietschmann wrote: Clay Leeds wrote: Thank you for the info, Joerg. So, what does this look like? Is it something like this: Font declaration *with* embedding: font RENAME_FILE_TO_USE_metrics-file=FTL_.xml RENAME_FILE_TO_USE_kerning=yes embed-file=C:\myfonts\FTL_.pfb font-triplet name=FrutigerLight style=normal weight=normal/ /font Font declaration *without* embedding: font RENAME_FILE_TO_USE_metrics-file=FTL_.xml RENAME_FILE_TO_USE_kerning=yes font-triplet name=FrutigerLight style=normal weight=normal/ /font Is that correct? Yes. It would be good to add this information to the FOP Fonts page. This additional Adobe Acrobat/Reader information would be good to add to either a NOTE or a WARNING breakout box. I'll see what I can do. The info about the Adobe Type Manager is from someone else. Ask Jeremias, or search the list archive. I never got PDF with user fonts which were not embedded working. Other PDF tools can do this (i.e. put some info about the font into the PDF which causes Acrobat Reader to ask the OS for fonts). Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSL-FO Specification
On Nov 9, 2004, at 7:30 AM, Balamuraly wrote: Hello All, We are very interested in XSL-FO concepts. Can you please clarify the Specification version of XSL-FO as per W3C. What are the limitations in this version? These questions are answered in detail here[1]. When is the next version is going to be released? That has not yet been clearly defined, although a search of the fop-dev archives (see the FOP Mailing List page[2]) will provide more insight. What are the points that will be addressed in the next version in the current limitations? You may find information on this topic by reading the FOP Status page[3]. Also, the fop-dev archives may provide more insight here, as well. Finally the FOP Development: General Information page[4] has even more information. It will be really helpful if you give this details. thanks and regards, bala I hope this helps you find what you are looking for. We welcome contributors, so if you are interested in contributing, please let us know. On a side note, I'll probably be adding a link to the [EMAIL PROTECTED] mailing list to our FOP Resources page. I see you already have posts from some of our committers there. [1] http://xml.apache.org/fop/compliance.html [2] http://xml.apache.org/fop/maillist.html [3] http://xml.apache.org/fop/status.html [4] http://xml.apache.org/fop/dev/ Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSL-FO Specification
On Nov 9, 2004, at 8:24 AM, Clay Leeds wrote: snip On a side note, I'll probably be adding a link to the [EMAIL PROTECTED] mailing list to our FOP Resources page. I see you already have posts from some of our committers there. [1] http://xml.apache.org/fop/compliance.html [2] http://xml.apache.org/fop/maillist.html I see you're already on this page! :-) I'll be adding you (and the other Mailing Lists to the FOP Resources page. [3] http://xml.apache.org/fop/status.html [4] http://xml.apache.org/fop/dev/ Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having a font which is not embedded in the PDF
On Nov 5, 2004, at 3:27 AM, Chanaka Amarasekara wrote: Hi, I want to create a PDF but the fonts should not be embedded to the PDF. When I open the PDF it should take the font from my default OS fonts folder (e.g. C:\Winnt\Fonts). With the attached userconfig.xml and the font metric (arial.xml), I'm able to create a PDF with the Arial font, but this is always embedded in to the created PDF. How can I created a PDF so that the font is not embedded in to PDF and it will take the font from the OS fonts folder? (assuming that the fonts are installed in the machine) Have you tried creating the PDF file without using userconfig.xml font metrics files? Perhaps that will just work? If you must use a font different from Base-14 Fonts[1], it may be necessary to embed the font to ensure the integrity of page displayed is maintained. The Base-14 Fonts[1] defined in the Adobe PDF Spec are: Helvetica (normal, bold, italic, bold italic), Times (normal, bold, italic, bold italic), Courier (normal, bold, italic, bold italic), Symbol and ZapfDingbats [1] http://xml.apache.org/fop/fonts.html#Base-14+Fonts Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bold font
On Nov 4, 2004, at 8:29 AM, Mark Donnelly wrote: snip block font-style=boldblah blah blah/block /snip That should be: block font-weight=boldblah blah blah/block /snip Any ideas how I might get this to work? It works fine for a font-style=italic. Mark font-style=italic is correct for 'italic' Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the -buf option in 0.20.5
On Oct 28, 2004, at 4:15 AM, Ben Sewell wrote: Hi, I've done a lot of searching of the mailing lists and other documentation on how to run fop for large files. I'd really like to use the -buf option, but I can't seem to get it to work; it doesn't understand it. I amm using the release 0.20.5 of fop, with an up-to-date Cygwin and Java j2re1.4.2_05. In particular, I run the command: fop.sh -buf buf_file sys_test_results.fo sys_test_results.pdf I've never heard of a '-buf buf_file' parameter for FOP. Are you trying to retain the intermediate 'fo' file? It doesn't look like it since you're transforming from *.fo instead of -xml *.xml -xsl *.xsl. However, if you are, that's what we use xalan.sh/.bat for, to check input[1]. If someone else understand what you're asking for, I'm sure they'll respond. If not, perhaps it would help for you to explain what you're doing, what output you expect, and what output you get. [1] http://www.apache.org/~clay/xml-fop/running.html#check-input Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSLTInputHandler questions
Manoj, Please do not cross-post to FOP-DEV and FOP-USER. Since all FOP-DEVs read both lists, FOP-USER is adequate for posting your questions. The FOP-DEV mailing list is for FOP development. Unfortunately, I don't know the answer to your question (sorry!), so I can't respond, but someone probably will shortly. On Oct 25, 2004, at 11:51 AM, [EMAIL PROTECTED] wrote: Folks I am planning to use the following XSLTInputHandler constructor in an applet downloaded on the client side. Before I use it I have the following questions. public XSLTInputHandler(File xmlfile, File xsltfile) throws FOPException { } public XSLTInputHandler(String xmlURL, String xsltURL) throws FOPException { } public XSLTInputHandler(InputSource xmlSource, InputSource xsltSource) throws FOPException { } 1) Would a URL constructor passed as string like new XSLTInputHandler (new String(http://host:7011/web/myXML.xml;), new String(http://host:7011/web/myXSL.xsl;)) work ? 2) I read on some websites that org.apache.fop.apps.XSLTInputHandler(InputSource ,InputSource ) constructor doesnt work for InputSource and can only be used for String and File arguments? Have anyone made it work with InputSource arguments? 3) As the XSLTInputHandler is called on client side I want to read the XSL and XML files from app server. How should I go about reading the XSL,XML files from server? as inputstreams? Thanks Manoj Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XPath 2.0 XSLT 2.0
Andreas, Could you explain how one would 'plug in Saxon 7 instead' of Xalan for parsing? I looked in the FAQ, and only found this blurb[1]: Problems specific to a certain XSLT processor, like Xalan, Saxon or MSXML, should be handled by processor specific lists. This includes problems with deployment, processor specific extensions, suspected bugs and processor specific APIs. Note that JDK 1.4 comes with an XML parser and an XSLT processor which are older versions of Xerces and Xalan, respectively, and both have a number of annoying bugs. See $$$FIXME on how to use more recent versions or other packages instead. hehehe... looks like this entry needs to be updated, so whatever information can be provided could at least be in the mailing list archives until the FAQ and/or site is updated. ;-) [1] http://xml.apache.org/fop/faq.html#postquestions On Oct 20, 2004, at 8:43 AM, Andreas L. Delmelle wrote: -Original Message- From: MIDON ALEXIS [mailto:[EMAIL PROTECTED] I would like to know if FOP is compliant with XPath 2.0 XSLT 2.0. Yes and No. No, since FOP is by default distributed with Apache Xalan as XSLT Engine, and AFAICT Xalan does not yet implement XSLT 2.0. Yes, because if you like, you can plug in Saxon 7 instead, which does offer support for XSLT/XPath 2.0. Greetz, Andreas Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XPath 2.0 XSLT 2.0
On Oct 20, 2004, at 10:28 AM, Andreas L. Delmelle wrote: -Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Could you explain how one would 'plug in Saxon 7 instead' of Xalan for parsing? Maestro, Should be quite simple really: replace the Xalan jar in your JVM's 'lib/endorsed' directory with Saxon's jar. (Maybe to make sure all goes well, you could also replace it in FOP's own lib directory, then rebuild FOP, but IIRC this shouldn't be necessary...) Thank you Andreas! I'm sure future browsers for this issue will thank you! Would you be willing to write up some documentation on how to do this so I can add it to the FAQ as well as the Running page (unless it would be more appropriate on the Configuration page). Try it, and use the following in your XSLT to check: xsl:value-of select=system-property('xsl:vendor') / I haven't tried it yet as I haven't had the need. But I will flag this message (and use it to update the docs when I get the chance...). The theory: FOP never references classes in Xalan's own packages (org.apache.xalan.*). All Xalan does for us is offer an implementation for the javax.xml.transform.* API spec. Any provider of an implementation for these packages --Saxon, for example-- should work seamlessly with FOP. The javax.xml.transform API spec hasn't been altered in any way as a result of XSLT/XPath 2.0 --it didn't *need* to be, which is the whole point, of course... XSLT can continue to evolve, but the javax.xml.transform API should be generic enough to support possible changes. In the same fashion, one could opt to use an XML parser other than Xerces. We offer Xerces and Xalan because we can distribute them freely with FOP. (We could also have opted not to distribute *any* XML parser or XSLT engine, and leave it all up to the end-user, but this would needlessly complicate things --no more running FOP 'out-of-the-box' :-( ) Cheers, Andreas Thanks again for the education! Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XPath 2.0 XSLT 2.0
On Oct 20, 2004, at 11:41 AM, Clay Leeds wrote: On Oct 20, 2004, at 10:28 AM, Andreas L. Delmelle wrote: -Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Could you explain how one would 'plug in Saxon 7 instead' of Xalan for parsing? Maestro, Should be quite simple really: replace the Xalan jar in your JVM's 'lib/endorsed' directory with Saxon's jar. (Maybe to make sure all goes well, you could also replace it in FOP's own lib directory, then rebuild FOP, but IIRC this shouldn't be necessary...) Thank you Andreas! I'm sure future browsers for this issue will thank you! Would you be willing to write up some documentation on how to do this so I can add it to the FAQ as well as the Running page (unless it would be more appropriate on the Configuration page). Try it, and use the following in your XSLT to check: xsl:value-of select=system-property('xsl:vendor') / I haven't tried it yet as I haven't had the need. But I will flag this message (and use it to update the docs when I get the chance...). I suppose I could write the documentation myself, but I'm a bit behind in that regard, as I work through issues processing xml-fop's xdocs with forrest. I think I'm pretty close on that (and I'm getting help from the Forrest Team), but I'm/we're not there yet. One nice benefit, is that I've been doing a bunch of documentation (for my company and for Barcode4J) using forrest and the xdoc format. I'm now a lot more knowledgeable about forrest than I was before. Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: write in vertical mode
On Oct 18, 2004, at 11:09 AM, Jon Alegria Esarte wrote: How can i write in vertical mode in pdf using fop? You will probably have to either: 1. Write like: fo:blockt/fo:block fo:blockh/fo:block fo:blocki/fo:block fo:blocks/fo:block 2. Create an image of your text and place that on your page 3. Output the text using SVG[1] to create the effect you want. Make certain you configure your fonts correctly or the text could look ugly. Web Maestro Clay FOP 0.18 p.s. Wow! That's an old version! You may want to upgrade to a newer version[2], especially if you want to use SVG. [1] http://xml.apache.org/fop/graphics.html#svg [2] http://xml.apache.org/fop/download.html -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError while using FOP
On Oct 18, 2004, at 11:27 AM, Usha Kondaka wrote: hi folks when i am using fop -xsl filename -xml fileName -pdf fileName i am getting java.lang.OutOfMemoryError is any size limitation on xml file. can somebody help me in this. i will appreciate for that Cheers!!! It would help to know: - OS and version (Windows? Unix?) - Java version - FOP version Also, please provide us with the complete error you get. BTW, did you check the FAQ[1] which points to[2]? [1] http://xml.apache.org/fop/faq.html#OutOfMemoryException [2] http://xml.apache.org/fop/running.html#memory Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Avoiding footnote overflows on the last page
On Oct 16, 2004, at 3:55 AM, J.Pietschmann wrote: Thirugnanam, Kalusivalingam wrote: When we are trying to print all the foot notes for a report on the last page, the foot notes are not appearing. The footnotes appear only if the last page contains enough space for displaying all the footnotes. If the last page does not have enough space for displaying foot notes then all the footnotes are not appearing. Any help to make this to work is greatly appreciated. There is no way to handle footnotes on the last page properly in all situations. If you don't mind an empty page at the end, add an empty block with a forced page break at the end of the flow: fo:block break-before=page#160;/fo:block J.Pietschmann You could also turn this extra page into some sort of semi-important piece of information: This last page could include a copyright, contact info, bibliography, photo, disclaimer, etc. Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: my first question. graphic
On Oct 15, 2004, at 7:15 AM, Dionisio Ruiz de Zárate wrote: using this code it return well the graphic into the pdf file: fo:external-graphic border-after-color=#013A6C border-before-color=#013A6C border-end-color=#013A6C border-start-color=#013A6C color=#013a6c content-height=80px content-width=85px font-size=45px height=80px text-align=right width=85px space-before.optimum=4pt space-after.optimum=4pt xsl:attribute name=srcurl(' xsl:text disable-output-escaping=yesC:\html\pdf\certificadosCursos/ certLogo.gif/xsl:text ') /xsl:attribute /fo:external-graphic but i will pass to one linux machine and the image will be into the webapp root dir (/) and pdf/certificadosCursos/certLogo.gif but if i use: xsl:attribute name=srcurl(' xsl:text disable-output-escaping=yes/pdf/certificadosCursos/certLogo.gif/ xsl:text ') /xsl:attribute it doesn't return the file (the graphic). how can i solve this problem without use the absolute path (/home/user/html/)? is posible to load the imagen with une url (http://www.domain.com/pdf/certificadosCursos/certLogo.gif ?? thnaks A couple of things: I don't think you need to use the xsl:text disable0output-escaping.../ stuff. It should be fine to use fo:external-graphic border-after-color=#013A6C border-before-color=#013A6C border-end-color=#013A6C border-start-color=#013A6C color=#013a6c content-height=80px content-width=85px font-size=45px height=80px text-align=right width=85px space-before.optimum=4pt space-after.optimum=4pt xsl:attribute name=srcurl('/pdf/certificadosCursos/certLogo.gif')/xsl:attribute /fo:external-graphic or fo:external-graphic border-after-color=#013A6C border-before-color=#013A6C border-end-color=#013A6C border-start-color=#013A6C color=#013a6c content-height=80px content-width=85px font-size=45px height=80px text-align=right width=85px space-before.optimum=4pt space-after.optimum=4pt src=url('/pdf/certificadosCursos/certLogo.gif')/ Some other tips: - You can use shorthand for border-color - color, font-size, text-align are unnecessary - content-height content-width are not implemented So boil it all down, and you can use this: fo:external-graphic border-color=#013A6C height=80px width=85px space-before.optimum=4pt space-after.optimum=4pt src=url('/pdf/certificadosCursos/certLogo.gif')/ This should work on the linux box. One other thing you could to, is use a variable for the IMAGE_DIRECTORY then set the variable for each machine: (NOTE: xsl:variable elements must go near the top of xsl:stylesheet/ element, under xsl:include elements, but before xsl:template Search the web for more info) PC XSL-FO: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- varImagesDirectory | value used to set images/ directory on different machines -- xsl:variable name=varImagesDirectoryC:\html\pdf\certificadosCursos/xsl:variable Linux XSL-FO: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- varImagesDirectory | value used to set images/ directory on different machines -- xsl:variable name=varImagesDirectory/pdf/certificadosCursos/xsl:variable fo:external-graphic border-color=#013A6C height=80px width=85px space-before.optimum=4pt space-after.optimum=4pt src=url('{$varImagesDirectory}/certLogo.gif')/ Hope this helps! Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can use awt but not pdf
On Oct 15, 2004, at 2:19 PM, Carl A Joslin wrote: I am trying to create a pdf file from xsl and xml files but when I start fop nothing is printed on the screen and fop does not end. Fop also does not use any cpu resources when it freezes. I have tried with some of the other output formats and the only one that seems to work is awt. Any help is greatly accepted. Thank you in advance Carl What is the command line you send to FOP (if you use command line interface) or the call you make in Java? Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question concerning Xalan.
On Oct 14, 2004, at 10:18 AM, Johannes Franz wrote: Sorry but i am really a newbie: When i try your example i get the following error message: xsl:template match=/doc/foo redirect:write select='foo' position() '.html' I think that should be: redirect:write select='foo' + position() + '.html' foo-out xsl:apply-templates/ /foo-out /redirect:write /xsl:template java -cp xalan-2.4.1.jar;xerces-1.2.3.jar org.apache.xalan.xslt.Process -IN Redirect.xml -XSL Redirect.xsl -OUT Redirect.html -HTML [Fatal Error] Redirect.xsl:20:44: The reference to entity position must end with the ';' delimiter. Redirect.xsl; Line #20; Column #44; XSLT Error (javax.xml.transform.TransformerConfigurationException): javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The reference to entity position must end with the ';' delimiter. - Original Message - From: Jeremias Maerki [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 14, 2004 6:00 PM Subject: Re: Question concerning Xalan. Something like that maybe? xsl:template match=/doc/foo redirect:write select='foo' position() '.html' foo-out xsl:apply-templates/ /foo-out /redirect:write /xsl:template On 14.10.2004 17:18:25 Johannes Franz wrote: Hi, yeah this is exactly what i needed. But could you please help me with the following problem? I would like to write to write every childnote to a new file. If there are 4 Childnodes doc/foo he should write every childnote to one file: foo1.html foo2.html foo3.html foo4.html. Could someone give me example how to realize this? xsl:template match=/doc/foo redirect:write select=@file foo-out xsl:apply-templates/ /foo-out /redirect:write /xsl:template Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Web Maestro Clay -- Clay Leeds - [EMAIL PROTECTED] Webmaster/Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF: no border, file name
On Sep 24, 2004, at 4:41 AM, Johannes Wolfgang Woger wrote: Hi, my gernerated pdf file which I download form my printServlet, does not show any border: fo:region-body border=solid 2pt red/ is without effect. I don't know if this is it, but I always write mine as: fo:region-body border=2pt solid red/ Wait a minute. I don't know if you can add a @border to region-body. Can you place the border on a child fo:block of region-body? fo:region-body fo:block border=2pt solid red/ ... /fo:block /fo:region-body I can't help with the 2nd question. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [work] Re: Avery labels
On Sep 24, 2004, at 9:13 AM, Frank Daly wrote: Many thanks for your thoughtful reply but I can't get it to work. Surely someone has come across this problem before and found a solution. Frank Someone probably has. That's why Jeremias was directing you to the XSLT list where someone probably has already come up with a nifty solution to your problem. The FOP Mailing List page[1] has links to the XSLT List (hosted at Mulberry Tech)[2] where you can ask your question. Better yet, the FOP Resources page has a section called Books, Tutorials, Articles[3] which has links to many resources (online and otherwise), where you can probably find the answer to your question. I recommend Dave Pawson's excellent XSL FAQ[4] (which covers XSLT XSL-FO). Hope this helps! Web Maestro Clay [1] http://xml.apache.org/fop/maillist.html [2] http://www.mulberrytech.com/xsl/xsl-list [3] http://xml.apache.org/fop/resources.html#documents [4] http://www.dpawson.co.uk/xsl/xslfaq.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP Tools, Tips, Techniques and Examples
On Sep 23, 2004, at 12:20 AM, Holger Dehnhardt wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Neil, have a look at http://sourceforge.net/projects/documentserver/ There I set up a document-server which also has a modul to fax FOP generated documents with HylaFax. Even if the hole Documentserver might be to much for your purposes, you can look at the source of the HylaFax module. If you have further questions feel free to contact me. Holger If anyone has any other Tools, Tips, Techniques and/or Examples (or anything not listed there, but useful to the FOP ccommunity), please send a reply to this message. At the least, I could put a link to your project. If the code/source/binary is particularly useful, and has the proper license, we might even be able to distribute it with FOP (which would require an Apache Software License). Thanks! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Opening fop pdf in Internet Explorer
On Sep 23, 2004, at 3:54 AM, [EMAIL PROTECTED] wrote: Hi, I have a process that creates a PDF through FOP and stores it in Documentum (a document management service). When a user wishes to view the PDF it is streamed back via a servlet into IE, but IE cannot open it and the user is presented with a blank screen. To get around this we have to send it to a windows box and open and save it in acrobat and then stream it back. Our HTTP header includes the content type and length. Does anyone know why the fop only version does not open? thanks, Stuart Can you confirm that you've checked the FAQ[1] and that the problem isn't discussed here[2]? Thanks! Web Maestro Clay [1] http://xml.apache.org/fop/faq.html [2] http://xml.apache.org/fop/servlets.html#ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Placing text on bottom of region-body...
On Sep 21, 2004, at 2:33 AM, Johann Mattsson wrote: Hello all I am producing a document which may consists of 1 or more pages of same type, followed by 0 or more pages of another type, every page have a header and a footer. The last page of the first set of pages should have a certain text down on the bottom of that page, regardless of how much text it consists of otherwise. Im not certain how to produce such a FOP code to achieve this, i guess i somehow have to make a table or something that fills up the empty space in the page to get to the bottom on the page. But maybe someone have another idea or some input to give to me. Any input is welcome! Regards Johann M Sorry. I don't know the answer to this one, but perhaps it has something to do with Markers[1] and/or Footnotes[2]? Unfortunately, I'm not pointing to links on the internet of where to look, although a google search might be useful. Instead I'm pointing to example files included with FOP: [1] examples/fo/markers/ [2] examples/fo/footnotes/ Hope this helps! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sticking words
On Sep 21, 2004, at 6:34 AM, Micha Postupalski wrote: I have problem with FOP. Some time it sticks words in the generated PDF i.e. XSL-FO file fo:block start first second third stop /fo:block and in PDF I get: start firstsecond third stop or start first secondthirdstop Can any one tell me why ??? regards, plastic In my experience with PDF, this occurs only as an artifact of the 'zoom' value. If you print or zoom to 100%, you will not notice this problem. Can you confirm whether or not the problem is related to the Zoom value? However, when working with AWT/Print, I have noticed this problem occurring when using Java versions earlier than 1.4.1 (Sun) and 1.3 (IBM). Hope this helps! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Acrobat reader 6.0 question.
On Sep 16, 2004, at 4:30 PM, [EMAIL PROTECTED] wrote: I am creating many PDFs using XML/FOP and the resulting files are opened in one instance of acrobat reader. To print each PDF, I have to goto FILE PRINT for each document as acrobat prints only the active window at a time. Is there a way I can print all open docs in acrobat in one go? Thanks I suspect this is something to ask on the Acrobat list or find in the Acrobat docs[1]. I know they have Javascript capabilities, and printing could occur on launch (if the javascript is inserted into the PDF file after FOP is done making it using something like iText[2], since FOP doesn't insert Javascript). You don't have to use Acrobat. Perhaps you could build (or find) a Java-based PDF viewer which does what you want? Web Maestro Clay [1] Acrobat 6.0 SDK Documentation http://partners.adobe.com/asn/acrobat/docs.jsp [2] FOP Other Resources - PDF Post-processors (iText) http://xml.apache.org/fop/resources.html#products-pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: does FOP get progress?
On Sep 15, 2004, at 6:39 AM, Eclipse wrote: Hello, i have a probelm with keep Atribute with next. i hope somebody can tell me weather the FOP Project is still in progress. Regards. Sako. FOP is very much in active development, as can be seen by viewing the FOP-DEV mailing list archives[1]. Active development is currently taking place on the HEAD branch of the FOP source code repository (aka fop-1.0DEV). However development on the maintenance branch fop-0_20_2-maintain (the current 'stable' release fop-0.20.5 used by most in production environments) was frozen to ensure focus on the HEAD branch, with the hope of speeding the fop-1.0 release. As for the 'keep-with-next' and other keep-* attributes, the only one(s) currently functioning in fop-0.20.5 are delineated here[2]. Keep in mind that those work only in table rows, so if you need to use any keep-* attributes, you need to use one of those indicated at[2], and use the workaround of encapsulating them in fo:table-row elements. I hope this helps! Web Maestro Clay [1] FOP-DEV mail archives http://marc.theaimsgroup.com/?l=fop-devr=1w=2 [2] Keeps and Breaks Properties (§7.19) http://xml.apache.org/fop/compliance.html#fo-property-keepsbreaks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Barcodes in FO output using a font
I need to add a barcode to my fo:region-after. If this were a static barcode (i.e., one barcode per document), I would be just use Barcode4J[1]. But since part of the barcode indicates the current page number (d'oh!), I don't believe I can use Barcode4J for this purpose (Jeremias, please correct me if I'm wrong :-D). I believe this means I need to apply a barcode *font* to a fo:page-number/ element. Unless there's a way to dynamically feed fo:page-number/ to Barcode4J (which I don't think is possible), I think I'll have to use a font like this: fo:block font-family=barcode_fontF62Pfo:page-number/-0704/fo:block (I have to admit, that I haven't tried with Barcode4J yet, but it's downloading now!) On the FONT front, was anyone successfully used barcode fonts with FOP? Where can I obtain barcode fonts? I found a link[2] and I'll try some of the files there. UPDATE: I've been trying, but I'm getting errors ('[ERROR] unknown font Code128JK_A,normal,normal so defaulted font to any' or '[ERROR] unknown font FREE3OF9,normal,normal so defaulted font to any', depending on the FONT I'm trying to use). I downloaded a barcode font from here[3], and followed the instructions on the FOP Font Page[4]. Here's the relevant portion of my conf/userconfig.xml file: entry keyfontBaseDir/key value/Users/Shared/_WebDLs/barcode_fonts/value /entry fonts !-- snipped commented section(s) -- font metrics-file=A8__.XML embed-file=barfonts/pfb/A8__.pfm kerning=yes font-triplet name=Code128JK_A style=normal weight=normal/ /font font metrics-file=FREE3OF9.XML embed-file=free3of9/FREE3OF9.TTF kerning=yes font-triplet name=FREE3OF9 style=normal weight=normal/ /font /fonts This is the relevant XSL-FO for using the PFM: fo:block font-family=Code128JK_AF62Pfo:page-number/-0704/fo:block Since I was having trouble using the PostScript font, I tried using TTF. This is the relevant XSL-FO for using the TTF: fo:block font-family=FREE3OF9F62Pfo:page-number/-0704/fo:block Please let me know if I need to provide any other info. Web Maestro Clay [1] Barcode4J http://barcode4j.krysalis.org/ [2] GPL Barcode fonts http://user.it.uu.se/~jan/barfonts/ [3] Free 3of9 Barcode font http://www.squaregear.net/fonts/free3of9.shtml [4] FOP Fonts Page http://xml.apache.org/fop/fonts.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Barcodes in FO output using a font
On Sep 17, 2004, at 12:57 PM, Jeremias Maerki wrote: On 17.09.2004 21:08:30 Clay Leeds wrote: On the FONT front, was anyone successfully used barcode fonts with FOP? Where can I obtain barcode fonts? I found a link[2] and I'll try some of the files there. I've tried both 3 of 9 fonts from [2] and [3] and the Code128 font from [2]. All work fine, although the TTF font causes two warnings because of missing TTF tables. Works for me now, see below... UPDATE: I've been trying, but I'm getting errors ('[ERROR] unknown font Code128JK_A,normal,normal so defaulted font to any' or '[ERROR] unknown font FREE3OF9,normal,normal so defaulted font to any', depending on the FONT I'm trying to use). I downloaded a barcode font from here[3], and followed the instructions on the FOP Font Page[4]. Here's the relevant portion of my conf/userconfig.xml file: entry keyfontBaseDir/key value/Users/Shared/_WebDLs/barcode_fonts/value /entry fonts !-- snipped commented section(s) -- font RENAME_FILE_TO_USE_metrics-file=A8__.XML embed-file=barfonts/pfb/A8__.pfm kerning=yes embed-file takes the PFB, not the PFM!!! The PFM is only for generating the font metrics XML. The PFB contains the actual font. Thanks! I didn't know which part I needed to include there. Now that I look back at the Fonts page, there is an example which has .pfb. Sorry. It doesn't make a big difference but set kerning to no. Done! font-triplet name=Code128JK_A style=normal weight=normal/ /font font RENAME_FILE_TO_USE_metrics-file=FREE3OF9.XML RENAME_FILE_TO_USE_embed-file=free3of9/FREE3OF9.TTF kerning=yes font-triplet name=FREE3OF9 style=normal weight=normal/ /font /fonts This is the relevant XSL-FO for using the PFM: fo:block font-family=Code128JK_AF62Pfo:page-number/-0704/fo:block Works for me. Since I was having trouble using the PostScript font, I tried using TTF. This is the relevant XSL-FO for using the TTF: fo:block font-family=FREE3OF9F62Pfo:page-number/-0704/fo:block Please let me know if I need to provide any other info. Dumb question: Have you supplied the userconfig.xml on the command-line? That's my only explanation for your problem. If I omit the userconfig.xml I get your error messages. Besides that I've done nothing special while generating the XML metrics. I've used practically the same configuration (including fontBaseDir). I've even copied snippets from your e-mail to reproduce the problems. Jeremias Maerki That was the culprit, so I guess it wasn't a dumb question. It was me being dumb not including the config file. My only 'excuse' is to say that I've never had to use a config file before now (although I'll be using it in the future to play with strokeSVGText...) Thanks Jeremias! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP hangs.. Need help
NOTE: I've moved this message to the FOP-USER mailing list, as this post appears to be a FOP-USER issue. On Sep 15, 2004, at 8:00 AM, Jeyaprakash Natham wrote: Version: 0.20.5 Issue: To convert a XSL-FO to PDF format, I am using the code taken from ExampleFO2PDF.java available on http://xml.apache.org/fop/embedding.html#ExampleFO2PDF. While running this code, it hangs. Can someone help what could be the issue. Note: The size of XSL-FO file is around 225MB. Thanks JP Although you've provided the version of FOP (thanks!), 'While running this code, it hangs.' is not much to go on. Could you indicate whether any logging occurrs before it 'hangs'? Have you tried running it from the command line with the -d flag? Also, 225MB is a rather large FO file. Are you sure it isn't 225Kb? If it is 225MB, you may have to increase the amount of RAM allocated to Java Virtual Machine. Finally, it might help to indicate the output you're expecting (e.g., I expect to get a 5000 page PDF file or something). What operating system is this running on? Is there enough RAM and hard drive space available, etc. Thanks! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: FOP hangs.. Need help
Begin forwarded message: From: Jeyaprakash Natham [EMAIL PROTECTED] Date: September 15, 2004 9:28:49 AM PDT To: Clay Leeds [EMAIL PROTECTED] Subject: RE: FOP hangs.. Need help Sorry for not providing enough info in my earlier email... No big deal, but please remember to send these messages to [EMAIL PROTECTED] so others with similar issues may benefit from the responses you receive (and also so those who really know what they're doing can help! :-D). Here is the info: Yes. The logging occurs and here is the log: Preparing... [ERROR] Logger not set [INFO] building formatting object tree [INFO] setting up fonts I haven't tried running it with -d option... Can you please provide me the full syntax? If you're going from xml=pdf: ./fop.sh -d -xml yourinputfile.xml -xsl yourstylesheet.xsl -pdf output.pdf If you're going from fo=pdf: ./fop.sh -d -fo yourfofile.fo -pdf output.pdf (all you do is put '-d' in the command line). For more help, run fop.sh by itself and it'll provide the USAGE info: ./fop.sh The file size is 225 MB ( not KB) and approx pages I am expecting is 3000. The OS is SunOS 5.8. I believe the machine has enough RAM (atleast around 3GB) and hard disk space. The java application is invoked with the params: -Xmx2000m -ms262144000 By the way, can you please help me how to post a message directly to fop-user and access the responses. You'll need to subscribe to fop-user to post and receive replies. You can find everything you need to know on this page: http://xml.apache.org/fop/maillist.html You probably want to unsubscribe to fop-dev as well. Thank you JP Cheers! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: no conversion defined error: content-width='scale-to-fit'
On Sep 15, 2004, at 12:17 PM, Steve Whitlatch wrote: [...] How would I define a conversion to make FOP happy? The error message is produced when FOP's processing reaches the page on which this code resides in the .fo file produced by xsltproc: ** fo:block text-align=center fo:external-graphic src=graphics/CroppedDecisionObject.tif width=6.5in height=auto content-width=scale-to-fit content-height=auto text-align=center/ /fo:block ** From the original XML file, here is the relevant code: ** imagedata width=6.5in align =center fileref=graphics/CroppedDecisionObject.tif format=TIFF/ /imageobject ** The original XML shows no scale-to-fit value being passed to a content-width attribute. Is there any reason to believe that FOP is in error? Unless there is some reason to believe that FOP is in error, perhaps I should submit a bug report to the maintainer of the DocBook XSL stylesheets claiming that the stylesheets erroneously inject content-width='scale-to-fit'. Just checking. If I'm confused, please shed some light. Thanks, Steve Whitlatch According to the FOP Compliance page's '@content-width' section, there is no extended support for this property[1]. In addition, according to Mr. Pietschman[2], 'these properties are never used in FOP for any purpose.' I would take that to mean content-width (and content-height) are not implemented in FOP. Looks like you'll need to get by with width height attributes only. Web Maestro Clay [1] http://xml.apache.org/fop/compliance.html#fo-property-content-width [2] http://marc.theaimsgroup.com/?l=fop-userm=109355016503727w=2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to write equations for FOP ?
On Sep 13, 2004, at 7:12 AM, John Burgess wrote: snip If your bitmaps are all of different sizes then I have written a java class for use as an xslt extension that reads the bitmap and reports back the width and height in pixels. I can submit the source code and the jar if there's interest - I've only tested it with jpegs but it should work with any bitmap type supported by the javax.imageio package. I believe there is a plug in that will do GIFs though it's not part of the standard distribution because of the lzw patent problem. John This looks like the kind of thing that would fit nicely with the new Objects for Formatting Objects[1] SourceForge project started by Simon Pepping. Perhaps you can contact him directly about adding it to the project (assuming you're willing to meet the licensing needs and/or donate it to the Apache Software Foundation). Web Maestro Clay [1] http://offo.sourceforge.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can i assgin value to a global variable inside template
On Sep 13, 2004, at 8:13 AM, Clay Leeds wrote: On Sep 13, 2004, at 4:32 AM, Eldho George wrote: Hai all, Thanks to all of your response.I have problem with xsl:variable.I have a variable 'bordervalue' inside xsl:stylesheet. I am not assign any value to this variable.But inside a template i want to assign some value to this variable.How can i solve this problem? I tried with lot.But the variable could not get assigned a new value.Following is my code snippet...Please help me As I understand it, you can assign xsl:variable in any template, as long as it is only *once*. I should point out, as I understand it that only one template can define xsl:variable--it cannot be defined in more than one xsl:template, even if from another xsl:include. The value of a xsl:variable cannot change once it has been set (with some exceptions you can find in the spec and elsewhere on the internet). If you need it to 'change' then you probably want to use xsl:parameter instead. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can i get users default printers IP address?
On Sep 9, 2004, at 1:08 AM, Jeremias Maerki wrote: Why not just let the users print their PDF documents themselves from the browser? Another idea is to print FO document via an applet using the AWT renderer instead of the PDF renderer. This way you'd be able to automatically access the user's default printer. In our environment, we created a java applet which loads the PDF file, and automatically prints it to the *USER'S* default printer (ATM, I don't recall if user interaction is required in the Print Dialog box)... Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can I create template for manipulating embedded and exter nal style sheet present in the html page? Is it possible?
On Sep 7, 2004, at 10:13 PM, Eldho George wrote: Hai all Thanks clay Leeds. Thank you for your nice reply. I got your idea.But again some problem.Actually my problem is to create a pdf converter.It is able to convert any web page into pdf.Whenever an external stylesheet present in the html file I want to read that css file and read each value from css and use it with corresponding template. According to your suggestion, I have to create different attribute set depending upon the css.I would like to know how can i dynamically insert these attribute set into corresponding template.Classes are also present in the css.How can i solve this problem I don't know the answer to these questions. I would suspect you would want to create one attribute set which holds your 'defaults' (font-family, font-size, color, background-color, etc.) and then a different attribute-set for each 'class'. You (or someone you hire) can probably write something fairly quickly, which will take a CSS file, and output an attribute-set. If you do, it would be great if you could post it back for others to use. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?
On Sep 6, 2004, at 7:06 AM, Eldho George wrote: Hi, I would like to know how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible? Please help meplease tell me is it possible with xslt+xsl-fo? I already created template for processing inline style attribute. Is it possible for you to create an attribute-set and use that to modify your pages/tables, etc. document-wide? Here's a link which might help[1]. BTW, this isn't a tool for 'converting' a CSS file to XSL/XSLT. You would have to set up an attribute-set, and then implement it for the document using the use-attribute-set attribute. Hope this helps! Web Maestro Clay [1] http://www.xml.com/lpt/a/2003/06/11/short-xslt.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTML + TIFF = PDF (was Re: Hi there!)
On Sep 2, 2004, at 2:51 AM, Ionita Alexandru wrote: Sorry for this newbie post..I'm new with FOP. Here are my needs: I have some HTML files and some TIFF file and I have to combine this all files in a big PDF. This should be doable using an HTML-to-FO conversion tool[1], although I think you'll need to somehow get the TIFF files into the HTML (embedded in the HTML somehow?). HTML files are dinamically built by my application, and this html files should alternate with the tiff files. I saw that for tiff files support there is a special tool, tiffrender. Could I make this possible? And another thing...the fianl PDF _MUST_ have page numbering. Thanks for your advice! Page-numbering should not be a problem. Just read up on FOP to find out how (along with any issues involved). However, TiffRenderer is used for outputting XSL-FO files to TIFF--not for using TIFF as input[3]. [OT] It would be good for you to review How To Ask Questions The Smart Way to ensure the Subject is valuable (the description of your problem seemed OK, though ;-)). http://www.catb.org/~esr/faqs/smart-questions.html Web Maestro Clay [1] http://xml.apache.org/fop/resources.html#products-other [2] http://xml.apache.org/fop/resources.html#products-fop-add-ons [3] http://xml.apache.org/fop/graphics.html#tiff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP PDF with images from eXist database
On Sep 2, 2004, at 6:43 AM, [EMAIL PROTECTED] wrote: But when I want to access the image in my fo.xml file in order to create a PDF: fo:external-graphic src=url(http://localhost:8080/exist/servlet/db/test.gif)/ The system doesn't respond. The memory usage for java.exe in the taskmanager gets bigger and bigger and I have to kill the process. When I access the same image within a normal HTML file, it works fine: img RENAME_FILE_TO_USE_src=http://localhost:8080/exist/servlet/db/ test.gif What am I doing wrong? I couldn't find anything interesting in the log files. Could this be a permissions issue? Perhaps the I_USR (or whoever) when accessing directly has the privilege to access, but java.exe process does not? Have you checked the images graphics FAQ items? Here's a link[1] but don't stop there. There are plenty of other questions there dealing with images graphics. TIP: Try searching for 'graphic' and also 'image' if you don't find what you were looking for? Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running embedded fop in a MacOS Cocoa Application
Richard, On Aug 29, 2004, at 10:59 PM, Richard Van Deren wrote: I have bee using Fop for while in applications I am developing on the Mac. A couple of weeks ago Apple updated their Java VM, Java VM 1.4.2 Update 1. Their improvements made my fop processor stop working with the error: 2004-08-26 04:09:14.463 FopService[8097] Apple AWT Java VM was loaded on first thread -- can't start AWT. I was confused about this, until I remembered that a couple of years ago I was informed that AWT was not supported. The Java VM 1.4.2 Update 1, the support of Swing and AWT objects was improved, however, in their improvements they coded it in such a was as to not allow an application to start Java AWT on the main thread in their standard application pattern. This update created the above error. It worked in headless mode before the Java VM 1.4.2 Update 1. After a couple of weeks of frustration I was able to get FOP working again using a Cocoa detached thread, NSThread. There is a small group of us using FOP on the MacOS. I just wanted folks to know that FOP is usable on the mac and it seems to work well on its own thread. I am no expert on threads but a Cocoa thread is not a Java thread. That had me confused for a while. I would like to contribute some coding examples if they are wanted by the FOP developers. I would like some feedback on how I am doing it. In the Xerces C++ group they have a directory named Projects, that is where the MacOS Xcode project could go in the FOP CVS tree. I would be happy to add one if there is an interest. Thanks for letting us know. As I generally run FOP from the Command Line Interface using fop.sh, I haven't run into this problem. It is certainly of interest to me, and I'm sure others as well. Could you provide a list of steps/requirements to alleviate the problem? An example would also be useful and appreciated. I'm not sure how the coding examples should be submitted (perhaps through bugzilla--although this isn't exactly a bug in *FOP*--being sure to identify it as a bug which affects Mac OS X). We are considering adding a SourceForge project of tools which relate to XML/XML Graphics which might be a good place for this type of thing. Thanks again! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with rendering images
On Aug 26, 2004, at 11:58 PM, Amita Rathore wrote: I am displaying an image in the pdf using http . All goes well when I test it on my local machine. I am running it in WSAD test environment v4.0. But when I deploy it to WAS 5.0 the images do not appear. Is this a problem with the xsl fo external-graphic tag. Are there any other tags which I can try to include the image. Can you access the image using a web browser? Have you tried all of the image-related tips in the FAQ[2] and the FOP Graphics page[1]? If none of this helps, please ask for help and include version info on: Java VM, Operating System, etc. Thanks! Web Maestro Clay [1] My graphical images do not work properly. http://xml.apache.org/fop/faq.html#png-fails [2] FOP Graphics Page http://xml.apache.org/fop/graphics.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Graphics in fo:region-end
On Aug 27, 2004, at 12:00 PM, J.Pietschmann wrote: Clay Leeds wrote: headless system, One of the systems we use is AIX, and we were unable to get the workarounds to function. I'm successfully running an older Cocoon with updated FOP and Batik Jars on an AIX 5.3 headless, using th headless option for Java 1.4. A solution using PJA on AIX 4.3 ? IBM Java 1.3.1 was decommissioned two months ago. Granted, setting up PJA for running in WebSphere 3.5 is a major PITA ... J.Pietschmann As look would have it... One of my installations runs AIX 4.3 w IBM Java 1.3.1... Hence my attempt at avoiding SVG in my app... Ahh well... At least the images work fairly well... Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Graphics in fo:region-end
UPDATE: I've noticed, that as I increase the fo:region-after @extent from 3.5cm to 4cm, the MIDDLE BOTTOM images get smaller. There is no change to the size of the TOP image in either case. FWIW, the TOP and MIDDLE images are completely within the fo:region-before @extent (height); the BOTTOM image 'starts' in the fo:region-before @extent, and 'ends' in the fo:region-body portion. If this is confusing, I'll post something to bugzilla. I hesitate to call this a bug yet... Web Maestro Clay On Aug 25, 2004, at 2:55 PM, Clay Leeds wrote: PROBLEM I have 3 graphics (each 35px wide w/ rotated red text w/ white margins) in an fo:region-end and I have a strange problem: the TOP graphic renders at slightly larger than the correct size; the MIDDLE graphic renders correctly; the BOTTOM graphic renders smaller than the correct size. I've tried using every combination imaginable of width/height, content-width/content-height, both ON, OFF, width + content-width, etc. and nothing works. There isn't a problem with HEIGHT, because there is ample space on either side of each image. I was finally able to work around the problem by futzing with the width of each image so the TOP is now 53x260 wide, MIDDLE is 36x1181, BOTTOM is 32x1360. snip I am actually satisfied with the workaround, but I wanted to report it and wondered if anyone has an idea about why this is occurring? Clay Leeds - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Graphics in fo:region-end
ANOTHER UPDATE: I got the results I was looking for, not by using fo:external-graphics, but by placing the graphic in the @background-image for the fo:table-cell. Unfortunately, the background-position* attributes aren't working (the FOP Compliance page[1] does indicate 'yes' for Basic support, but 'no' Extended support). One frustration, I had to take my 'pretty' 300dpi JPG image and convert it to 72dpi, because FOP appears to render my 300dpi image at 72dpi, making the graphic larger than the space it occupies. The XSL-FO spec does not indicate any sort of background-image 'scale' or background-content-width attribute. I hope this information helps someone! Web Maestro Clay [1] FOP Compliance Page - background-position-horizontal: http://xml.apache.org/fop/compliance.html#fo-property-background- position-horizontal On Aug 26, 2004, at 8:45 AM, Clay Leeds wrote: UPDATE: I've noticed, that as I increase the fo:region-after @extent from 3.5cm to 4cm, the MIDDLE BOTTOM images get smaller. There is no change to the size of the TOP image in either case. FWIW, the TOP and MIDDLE images are completely within the fo:region-before @extent (height); the BOTTOM image 'starts' in the fo:region-before @extent, and 'ends' in the fo:region-body portion. If this is confusing, I'll post something to bugzilla. I hesitate to call this a bug yet... Web Maestro Clay On Aug 25, 2004, at 2:55 PM, Clay Leeds wrote: PROBLEM I have 3 graphics (each 35px wide w/ rotated red text w/ white margins) in an fo:region-end and I have a strange problem: the TOP graphic renders at slightly larger than the correct size; the MIDDLE graphic renders correctly; the BOTTOM graphic renders smaller than the correct size. I've tried using every combination imaginable of width/height, content-width/content-height, both ON, OFF, width + content-width, etc. and nothing works. There isn't a problem with HEIGHT, because there is ample space on either side of each image. I was finally able to work around the problem by futzing with the width of each image so the TOP is now 53x260 wide, MIDDLE is 36x1181, BOTTOM is 32x1360. snip I am actually satisfied with the workaround, but I wanted to report it and wondered if anyone has an idea about why this is occurring? Clay Leeds - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Graphics in fo:region-end
On Aug 26, 2004, at 12:55 PM, J.Pietschmann wrote: Clay Leeds wrote: This would be a nice excuse to use SVG if not for two reasons: 1) SVG text is rendering poorly in my FOP output Did you try http://xml.apache.org/fop/faq.html#svg-text erm... no. Thanks! I'll check it out! 2) more importantly, Batik doesn't play nicely headless system, and this project has the potential to run on a headless server. Hup? Doesn't http://xml.apache.org/fop/faq.html#svg-headless help? One of the systems we use is AIX, and we were unable to get the workarounds to function. I think the tip with Xvfb in it was the closest we got, but we have problems we weren't able to resolve. We weren't using SVG at all (so that wasn't an issue), and ended up using outputting to Postscript instead of -print, and then cat'ing the resulting file to a Postscript printer. PROBLEM I have 3 graphics (each 35px wide w/ rotated red text w/ white margins) in an fo:region-end and I have a strange problem: the TOP graphic renders at slightly larger than the correct size; the MIDDLE graphic renders correctly; the BOTTOM graphic renders smaller than the correct size. Maybe a problem with the scaling code. Or something else. I've tried using every combination imaginable of width/height, For SVG, the heigth/width in the SVG itself should match, otherwise strange results may occur. You shouldn't use pixels as units of measure, which may be rounded in unexpected ways, use cm/in/pt instead. content-width/content-height, No effect at all, these properties are never used in FOP for any purpose. and nothing works. There isn't a problem with HEIGHT, because there is ample space on either side of each image. The scaling code uses available height in the region *body*, unfortunately. This doesn't quite explain why the top image is rendered larger though, unless this is an artifact of the screen renderer (Acrobat). J.Pietschmann Ahhh... This is what I was beginning to allude to in one of my updates... The Acrobat artifact possibility is interesting. I was looking at the PDF at ~150% (page-width)... Thanks for the comments! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:external-graphic problem
On Aug 24, 2004, at 6:08 PM, vivek gupta wrote: Hi All, I am having problem to use image in my web-application fop file. I am using XSLT and XML to generate fo file. But when I am deploying app on my app server. It could not find image file unless I hard code image path. Please help me how to set up path so that fo file dynamically finds image file Thanks in advance -V We're happy to spend time giving a helping hand, but before we spend much time on this, can you tell us: if you've already confirmed you can access it directly (e.g., from a web browser?); you've tried everything graphics image related in the FAQ including[1], and also that the image conforms to the 'pseudo' requirements listed on the FOP Graphics page[2]. If you've done all of this and you're still having problems, please provide important details including Operating System, Java Version and FOP version. Thanks! Web Maestro Clay [1] My graphical images do not work properly. http://xml.apache.org/fop/faq.html#png-fails [2] FOP Graphics Page http://xml.apache.org/fop/graphics.html Clay Leeds - [EMAIL PROTECTED] -- Web Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP Output Statistics (was Re: Different Pages with different content)
Douglas, NOTE: I've changed the Subject. On Aug 25, 2004, at 6:25 AM, Oosterbaan, Douglas S. (LNG-DAY) wrote: I'm running FOP as an embedded service. What kind of statistics can I get back from FOP after it has completed formatting? For example, can I get: -- page count -- line count -- byte count -- total formatting time -- if an error occurred, can I get how many pages successfully formatted before the error? -- estimated percentage complete while it is in the middle of a large formatting job? -- any other data? Is there a result structure that gets populated and returned when formatting occurs, such that I can get statistics back through that structure? There is not one that I am aware of (I don't do embedded work ATM, although some in my company are doing some of that). I would suspect, that the logging tools being used may output some of this information. Barring that, I do know that FOP outputs some of this information by default (e.g., [INFO] [1], [INFO] [2], which indicate pages output). When DEBUG mode is used (-d from Command Line Interface) the number of pages in the last sequence (e.g., [DEBUG] Last page-sequence produced 2 pages.). You could enable logging, and then have your program go through the log and parse this information. Here's some sample output for generating a PDF ffile, which has one 'flowing' page-master, and a second page-master which shows up at the end (last): [INFO] setting up fonts [INFO] [1] [WARNING] Sum of fixed column widths 513070 greater than maximum specified IPD 510236 [INFO] [2] [DEBUG] Last page-sequence produced 2 pages. [INFO] [3] [DEBUG] Last page-sequence produced 1 pages. [INFO] Parsing of document complete, stopping renderer [DEBUG] Initial heap size: 4496Kb [DEBUG] Current heap size: 8874Kb [DEBUG] Total memory used: 4377Kb [DEBUG] Memory use is indicative; no GC was performed [DEBUG] These figures should not be used comparatively [DEBUG] Total time used: 10110ms [DEBUG] Pages rendered: 3 [DEBUG] Avg render time: 3370ms/page I've found a lot of examples setting up FOP and running it, but I haven't seen anything that captures statistics after the formatting is complete. Thanks. If you do come up with something, please post it back to the list so others may benefit. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Graphics in fo:region-end
BACKGROUND I am creating a medical form and have 3 sections in my document. On the right side of each section, there is a string of text, rotated 90-degrees explaining what that section contains. This would be a nice excuse to use SVG if not for two reasons: 1) SVG text is rendering poorly in my FOP output (Jaggies, which could be font-related, though--I haven't had much need for SVG text yet); 2) more importantly, Batik doesn't play nicely headless system, and this project has the potential to run on a headless server. Since SVG isn't working out, I decided to use Graphics, and herein lies the problem. PROBLEM I have 3 graphics (each 35px wide w/ rotated red text w/ white margins) in an fo:region-end and I have a strange problem: the TOP graphic renders at slightly larger than the correct size; the MIDDLE graphic renders correctly; the BOTTOM graphic renders smaller than the correct size. I've tried using every combination imaginable of width/height, content-width/content-height, both ON, OFF, width + content-width, etc. and nothing works. There isn't a problem with HEIGHT, because there is ample space on either side of each image. I was finally able to work around the problem by futzing with the width of each image so the TOP is now 53x260 wide, MIDDLE is 36x1181, BOTTOM is 32x1360. ENVIRONMENT - fop-0.20.5 - Java 1.4.2 - WinXP I am actually satisfied with the workaround, but I wanted to report it and wondered if anyone has an idea about why this is occurring? Clay Leeds - [EMAIL PROTECTED] -- Web Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: generating PDFs in non-english
On Aug 11, 2004, at 4:54 AM, Nuno Lopes wrote: Thanks for your help! I was using KOI8 and windows-1251 fonts. That was the problem! I've found some free unicode fonts and now they work!! Thanks, Nuno Could you provide a link to the free unicode fonts (and how you found them) for the archives, in case others need this information? Thanks! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I manage table columns
On Aug 10, 2004, at 3:19 AM, ELFELAH Tarek wrote: I have a problem with columns : How can I tell the XSL parser to forward to an other page the columns wich overflow the width of the page. thanx. Without knowing more about your task, it's hard to come up with a solution. For one thing, we don't know if your content is IMAGE-based or TEXT-based. As for overflow, I don't think the overflow (as it relates to fo:table-cell fo:table-column) is well-developed in FOP. I think you need to come up with some sort of XSL solution where you count the number of characters (or determine the width of an image at run-time) or something. This would be a process external to FOP and would be better discussed on an XSL/XSLT list: http://xml.apache.org/fop/maillist.html If you come up with a solution, please let us know so others may benefit from your experience. p.s. Thanks for moving this thread to fop-user. As you must've surmised, fop-dev is for development issues only. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specifying Line Spacing in tables
On Aug 10, 2004, at 7:40 AM, Gordon Ross wrote: Hi, I'm trying to adjust the line spacing between fo:table-rows. I've played with the padding-* attributes, but they don't appear to do much (expect, when I use them in a fo:table-heading) Can anyone point me in the right direction ? Thanks, GTG This thread might help: http://marc.theaimsgroup.com/?l=fop-userm=108914876406883w=2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: generating PDFs in non-english
On Aug 6, 2004, at 10:36 AM, Nuno Lopes wrote: Hello, I was trying to make some PDFs of the PHP manual when I got some problems. The manual is written in docbook and then I have a XSL sheet. I can generate the manual in english, portuguese, french,... but not in russian. When I open the file I only get #. What am I doing wrong? I've tried using FOP directly with XML, and with a FOP file generated by xsltproc, but noone works. Can anybody help me, please? Thanks, Nuno This thread should take place on the fop-user mailing list instead of fop-dev. Most (all?) fop-dev list readers read both, so it's sure to be seen. fop-dev is for FOP *development* issues. Since I'm moving this thread to fop-user I've Cc'd you on this reply to ensure you received this message. I suspect you are having a problem with fonts an glyphs. Did you take a moment to read the FAQ? There's a question involving # characters here[1]. If you have any other questions or this doesn't help you resolve the issue, please post follow-up questions to this thread on fop-user. Good luck! Web Maestro Clay [1] http://xml.apache.org/fop/faq.html#pdf-characters - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: throttle the quality of images
On Aug 2, 2004, at 3:52 PM, Johannes Franz wrote: Hi there, i would like to throttle the quality of images, because the created pdf grows to big. Is there a formatting objects command to do this? Or is the only solution to throttle the quality of the images before converting? Greetings, Johannes. To my knowledge, FOP has no way to 'throttle the quality of images' at run-time. It may be possible to use some sort of post-FOP product which does this sort of thing (I've seen a couple of PDF optimizers for Mac OS X, and I assume they exist for other platforms as well). For my needs, I'm more concerned about higher resolution images (a small logo), so I create a 300dpi image and then shrink it to the size I need. But that's going the other way. You could always add ImageMagick's 'convert' or something to your workflow. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: throttle the quality of images
On Aug 4, 2004, at 6:02 AM, Chris Bowditch wrote: Johannes Franz wrote: Hi there, i would like to throttle the quality of images, because the created pdf grows to big. Is there a formatting objects command to do this? Or is the only solution to throttle the quality of the images before converting? There is no XSL-FO property to reduce the amount of data in an image. You will need to do this processing before presenting the image to FOP Chris You could also do a post-processing of the PDF files (after FOP is done) to optimize/compress/shrink the PDF files. Some of the following are Mac OS X-only, but others are not. Please report back if you find something that suits your needs. Web Maestro Clay [1] http://www.adobe.com/support/techdocs/29772.htm [2] http://www.planetpdf.com/creative/article.asp?ContentID=6568 [3] http://www.jawspdf.com/ [4] http://www.primopdf.com/ [5] http://www.apago.com/products.html [6] http://www.metaobject.com/Products.html#PdfCompress [7] http://www.stone.com/PStill/PStill.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: throttle the quality of images
On Aug 2, 2004, at 4:18 PM, Johannes Franz wrote: Ok, do you know which graphic formats fop supports? png? This is also in the FAQ, but here's the direct link: http://xml.apache.org/fop/graphics.html Web Maestro lay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i convert xml file to xsl-fo without giving any xslt.
From the FOP Resources page[1] you'll find this link[2]. While you're there, why not check out some of the resources on that page? ;-) Please report back and let us know if it works well for you, or if it needs 'tweaking'. Web Maestro Clay [1] http://xml.apache.org/fop/resources.html [2] http://html2fo.sourceforge.net/ On Aug 3, 2004, at 6:11 AM, Eldho George wrote: Hi, How can i convert xml file to xsl-fo without giving any xslt. Actually my problem is i have to convert one html to pdf format using fop.I tried with fop example.But there is a need to supply xsl file. can i directly convert xml to pdf without spacifying any xslt. I am new in fop and xml.Please help me ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: For each in xsl
On Aug 3, 2004, at 10:12 AM, Juan Manuel Bellina wrote: I need to use the for each to make some rows in the PDF but I do not know how to make it. I am making a PDF design using Altova StyleVision. Do you know if this tool allow me to introduce this feature? Can anybody send me a simple example? Thanks, Juan This question is not really a FOP-USER question and would be better served by the good folks at Altova (for Altova StyleVision-related questions) or the one of the many XSL-related links which you can find here[1]. If you can't wait for an answer, you can probably find what you're looking for in the XSL or XSLT section of the FOP Resources page[2]. Good luck! Web Maestro Clay [1] http://xml.apache.org/fop/maillist.html [2] http://xml.apache.org/fop/resources.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Editors
I think the best thing I can recommend is to look at the bottom of the FOP Resources page[1], and search the FOP archives. There was a recent thread on this[2]. In the not-too-distant future, I intend to update the web site with the result(s) of that thread. Web Maestro Clay [1] http://xml.apache.org/fop/resources.html [2] http://marc.theaimsgroup.com/?l=fop-userm=108739075228518w=2 On Aug 2, 2004, at 1:12 PM, Subbiah wrote: I have been using FOP for a week and I use it generate pdf letters and reports I find it to be very simiar to HTML structure. And the letters and reports were usually done in WYSIWYG style. I have spent a lot of time mapping the table structure, padding , indeting and jutifying the content in FO Since I belive that the are lot of people who use if for the same reason , I want to know is there any editor avaiable that Helps me create a basic FO. I tried FOA http://foa.sourceforge.net/ but ran into some issues which made me dum it My Questions 1. Any editors avaiable to try 2. If not would it be a good idea to start building one that converts simple HTML as there are lot of HTM editors that do WYSIWYG and convert it to FO regards, Subbiah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Absolute path of font file ...
On Jul 30, 2004, at 7:53 AM, Chris Bowditch wrote: Varadharajan Sethuraman wrote: Thank you very much ... is It possible to refer metrics-file attribute for one directory, and embed-file attribute for another directory? for example ... I have metrics xml file in c:\my\metrics-base\dir\fontmetrics1.xml and ttf file in c:\my\embed-base\dir\arial.ttf Yes this is possible. Suppose the fontBaseDir is c:\my\metrics-base\dir then font entry in userconfig.xml would be: font metrics-file=fontmetrics1.xml kerning=yes embed-file=..\embed-base\dir\arial.ttf font-triplet name=Arial style=normal weight=normal/ /font So every path to do with fonts is resolved *relative* to the fontBaseDir setting. snip/ Chris From the 'more than 1-way-to-accomplish-your-task dept., ... you could also set the fontBaseDir higher (i.e., to c:\my) and then use relative paths like this: font metrics-file=fontmetrics1.xml kerning=yes embed-file=embed-base\dir\arial.ttf font-triplet name=Arial style=normal weight=normal/ /font Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Absolute path of font file ...
On Jul 27, 2004, at 8:57 PM, Varadharajan Sethuraman wrote: my problem is that I don't want to specify the absolute path for the font-metrics or embed-file attribute (C:\Fop_0.20.5\fonts\ or C:\windows\fonts\) in the userconfig.xml to support the fonts. Because it will cause the portablity problem. Anybody knows the solution for this issue kindly mail me ... or is there any way to set or pass the value for font-metrics or embed-file attribute dynamically . -Varadha According to the FOP Fonts Page[1]: * Starting with FOP version 0.20.5 you can use URLs for the paths to the font files. Relative URLs are resolved relative to the fontBaseDir property (or baseDir) if available. See FOP: Configuration[2] for more information. [1] http://xml.apache.org/fop/fonts.html [2] http://xml.apache.org/fop/configuration.html In addition, if you must port this to another system, you should be able to modify the fontBaseDir only once. Does this solve your dilemma? Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP hangs at Driver driver = new Driver(); line
On Jul 28, 2004, at 11:06 AM, Manfred Reuter wrote: Hi, I was able to narrow it down where the problem in Driver.java is: Somehow the program stops when the Driver adds the Element Mapping of org.apache.fop.svg.SVGElementMapping. Thanks and regards, Manfred This may not be related, but are the staging and production systems running 'headless'? If so, there's a FAQ about it: http://xml.apache.org/fop/faq.html#svg-headless Hope this helps! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: command line problem
On Jul 24, 2004, at 11:14 PM, Conor Quinn wrote: Hi all! I'm quite new to FOP and have spent the day on this Mac OS 10.3.4 researching madly and trying every possible installation combination I can think of for fop-0.20.5, but I must be missing something very very basic that none of the main sites feel the need to mention: since no matter what I do, the command line still spits back nothing but -bash: fop: command not found in response to a standard fop fonts.fo fonts.pdf test of the newly added directory and files. Running fop.sh gets the whole set of usage scenarios and the expected no input specified complaint about lacking, but again, all I get is the above error message in response to the above command. Can anyone give me a hint as to what presumably obvious error I am making? Many thanks! As you guessed, I believe this has a simple solution. The bash environment is not set up by default to run fop. Since it doesn't 'know' where the fop is, it will give you this error. In addition, you failed to follow the USAGE: fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-pcl|-ps|-txt|-svg|-at|-print] outfile which translates to (using your example): fop.sh -fo fonts.fo -pdf fonts.pdf In addition, to run FOP, You need to either specify the entire PATH to fop.sh (on unix, which is essentially basis of Mac OS X), or the entire PATH to fop.bat (under windows). Instead of what you have, try: /path/to/fop-0.20.5/fop.sh -fo /path/to/fonts.fo -pdf /path/to/fonts.pdf (NOTE: the above should be all on one line) Also, you need to put the entire PATH to the INPUT and OUTPUT files. If you're transforming XML and XSL files to output to a PDF file, each needs the direct PATH: /path/to/fop-0.20.5/fop.sh -xml /path/to/input.xml -xsl /path/to/input.xsl -pdf /path/to/fonts.pdf (NOTE: the above should be all on one line) In my case, since I have FOP installed here: /Users/Shared/_WebDLs/fop-0.20.5/ Since I don't have to put the PATH if I'm in this directory, I can change to it: cd /Users/Shared/_WebDLs/fop-0.20.5/ and then run: ./fop.sh -fo examples/fo/basic/fonts.fo -pdf fonts.pdf which will generate the fonts.pdf file in the /Users/Shared/_WebDLs/fop-0.20.5/ directory. There are many tricks you can do to make this process easier (i.e., add '/Users/Shared/_WebDLs/fop-0.20.5/' to your PATH; create a symbolic link from 'fop' to '/Users/Shared/_WebDLs/fop-0.20.5/fop.sh': In any case, although this has a 'simple' solution, you've made it clear that we need to update the 'Running FOP' page[1] to include examples of running FOP under Unix and Windows. Thank you for making this POST! I hope this helps! Web Maestro Clay [1] http://xml.apache.org/fop/running.html Web Maestro Clay [EMAIL PROTECTED] --- There are only 10 kinds of people in the world: those who understand binary and those who don't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:inline and line-height / font-size
On Jul 22, 2004, at 10:42 PM, Sönke Ruempler wrote: J.Pietschmann wrote: Not really. The FOP 0.20 series wont grow the line height if there are elements exceeding the line hight set for the block (either implicitely due to the block's font-size or explicitely set using the line-height property). If you know the line breaks in advance, you can split the text in several blocks, each using the known line height. Ah, ok. Is there any date given when the new branch of FOP will be released? Sorry. As with many open source applications with a development staff made up primarily of volunteers, release schedules are pretty hard to come by. Or is there any alpha/beta to play with? You can always download the most recent CVS snapshot from here[1]. Be advised, that this is a 'redesign' of the fop-0.20.x series, and things which work in fop-0.20.5 may not work in this snapshot. Web Maestro Clay [1] http://xml.apache.org/fop/download.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external-graphic src problem
On Jul 23, 2004, at 6:20 AM, Danny wrote: Clay, Thanks for the response. The xml is being streamed from the database in this instance, so there is no xml file that resides in a directory to serve as the base for the relative path. Is there no way to use to a classpath entry as the base for the relative URL? or something similar? You might find the answer in our FAQ[1] or our configuration page. I suspect it has something to do with setting baseDir. If you don't find it in exactly the location I indicate, search the rest of the page for more tips. Please write back to let us know if you come up with a solution so we can update the web site. Web Maestro Clay [1] http://xml.apache.org/fop/faq.html#servlet-baseDir [2] http://xml.apache.org/fop/configuration.html#summary-key-value - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external-graphic src problem
I should've thought of this sooner... !-- At the top of my XSL-FO file or in an xsl:include -- !-- varImagesDirectory | used to set PATH to images/ directory-- xsl:variable name=varImagesDirectory/path/to/images/xsl:variable !-- .. -- !-- my fo:external-graphic call -- fo:external-graphic src=url('{$varImagesDirectory}/logo.jpg') width=1.87cm height=.99cm content-width=1.87cm content-height=.99cm border=0/ is how I use it in our system... Hope this helps! Web Maestro Clay On Jul 23, 2004, at 8:33 AM, Danny wrote: Matthew, Thanks for the suggestion. Not sure I see how that solves my problem. Does XSLT allow me to set the basedir against the classpath in the global variable, therefore solving the problem of having to specify the absolute path? Thanks Danny Gallagher Senior Software Engineer The Gainer Group 6075 The Corners Parkway Suite 116 Norcross Ga, 30092 -Original Message- From: Zaleski, Matthew (M.E.) [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 10:01 AM To: [EMAIL PROTECTED] Subject: RE: external-graphic src problem This possibly becomes an XSLT problem. Use a global variable passed into the XSLT transform to provide the basedir for the images. -Original Message- From: Danny [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 9:56 AM To: [EMAIL PROTECTED] Subject: RE: external-graphic src problem Clay, I did read up on some of the baseDir mails on various lists. Using baseDir I could reference the relative path to the image in the xsl, but I would have to specify an absolute path in the baseDir, so really that is the same as just hardcoding the path in the xsl. My problem is that I do not want to require the application be installed in a specific directory structure, although, if that is the only way perhaps that is what I need to do. If I find a solution I will post it back. Thanks for the help. Danny Gallagher Senior Software Engineer The Gainer Group 6075 The Corners Parkway Suite 116 Norcross Ga, 30092 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external-graphic src problem
On Jul 23, 2004, at 10:40 AM, Danny wrote: Still not quite, I'm still missing something: Question, in your example: xsl:variable name=varImagesDirectory/path/to/images/xsl:variable /path/to/images is the path from a known root Correct? That is correct. Otherwise... Here are my snippets xsl:variable name=varImagesDirectory com/path/to/images /xsl:variable fo:external-graphic src=url('{$varImagesDirectory}/pic.jpg') /fo:external-graphic ...(if I understand it correctly) would assume {XML-dir}/com/path/to/images/pic.jpg Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external-graphic src problem
In addition, since it follows the URI concept, you can set up the variable's value to be a URL: xsl:variable name=varImagesDirectoryhttp://nonauthenticated.server.com/path/to/ images/xsl:variable fo:external-graphic src=url('{$varImagesDirectory}/pic.jpg') /fo:external-graphic ...would assume: http://nonauthenticated.server.com/path/to/images/pic.jpg Hope this helps! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external-graphic src problem
On Jul 22, 2004, at 1:20 PM, Danny wrote: ** Application is a standalone Java Swing application. Cannot seem to get a jpg to render in my pdf unless I hardcode the complete path to the image in the external-graphic src attribute. The data in the pdf renders fine, just no image. The image file is located in the same directory as the xsl file. Danny Gallagher I've found that when referring to external graphics in a 'relative' manner, the PATH is relative to the XML file, and not the XSL file. This is probably something that should be added to the FAQ (although I don't think it's actually *asked* very often). In addition, we should probably update the Graphics page somehow to reflect this as well. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: supported lists of FOP_0.20.5
On Jul 18, 2004, at 8:45 PM, Varadharajan Sethuraman wrote: Hi, Where do I find the supported lists of FOP_0.20.5 On the FOP Web Site ;-) http://xml.apache.org/fop/fonts.html More specifically, it's what is known as the Base 14 Fonts: http://xml.apache.org/fop/fonts.html#Base-14+Fonts Base-14 Fonts The Adobe PDF Specification specifies a set of 14 fonts that must be available to every PDF reader: Helvetica (normal, bold, italic, bold italic), Times (normal, bold, italic, bold italic), Courier (normal, bold, italic, bold italic), Symbol and ZapfDingbats. Bye Varadha Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shifting a table to the left
Mike, On Jul 16, 2004, at 7:17 AM, Mike Kellstrand wrote: OK, although I have not been able to get the table itself to shift to the left, I have been able to find a combination of start-indent and end-indent attribs at the right spots to visually do exactly what I need. If anyone can shift the table itself, then that would be the nicer solution. Thanks, Mike Unfortunately, I don't have an idea for how to shift the table (other than having an extra column on the left that is not in use *except* when you want to 'shift' the table over). However, it might be nice to have your solution in the archives for others to use. :-) Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:region-end graphics anomaly
On Jul 14, 2004, at 5:05 AM, Chris Bowditch wrote: Clay Leeds wrote: snip/ I've tried: - giving the 3 graphics different width values (e.g., .5cm .5cm .5cm; 5cm 5cm 5cm; etc.) - using every combination of attributes imaginable (width/height; content-width/content-height; width/height/content-width/content-height; width; height; content-width; content-height) - placing the graphics in 3 tables - placing the graphics in 3 table-rows - placing the graphics in 3 blocks Just an observation, as I havent tried to do this, but you said you tried setting width on external-graphic, but your example only showed height being set. Thanks for the eagle-eye. Yes. I've tried all combinations I can imagine (multiple times--I've been working on this for a few blustering days :-\) of height, width, content-height, content-width--all together, one-by-one, vice versa, versa vice-a... 'height' just happens to be the last one I tried, and hence is the one which was pasted into the OP. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: printing on dot matrix printer
On Jul 14, 2004, at 8:54 AM, Neil Guinto wrote: I am using the PrintRenderer. I find TXTRenderer don't preserve the white space on my report which is critical for me for proper positioning and alignment. It might also be good if you could 'improve' the TXTRenderer to preserve the white space in a way desirable to you. I suspect others might benefit from this type of contribution. We've thought of using TXTRenderer as a means of testing changes in template rendering (diff'g the output). Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fo:region-end graphics anomaly
I'm having problems with graphics in fo:region-end. I want three narrow graphics along the right-hand side (fo:region-end) of a page. All three graphics are varying height (2.3cm, 10cm 13cm) but are the same width (.3cm). The problem is, the 1st graphic is rendered width=.4cm, the 2nd width=.2cm the 3rd width=.15cm (these are approximate widths). I've tried: - giving the 3 graphics different width values (e.g., .5cm .5cm .5cm; 5cm 5cm 5cm; etc.) - using every combination of attributes imaginable (width/height; content-width/content-height; width/height/content-width/content-height; width; height; content-width; content-height) - placing the graphics in 3 tables - placing the graphics in 3 table-rows - placing the graphics in 3 blocks My xsl-fo is below (the fo:table-version is currently commented out). Any help or ideas would be appreciated. I'm stumped. Web Maestro Clay fo:static-content flow-name=xsl-region-end fo:block padding=0pt xsl:use-attribute-sets=attributes_HCFA-1500 xsl:call-template name=tmpEnd/ /fo:block /fo:static-content !-- .. -- !-- REGION-BODY: tmpEnd TEMPLATE -- xsl:template name=tmpEnd fo:block padding=0pt border=0pt fo:blockfo:external-graphic src=url('{$varImagesDirectory}/hcfa-carrier.jpg') height=2.3cm border=0//fo:block fo:blockfo:external-graphic src=url('{$varImagesDirectory}/hcfa-patient.jpg') height=9cm border=0//fo:block fo:blockfo:external-graphic src=url('{$varImagesDirectory}/hcfa-physician.jpg') height=12cm border=0//fo:block !--fo:table table-layout=fixed padding=0pt margin-top=.3cm fo:table-column column-width=.3cm/ fo:table-body fo:table-row height=2.3cm fo:table-cell padding=0pt border-bottom=.5pt solid {$varColor} display-align=center fo:block border-bottom=.5pt solid {$varColor}fo:external-graphic src=url('{$varImagesDirectory}/hcfa-carrier.jpg') height=2.2cm//fo:block /fo:table-cell /fo:table-row fo:table-row height=10cm fo:table-cell padding=0pt border-bottom=.5pt solid {$varColor} display-align=center fo:block border-bottom=.5pt solid {$varColor}fo:external-graphic src=url('{$varImagesDirectory}/hcfa-patient.jpg') height=19.9cm//fo:block /fo:table-cell /fo:table-row fo:table-row height=13cm fo:table-cell padding=0pt border-bottom=.5pt solid {$varColor} display-align=center fo:block border-bottom=.5pt solid {$varColor}fo:external-graphic src=url('{$varImagesDirectory}/hcfa-physician.jpg') height=22.8cm//fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table-- /fo:block /xsl:template Clay Leeds - [EMAIL PROTECTED] -- Web Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parsing string or numbers after x characters
Julien, On Jul 12, 2004, at 5:27 AM, Julien Barbin wrote: My problem is that I receive for example a date in a concatenated format: Ex: 20041207 And I have to retrieve it in a readable format through my xslt-fo transformation. Ex: 12 July 2004 I tried using substring for that, but I don't have any reference character to look for in order to parse. Is there a function which parses strings or numbers after a certain amount of characters directly. Thanks in advance for those which will respond. Julien This is more of an XSLT question that would be better made on an XSLT list, which you'll find on The FOP Mailing List page [1]. In particular, you want the XSLT List on the bottom of the page, but you'll find other good information there which you can use in the General Information section. Good luck! Web Maestro Clay p.s. Even better, you may not have to ask the question. The answer to your question is probably accessible from the FOP Resources page[2] in Dave Pawson's XSLT FAQ[3] [1] http://xml.apache.org/fop/maillist.html [2] http://xml.apache.org/fop/resources.html#documents [3] http://www.dpawson.co.uk/xsl/sect3/index.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bulleted List
Here's a good start (watch word wrap!): http://www.w3.org/TR/xsl/slice6.html#section-N17076-Formatting-Objects- for-Lists I might also recommend checking out this page: http://xml.apache.org/fop/resources.html It has a bunch of online resources that will be useful to you. In particular, the books on XSL-FO are especially helpful! Web Maestro Clay On Jul 10, 2004, at 2:35 AM, Varadharajan Sethuraman wrote: Hi, I have one xml file like following document object type=nbulletList1/object object type=nbulletList2/object object type=nbulletList3/object object type=sbulletList4/object object type=sbulletList5/object object type=sbulletList6/object object type=nbulletList7/object object type=nbulletList8/object /document what i want is, the output(pdf) should be 1. List1 2. List2 3. List3 List4 List5 List6 1. List7 2. List8 means if the type consecutive attributes of object is same then preparing one list(nbullet the number bullet other symbols) if you have any logic to implement this pls let me know ... Regards Varadharajan S - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF-PS-PDF with EPS
Wouter, FWIW, I would like to add that I've actually changed the graphics page already (I haven't COMMITTED the changes so you won't see them on the site yet). Please read the changes below, and help me make certain it adequately addresses the issue. I'm posting the entire EPS section below (the main addition is the new warning item toward the bottom--does anything else need to be changed?): section id=eps titleEPS/title pFOP provides support for two output targets:/p ul liPostScript (full support)./li li PDF (partial support). Due to the lack of a built-in PostScript interpreter, FOP can only embed the EPS file into the PDF. Acrobat Reader will not currently display the EPS (it doesn't have a PostScript interpreter, either) but it will be shown correctly when you print the PDF on a PostScript-capable printer. PostScript devices (including link href=http://www.ghostscript.com/;GhostScript/link) will render the EPS correctly. /li /ul warningWhen using link href=http://www.ghostscript.com/;GhostScript/link to display inline EPS, it has been link href=http://marc.theaimsgroup.com/?t=10891290142r=1w=2;reported that more recent versions have problems rendering inline EPS/link. Therefore it is recommended to use link href=http://www.ghostscript.com/doc/gnu/gnu706.htm;Ghostscript 7.06/link. If anyone has a solution to this problem, please send an e-mail to the FOP-User link href=http://xml.apache.org/fop/maillist.html;mailing list/link./warning p Other output targets can't be supported at the moment because FOP lacks a PostScript interpreter. /p /section I would also like to add, that my reason for asking Wouter to create a Bugzilla entry also deals with the fact that it would be nice to 'fix' the underlying problem (not just document it! :-D), and if we don't have a bugzilla report, it might not end up on our 'radar'... Thanks in advance for reporting this and any help you can provide! Web Maestro Clay On Jul 8, 2004, at 7:25 AM, Clay Leeds wrote: On Jul 8, 2004, at 12:08 AM, Wouter de Vaal wrote: Thanx! We switched from 8.11 to 7.06 and it also works with us now! Maybe something to add on the site? Regards, Wouter de Vaal Would you please file a BUG in bugzilla[1] so this issue can be tracked? It would help if you could test using other versions of Ghostscript, and include that information in your report. Thanks! Web Maestro Clay [1] http://xml.apache.org/fop/bugs.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EPS image printing problem
On Jul 9, 2004, at 6:27 AM, Peter Gustafsson wrote: You were right about the Ghostscript issue, installed version 7.04 and now the EPS image is shown in GSview. I just posted information I'm intending to COMMIT to the Graphics page RE: this issue in another POST[1] this morning. I understand there are issues with 8.x and that's primarily what my POST is about... Since I indicated Ghostscript users should use 7.06 in that POST, can you confirm whether or not your problem still exists in 7.06? Thanks! Web Maestro Clay [1] http://marc.theaimsgroup.com/?l=fop-userm=108938876703279w=2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FO table cell spacing
On Jul 9, 2004, at 5:14 AM, Amita Rathore wrote: Can we specify cell spacing for a xsl fo table? If possible, how can it be done. Thanks, Amita I would think this would be either: - a margin on each cell (with @border-collapse=collapse so you don't get larger cell-padding on inside vs. outside borders) - a margin on the block inside the cell - a border-width on the cell (but make the border-color the document background-color (e.g., 'white') Have you tried any or all of these? Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF-PS-PDF with EPS
On Jul 8, 2004, at 12:08 AM, Wouter de Vaal wrote: Thanx! We switched from 8.11 to 7.06 and it also works with us now! Maybe something to add on the site? Regards, Wouter de Vaal Would you please file a BUG in bugzilla[1] so this issue can be tracked? It would help if you could test using other versions of Ghostscript, and include that information in your report. Thanks! Web Maestro Clay [1] http://xml.apache.org/fop/bugs.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: line-height interpretation
Adam, On Jul 6, 2004, at 2:18 PM, Adam Augusta wrote: The 'line-height' property is supposed to specify the height of a text block as a multiple of the font size. The spec* says that the user agent may pick a reasonable multiplier, recommended between 1 and 1.2. I said Forget that! I want to my spacing to be deterministic, thank you very much. What is this, CSS? So I specified my own spacing. *http://www.w3.org/TR/xsl/slice7.html#line-height No matter what line height I pick, the engine seems to add 5pt plus a little more. So if I pick 17pt, I get 22pt+, and if I pick 7pt, I get 12pt+. The compliance page says that the property is fully implemented. So why am I getting this 5pt+ discrepancy? (Yes, line-height=1 gives the same result for me as line-height=14pt with a 14pt font. That is, 19pt+. Setting force/minimum/maximum etc has no effect.) As you can see, I set the border, padding, and spacing to 0. snip what=xsl-fo_content/ -Adam I don't know if it makes a difference, but it may help to know what the output target is (PDF? AWT? PS?) as well as the JVM/JDK. I've found kerning differences in output between AWT (-awt -print) vs. PDF, that is affected (exacerbated?) by the version of the Java Virtual Machine. I realize you are writing about line-height, but perhaps (hopefully?) this may contribute to a workaround. In either case, perhaps we need to update the /compliance.html... Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:marker initial child error
On Jul 1, 2004, at 7:57 AM, [EMAIL PROTECTED] wrote: Here is a sample table cell from the xalan processor (I stripped out almost anything that might cause an issue): fo:table-row fo:table-cell fo:marker marker-class-name=bill_of_ladingRBHZamp;P00111/fo:markerfo: marker marker-class-name=carrier/fo:marker marker-class-name=vesselVoyage//fo:marker /fo:table-cell /fo:table-row I get the following errors: [ERROR]: fo:marker must be an initial child,and 'marker-class-name' must be unique for same parent [ERROR]: fo:marker must be an initial child,and 'marker-class-name' must be unique for same parent It looks like the first marker is OK, but anything after that generates the error. Anything stand out? -Lou Since they must be unique, they can only be on the page once. I don't know what you're trying to do, but the way I use them is to place a Continued on next page item. My solution was to place the marker at the *end* of my document--you could place yours after the table (the table-footer probably wouldn't work since it needs to be unique): fo:page-sequence master-reference=repeating force-page-count=no-force fo:static-content flow-name=xsl-region-before fo:block padding=0pt xsl:use-attribute-sets=attributes_DEFAULT xsl:call-template name=tmpHeader/ /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:block xsl:use-attribute-sets=attributes_DEFAULT xsl:call-template name=tmpFooter/ /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block xsl:use-attribute-sets=attributes_DEFAULT xsl:call-template name=tmpBody/ fo:block padding=0pt font-size=1pt fo:marker marker-class-name=table-continued/ /fo:block /fo:block /fo:flow /fo:page-sequence Then I call it like this: !-- REGION-AFTER: tmpFooter TEMPLATE -- xsl:template name=tmpFooter fo:block padding-left=18pt fo:table border=0pt padding-bottom=0pt padding-right=0pt padding-before=4pt table-layout=fixed fo:table-column column-width=20cm/ fo:table-body fo:table-row fo:table-cell text-align=left padding-left=6pt fo:block text-align=left font-weight=bold fo:retrieve-marker retrieve-class-name=table-continued retrieve-position=last-starting-within-page retrieve-boundary=page/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block .. /xsl:template Hope this information is useful... Web Maestro Clay p.s. Also, I suspect markers were improved in fop-0.20.4 fop-0.20.5. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Metrics Files for OS X, and image errors
On Jun 29, 2004, at 7:59 AM, Derrick Shoemake wrote: As far as the path for the images make sure you use the absolute path (without the file:). Remember it's case sensitive as well. fo:external-graphic src=url('/Users/shoe/opt/fop/test.jpg')/ I'm going to look into the font issue later (I'm still working on some test stylesheets right now). I'll post what I find out about the fonts later if someone doesn't beat me too it. Derrick I'll echo Derrick, and also add that url(' and ') aren't necessary. Works like a charm with my OS X system: fo:external-graphic src=/Users/shoe/opt/fop/images/test.jpg/ In addition, 'relative' PATHs works as well as long as the 'images/' directory is a subdirectory of the XML source directory. fo:external-graphic src=images/test.jpg/ Good luck! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Printer PDF
On Jun 27, 2004, at 3:07 PM, J.Pietschmann wrote: Manoel Veríssimo dos Santos Neto wrote: I tested an example FopPrintServlet, this Class get a default printer with server and print the document. In this case the user don't see the document in the browser, because the document has print. I need found the default printer of client and redirect for this printer. The server can redirect this document because the printers are network print. How can I do that??? You can't. There is no standardized way to get the client's printer setup into a web server short of writing a signed Java applet with appropriate rights or using an ActiveX control (if the clients are IEx exclusively). Anyway, it's not a FOP problem. Try a more generalweb application development forum, preferably specializing in your client's browser. Oh, and what's wrong with pushing the PDF to the browser and tell the user to print it? J.Pietschmann Is it possible to post-process the FOP output PDF with iText, to add some sort of JavaScript 'print' command? I haven't tried such a thing, but it should be possible. I definitely would like to hear if this sort of thing has been tried before, and whether or not it works! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to keep the table`s columns description on the next page?
On Jun 22, 2004, at 4:36 AM, Milen Dimitrov wrote: Hi, can somebody help me with this issue: I have a very long tables that spreads on more than 1 page, and I want to have the columns titles on every page. I cannot put the columns titles in fo:region-before because the tables are different. Have you tried using the fo:table-header? I believe the purpose of this element (and similarly fo:table-footer) is to print the information on every page. Hope this helps! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hyphenation foundry
On Jun 20, 2004, at 12:14 PM, Simon Pepping wrote: Jörg, On Wed, Jun 16, 2004 at 11:15:42PM +0200, J.Pietschmann wrote: Simon Pepping wrote: I think it is time to create a project for the hyphenation files at Sourceforge. The project should be a home for all sorts of accessories to FOP, or even to FO processors in general. Do you want to participate? Do you know a nice name? Well, sf.net would appeal to a larger body of developers, I think, and is certainly easier to menage for small projects, but we can also ask on jakarta-commons, xml-commons and even declare it a FOP (or XML graphics) subproject. It is up to you to decide where you want your efforts to be host it. I am happy to present it in a sf.net project, but there is little more that I can do. Do you want to pursue these efforts further, or do you want to make them available to others who might be interested? I am afraid that is always a difficult proposition without active recruitment. Echoing Simon... Bring it on! The more (components, peripherals toys) the merrier!... However if active recruitment is required be prepared for... well, active recruiting... as for a project name, how about calling it: The XSL-FO Toybox = http://xslfo-toy-box.sourceforge.net/ or simply: The Toybox = http://toybox.sourceforge.net/ or: Toys http://toys.sourceforge.net/ Toys for Geeks == http://toys-for-geeks.sourceforge.net/ XML Toys http://xmltoys.sourceforge.net/ Java XML Toys = http://javaxmltoys.sourceforge.net/ or something... I think I like XMLToys... Anyway, I just uploaded http://cvs.apache.org/~pietsch/t.tar.gz which contains several unfinished stuff I produced the last year: - Utilities to generate tables for the Unicode line break property - A class keeping a line break state according to TR14, which should be easier to usee than the java.text.BreakIterator for FOP - A Java port of MySpell - An attempt at providing a layered hierarchy for spell checking and hyphenation interfaces. - A Java port of the link grammar parser (incomplete, badly designed, buggy and without approvement of the original authors, *please* use only for personal study, don't redistribute). - An attempt at a morphological analyzer for german words. Somehow, the simple port of patgen as well as other attempts at simplifying the current FOP hyphenator are missing, I hope I remember to upload them tomorrow. I see in the tar file two parts: java code and data. Would it be useful to indicate which parts of the code belong to each of the above items? Perhaps a classification system such as this for the project-name/applications/[insert apps here] project-name/peripherals/[insert peripherals here] project-name/examples/[insert examples here] project-name/so-on/[insert so-on here] project-name/docs/[insert docs here] project-name/wiki/[insert wiki here] buggy and without approvement of the original authors, *please* use only for personal study, don't redistribute). This would not exclude making it available on a public web page? Regarding your items to chew on, would you want these to be part of a web page for this code? Regards, Simon -- Simon Pepping home page: http://www.leverkruid.nl Sounds llike something of a non-trivial undertaking... :-) Sounds like fun! Web Maestro Clay - [EMAIL PROTECTED] --- My religion is simple. My religion is kindness. - His Holiness the 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a way to get the width of the current region-body?
On Jun 17, 2004, at 8:25 AM, Mike Kellstrand wrote: As I create a table and specify the column widths, it would be nice to know the width of the region-body to use in column width calculations. Is there any function that will return this value? Or do you have to set some layout variables at the top of the stylesheet and build off of those? Thanks, Mike I doubt that FOP can do it per se, but you could define it using a variable in the simple-page-master: fo:simple-page-master master-name=repeating page-height=28cm page-width={$varRepeatingPageWidth}cm margin-top=1cm margin-bottom=1cm margin-left=1cm margin-right=0cm Then, you could check against the variable for the page-width variable: $varRepeatingPageWidth I hope this helps! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What XSLT and XSL-FO editor do you use?
The only XSL-FO editors I'm aware of are listed on the FOP Resources page[1]. This discussion recently came up on this list, so if you check the archives, you might find something which leads to something. Please report back what works best for you, so the FOP community can benefit from your experience. Web Maestro Clay [1] http://xml.apache.org/fop/resources.html#products-editors On Jun 16, 2004, at 5:56 AM, Roger wrote: I'm wondering what editors you use to create your XSD, XSLT and XSL-FO documents. At the moment I'm using a trial version of Altova XMLSPY and Stylevision. XMLSpy is meant to create the xsd, and sample xml-data-documents. Stylevision is meant for the FO and XSLT templates. XMLSpy is okay as far as I can see, but Stylevision has one big drawback: you can't edit the code in it. It only has a wysiwyg editor, which works quite okay, but not always like I want it. Now I merely use it to create a quick-start template, and then edit in jEdit. With the proper plugins installed, jEdit works really nice. My problem is that I cannot get the new code back into Stylevision. At the Altova website they try to present this as a feature, but of course it's not. Do you know of any good wysiwyg editor for FO, and one that allows you to edit or import the code? I don't expect Dreamweaver quality. Other good tools are also welcome. XMLSpy works fine to create an XSD, but I've seen a lot of tools out there, so I'm wondering what your experiences are, what tips you have. Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development Version: xml+xsl - fo - rtf
On Jun 16, 2004, at 9:05 AM, Johannes Franz wrote: just managed to download and build the development version of fop. I want to create a rtf file from xml+xsl. Is there a possibillity to do something like that: ./fop.sh -xml xmlfile.xml -xsl xslfile.xsl -rtf rtfoutputfile.rtf or do i have to render the fo file with a standalone xslt preprocessor and then try the following ./fop.sh -fo fofile.fo -rtf rtffile.rtf? greetings, johannes. I'd thought there was some sort of 'extension' to FOP which did this (a la TiffRenderer[1]). Unfortunately, I was wrong. The resource I'd seen actually converts RTF into XSL-FO[2]. The FOP web site does have info on FOP Output Target=RTF [3], but unfortunately, it's a dead end: RTF This is currently not integrated with FOP but it will soon. This will create an rtf (rich text format) document that will attempt to contain as much information from the fo document as possible. If any of the fop-devs knows more about getting FOP to output to RTF, it would be great to update the web site to make the above actually contain useful information. I checked CVS for the FOP Output Target page (from whence the above quote was taken), but couldn't find any information on the subject. The RTF-related info appears to have either been entered into the FOP Output Targets page before it was brought into CVS, or it wasn't well-documented. Looking forward to resolving this so the web site can be udpated. Web Maestro Clay [1] TiffRenderer http://xml.apache.org/fop/resources.html#products-fop-add-ons [2] RTF2FO http://xml.apache.org/fop/resources.html#products-other [3] Output Target=RTF http://xml.apache.org/fop/output.html#rtf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development Version: xml+xsl - fo - rtf
On Jun 16, 2004, at 9:19 AM, Victor Mote wrote: Clay Leeds wrote: RTF This is currently not integrated with FOP but it will soon. This will create an rtf (rich text format) document that will attempt to contain as much information from the fo document as possible. If any of the fop-devs knows more about getting FOP to output to RTF, it would be great to update the web site to make the above actually contain useful information. I checked CVS for RTF support is much more robust in the development branch, thanks mostly to the jfor crew, led by Bertrand Delecretaz, and Peter Herweg's efforts to integrate it. However, since releases are not being made from the development branch yet, users will have to download and build it themselves, at their own risk. D'oh! I couldn't recall the title jfor... Thanks! the FOP Output Target page (from whence the above quote was taken), but couldn't find any information on the subject. The RTF-related info appears to have either been entered into the FOP Output Targets page before it was brought into CVS, or it wasn't well-documented. The web site, of course, refers to the released versions, and is accurate. OK. WRT the source file, I don't follow. I can see the content here: http://cvs.apache.org/viewcvs.cgi/xml-fop/src/documentation/content/ xdocs/ou tput.xml?rev=1.16only_with_tag=MAINview=markup at line 240. Victor Mote I see/saw the content as well. What I don't see is any reference to who or when the RTF information was put into the output.xml file. My hope was that information RE: who/when RTF info was put into the file would help determine who to ask for help on outputting to RTF. Fortunately, you've provided information about who might be able to respond to RTF questions (Bertrand Delecretaz and Peter Herweg). FWIW, my POST was mainly to get other fop-devs (like yourself) to pipe in about where to find help on FOP's RTF output capabilities and also to improve the site's RTF details. For example, it might be good to indicate on the FOP Output page that the RTF capabilities are in the DEV version, as well as where to look for more info on the subject (http://xml.apache.org/fop/dev/ FOP Resources--after adding http://www.jfor.org/ to the FOP Resources page :-)). On a related note, I found the FOP site's RTF I couldn't find before[1] (it was 'hidden' on the /fop/dev side). Also, I should've looked at the Team page[2] for more RTF info. Hope this helps! Web Maestro Clay [1] RTFLib page http://xml.apache.org/fop/dev/rtflib.html [2] FOP Team page http://xml.apache.org/fop/team.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hyphenation foundry [was: Re: proposed font project]
On Jun 16, 2004, at 12:20 PM, Simon Pepping wrote: Hi Clay, Hi Simon! On Sat, May 29, 2004 at 10:02:37PM -0700, Clay Leeds wrote: It would also be good to develop some sort of hyphenation foundry... I think it is time to create a project for the hyphenation files at Sourceforge. The project should be a home for all sorts of accessories to FOP, or even to FO processors in general. Do you want to participate? Do you know a nice name? Regards, Simon Sure! I'd love to participate! I don't know how yet, though... Ideas for names? I guess it depends on how 'we' want to position this foundry. Is the foundry geared toward FOP users? * fopstuff * fop-stuff * fostuff * fo-stuff * xslfostuff * xsl-fo-stuff * foptoys * fop-toys * fotoys * fo-toys * xslfotoys * xsl-fo-toys * fopaccessories * fop-accessories * foaccessories * fo-accessories * xslfoaccessories * xsl-fo-accessories * fopperipherals * fop-peripherals * foperipherals * fo-peripherals * xslfoperipherals * xsl-fo-peripherals I don't have a particular favorite, although since there are so many, it wouldn't be very helpful if I didn't 'choose' one or two. I like the ones *with* the hyphen (no pun intended! ;-) -- which makes it easier to read): * xsl-fo-toys * xsl-fo-stuff In addition, since we want it to be of broader use (i.e., not just FOP), I would think we'd want to use one of the 'fo' or 'xsl-fo' prefixes (with or without hyphens) over the 'fop' based ones. Hope this helps! Web Maestro Clay [EMAIL PROTECTED] --- There are only 10 kinds of people in the world: those who understand binary and those who don't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: font embedding and encoding, ANSI vs CID
On Jun 15, 2004, at 7:57 AM, [EMAIL PROTECTED] wrote: SNIP'd I am using iText to post process the document to encrypt it and prevent editing, etc, perhaps it is the combination of CID and encryption, I'm not really sure. At any rate, I need to keep the encryption. SNIP'd Any help is greatly appreciated! Thanks, dave Have you tried using FOP's encryption functionality[1]? I hear it's nice (although I haven't used it yet...). BTW, it would be nice to get feedback how it compares to using iText for the same task. Comparisons would be appreciated based on: speed; functionality; implementation; ease of use; resulting file size: and anything else you can think of! Web Maestro Clay [1] http://xml.apache.org/fop/pdfencryption.html Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 + Encryption
Martin, Since it now works, I assume this thread is 'closed'. Would you wrap up this thread with a POST including a complete list of the steps you took to make encryption work with Coccoon? It would be great to archive anecdotes about how to make it work. Please include any problems you came across--and their solutions! ;-)--as well. Thank you! Web Maestro Clay On Jun 10, 2004, at 5:56 AM, Martin Mauri wrote: Ok, now I managed to install the crypto api and it seems everything's ok, anyway, the reason it doesn't seem to work is that Cocoon isn't reading the config file, or at least it isn't considering it...oops, my head's exploding... -Mensaje original- De: Martin Mauri [mailto:[EMAIL PROTECTED] Enviado el: Miercoles, 09 de Junio de 2004 10:39 a.m. Para: [EMAIL PROTECTED] Asunto: RE: Cocoon 2.1 + Encryption Andreas, it's me again... the point is that I've downloaded and installed 2.1.5-dev, and added the proper jar in the lib directory...now I can see tha jar loading in the log, but when I run my app it says: org.apache.cocoon.ProcessingException: Lookup of serializer 'fo2pdf' failed at [unknown location]: org.apache.avalon.framework.component.ComponentException: serializers: ComponentSelector could not access the Component for hint [fo2pdf] (key [fo2pdf]) cause: java.lang.IllegalStateException: Cannot find any provider supporting RC4 I don't know why can't it find it as the jar is loaded, here's the log: 10:38:34,975 DEBUG [SARDeployer] deployed classes for file:/usr/local/jboss-3.2.3/server/default/lib/bcprov-jdk14-123.jar any idea? thanks! -Mensaje original- De: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] Enviado el: Martes, 08 de Junio de 2004 05:36 p.m. Para: [EMAIL PROTECTED] Asunto: RE: Cocoon 2.1 + Encryption -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 juni 2004 22:19 oops damn it! I thought it was 2.1, but not 2.1.5-dev, where can I get it ? the version that appears in http://apache.mesi.com.ar/cocoon/cocoon-2.1.5-src.tar.gz is right? Sorry, no idea. Ask again on cocoon-user list. Greetz, Andreas - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Size Calculations
Greetings, On Jun 8, 2004, at 1:55 PM, J.Pietschmann wrote: Darn, the mail server failed yesterday. Resending. And I thought it was just me... Peter B. West wrote: I think the problem is that pixels are not well-defined. In general, a pixel is an output-dependent unit. On a printer, a pixel might be 1/2400 inch, on the screen, 1/96. The Recommendation warns about this in 5.9.13.1 Pixels. I suggest that anyone tempted to define lengths in px read that section of the Recommendation. It's not so bad if the units are completely internal, that is, that it only affects text, tables and the like. But when you import an image constructed externally, and defined in pixels for God knows what output device, you are asking for trouble. Well, perhaps we should use wording like this in graphics.xml: FOP always assumes a resolution of 72dpi on encountering pixel measurements, regardless of the output device, and converts all length measured in pixels in millipoints using 1/72 pixels per inch as conversion factor. The layout stage doesn't use pixels, even if the final rendering is on a bitmapped device like the monitor. A bitmapped image without explicit measurements is assumed to have the actual pixel counts as measurements. Any resolution declaration in the image metadata is ignored. I was about to make these changes, when I realized I wasn't certain where these edits would be made: Overview of Graphics Support http://xml.apache.org/fop/graphics.html#support-overview Graphics Resolution http://xml.apache.org/fop/graphics.html#resolution I am leaning towards the latter. Which leads to the question: replace the first paragraph? BTW, nice work, Jorg! BTW does someone know how resolution is stored in GIFs, and whether the Java image API can retrieve this? I was under the impression GIF files were always 8-bit (256 color) at 72dpi. This search gave me some nice hits: http://www.google.com/search?q=GIF+resolutionie=UTF-8oe=UTF-8 Bottom line - don't define *anything* in px. Yeah, double this. I have no idea why people are confused to no end by this issue. J.Pietschmann If we put it on the site in a WARNING box, it'll resonate... Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Size Calculations
On Jun 7, 2004, at 2:13 AM, Chris Bowditch wrote: Christian Hattemer wrote: SNIP'd what='overflow stuff' The images are a bunch of line drawings and other illustrations from a website I converted into DocBook. The DocBook stylesheets include the images like this: fo:external-graphic src=url(images/NetworkModel/Basics/BachmanDiagram.GIF) width=319px height=159px content-width=auto content-height=auto/ So the image dimensions are specified. But it seems the unit px isn't enough to make the images look nice. Looking at the Graphics Resolution section it seems that the dimensions should be specified in inches to stop using the default 72 dpi. Thats right pixel measurements are not enough information for FOP to scale the image to a fixed size. FOP would need to know a resolution as well, but that isnt implemented right now. The only way FOP will scale the image to a particular size is if you tell FOP the measurement. If it's true that graphics measurements specified in INCHES yields better results than PX, that certainly is news, and would (if reproducible) warrant special mention on the FOP Graphics page. Can you also do a test to see if the results are similar if you specify mm and cm (millimeters centimeters of course ;-)) as well? BTW, I don't know if this is related, but GIF images do not scale well, as they are a form of a INDEXED BITMAP image. JPG images scale much better. This could be part of the problem. If you're working with line drawings, perhaps SVG might be a better format to use in your documents. This leads to the question: How can I find out the actual resolution of my images and calculate the dimensions in inches? Do I have to modify the generated fo afterwards to include the calculated dimensions? Dont you know the resolution of the images? It is difficult for me to answer this question as I dont know where you get the images from. In my environment, the system responsible for generating the images stores the measurements in cm/mm/inches along with the resolution and the image itself. Chris Can't you just load the image directly into a web browser: images/NetworkModel/Basics/BachmanDiagram.GIF Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can I do to keep always two words together
On Jun 4, 2004, at 7:40 AM, Chris Bowditch wrote: [EMAIL PROTECTED] wrote: snip/ how can I do to keep alfred and junior always togehter? In fact fop can have the place to write alfred at the end of the line but not the place for junior. Then junior is written on the next line. How can I do to force fop to write both alfred junior. You could place the non-breaking space between them: #160; Like this: alfred#160;junior Hope this helps! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does FOP support linearization
On Jun 4, 2004, at 11:13 AM, Brown, James wrote: Hopefully a quick question. Does FOP support PDF linearization as described at the following links: http://www.citationsoftware.com/faqPdfLinearization.htm http://partners.adobe.com/asn/developer/acrosdk/docs/filefmtspecs/ PDFReference.pdf I don't think FOP supports this, however it may be possible to post-process PDF output using iText to get this to occur. If you feel like adding this to the development branch yourself (maintenance branch is frozen), I'm sure it would be appreciated. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Size Issue
On Jun 2, 2004, at 6:42 PM, Benjohn P. Villedo wrote: On 2 Jun 2004 at 14:51, Chris Bowditch wrote: One possible cause is that you havent specified width and height attributes on the external-graphic tag. If you dont specify the width and height, FOP assumes 72dpi and if you have a high res graphic being rendered at 72dpi the result is the dimensions are bigger than a page and the image will be dropped. Do you see any warnings at the console when you run from the command line? Chris very true i didn't specify width and height because the images that are being attached to the pdf have variable dimensions. hmm so that's the behaviour of FOP. i actually tried changing the page size to 40x40inches and still the image did not display... as with regards to the command line warnings... i don't see them if there are any coz i just access the xml file via browser say i resulted to 1234.xml file i access it via http://FQDN:8080/cocoon/xmlfiles/1234.pdf hope this information could further give enlightenment to this case... any other suggestions? all the best!!! pal, benjohn This link has some good information about Graphics Resolution: http://xml.apache.org/fop/graphics.html#resolution In partciular, it indicates that if you specify a single dimension, it will proprotionately scale the image to fit. Thus, you could specify a maximum width (or height) and it would scale to that size. You just need to be sure the corresponding image dimension doesn't put the image off the page. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems by printing a PDF
Jan, On Jun 2, 2004, at 10:25 PM, Jan Zmitko wrote: Hello Clay, I´ve don´t find an answer in the FAQ. Do you mean a specific acticle? Jan Sorry I should've provided a link to issue 7b: http://xml.apache.org/fop/faq.html#iex-pdf-print-from-browser Hope this helps! If not, please post back! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dimension math, i.e. width={$x+10}
On Jun 3, 2004, at 7:37 AM, Mike Kellstrand wrote: I need to layout some blocks and SVG's using dimensions based on input values. I can easily use the original input values, i.e. width={$x}, but I also need to do some calculations. For instance, if I want a box around my SVG, I need to either draw it in the SVG at 1px smaller or use a block-container at 1px larger. I've tried some examples I've found online (like width={$x+10} ), but FOP doesn't like it. What is the correct syntax for doing this type of thing? Thanks, Mike I *think* the problem is that $x probably is equivalent to '1px' which is a string of the characters '1'+'p'+'x' and there may be difficulties with adding a number to a string. There is a recent discussion on this in the archives, where someone provided some insight into how I was not completely correct on that assumption with one aspect of XSL-FO (I don't recall exactly which at the moment) however, that discussion may not be appropriate for SVG calculation (I don't know). What should be possible, is for you to modify your system to strip the 'px' for the purposes of the calculation with something like: width={concat(substring($x,length()-2)+10,'px')} I *hope* that'll do the trick, but you should see where I'm trying to go with it... Hope this helps! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sec unclas: Maximum coordinate size
Jeremy, On Jun 2, 2004, at 7:00 AM, Chris Bowditch wrote: Baker1, Jeremy wrote: I am attempting to print SVG maps to scale using FOP. FOP uses Batik to render SVG. It appears that Batik cannot handle six digit coordinates. Unfortunately these are common when dealing with maps using a Universal Transvers Mercator projection. For instance the y coordinate of a point is its distance from either the North or South Pole in metres. My questions are: * am I right in thinking that this limit exists in Batik as used by FOP? Well the problem isnt in Batik, the bug is in the FOP to Batik bridge code. Try running your SVG in squiggle to prove this. * is there any way around it (short of recalculating all the SVG with all coordinates reduced by a scale factor)? I believe you are in luck. A very similar issue has already been reported in the following bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24666 There is a patch you can apply to the source of the maintenance code 0.20.5 and it may well fix the problem you are having with 6 digit coordinates. However, there are no guarantees, since the problem above is to do with transforms rather than actual coordinates, so it might not work. Worth a try either way. snip/ Chris Please don't hesitate to report back on your progress on this issue. This information would be good to add to the FOP Graphics page... Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems by printing a PDF
Jan, On Jun 2, 2004, at 1:59 PM, Jan Zmitko wrote: Hallo Together, we and recpectively some of our customers has Problems with printing PDF´s to paper. The Acrobat Reader shows a Message that Printing is not possible (Now I don´t know the excactly wording). I´ve seen that some these problems are dependend of the Acrobat Reader function Open Acrobat within Browser. Does any one know more about this problem. Is anywhere a paper with a statement, that is a problem/bug of Internet Explorer or Acrobat Reader? Thank a lot, Jan This might be related to this FAQ: http://xml.apache.org/fop/faq.html If you the instructions there do not help, please ask your question on the list again. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]