OT: printing on linux
Can anyone provide any pointers for printing FOP output on Linux? I'm struggling to find a general solution for printing FOP output from Linux that works on enough different printers - or is there a minimum hardware requirement? PCL seems to work most of the time, but some files produce garbage on some printers consistently, while very similar files work on the same printer (no idea why). PS PDF require drivers won't print landscape correctly as is (portrait clipped or shrunk). Feeding PDF through acroread printing the resultant landscape ps works, but on some printers some files print Error: /undefined in eartomark, while other ps files generated the same way print out OK on the same printer. I haven't tried fop -print or -svg yet : any comments? Regards, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: PDF: no border, file name
Uups, my mistake. But I wonder why border attributes are defined for fo:region-body but must be 0.? Sascha -Ursprüngliche Nachricht- Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 26. September 2004 22:31 An: [EMAIL PROTECTED] Betreff: Re: AW: PDF: no border, file name It is true that border attributes are defined for fo:region-body but if you read the whole chapter 6.4.13, you will find the following sentence: In version 1.0 of this Recommendation, the values of the padding and border-width traits must be 0. This has the effect that fo:region-body may not have a border (if I read that correctly). On 26.09.2004 21:02:30 Sascha Schmidt wrote: Just want to say, that IMHO the spec allows border attributes for fo:region-body. See here: http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_region-body ... The following properties apply to this formatting object (fo:region-body): [7.7 Common Border, Padding, and Background Properties] [7.10 Common Margin Properties-Block] [7.20.1 clip] [7.25.2 column-count] [7.25.3 column-gap] [7.13.4 display-align] [7.20.2 overflow] [7.25.17 region-name] [7.20.3 reference-orientation] [7.27.7 writing-mode] 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]
Re: Avoid empty pages
My page breaks are right, i had another problem so it generates a emtpy page. Thanks nevertheless. Sven J.Pietschmann wrote: Sven Waibel wrote: Yes, but how can i create a page break only if content follows? It depends on your source XML and/or how you generate the FO document. There is really no way to tell without you giving a few more details. J.Pietschmann - 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: [work] Re: Avery labels
Hi, A very long time ago, I've tried the following code, witch could give you an answer (this is not very academic): xsl:if test=position() mod 3 =1 !-- new row -- xsl:text disable-output-escaping=yeslt;fo:table-rowgt;/xsl:text /xsl:if xsl:if test=position() mod 3 =1 xsl:text disable-output-escaping=yeslt;/fo:table-rowgt;/xsl:text /xsl:if Bye Pascal -Message d'origine- De : Frank Daly [mailto:[EMAIL PROTECTED] Envoyé : vendredi 24 septembre 2004 19:07 À : [EMAIL PROTECTED] Objet : RE: [work] Re: Avery labels Thanks again. This has to be the most polite and friendly user group around! Frank -Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: 24 September 2004 05:31 To: [EMAIL PROTECTED] Subject: 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]
Re: [work] Re: Avery labels
This is not only not very academic, it's plain ugly, error-prone, violates XML concepts and works only if you don't connect XSLT and FOP using SAX. You should NEVER do something like that. Get a good XSLT book. On 27.09.2004 09:14:53 x x x x x x x wrote: Hi, A very long time ago, I've tried the following code, witch could give you an answer (this is not very academic): xsl:if test=position() mod 3 =1 !-- new row -- xsl:text disable-output-escaping=yeslt;fo:table-rowgt;/xsl:text /xsl:if xsl:if test=position() mod 3 =1 xsl:text disable-output-escaping=yeslt;/fo:table-rowgt;/xsl:text /xsl:if Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [work] Re: Avery labels
Hi Jeremias Maerki wrote: This is not only not very academic, it's plain ugly, error-prone, violates XML concepts and works only if you don't connect XSLT and FOP using SAX. You should NEVER do something like that. I agree. Get a good XSLT book. The best for me is XSLT - Working with XML and HTML, by Khun Yee Fung. This is my opinion a I share it. Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSLT transformation to PDF, Chinese characters lost
Mike, This article would help you. http://www.javaranch.com/journal/200409/Journal200409.jsp#a9 = Creating Multiple Language PDF using Apache FOP. Regards Balaji --- Jeremias Maerki [EMAIL PROTECTED] wrote: On 23.09.2004 20:58:08 Mike J Boyersmith wrote: On 23.09.2004 20:24:22 Mike J Boyersmith wrote: Problem: generated PDF file shows '#' characters instead of Chinese characters. As you probably found out yourself, this here applies: http://xml.apache.org/fop/faq.html#pdf-characters yup saw that, I found the FOP examples to... but not One of them shows how to do a end to end walk through of dealing with language/i18n type issues :(. That would be a great addition to the examples collection. You could write that for us when you've got it working. It's the cool thing about Open Source: Everybody can help. :-) snip/ This all works great BUT!! The problem is that on Chinese if I have text that has Chinese characters they are replaced with '#' characters, and I can figure no way around this…. So. Digging around I see that I need to embed fonts, but How do I do this programmatically? Create the font metrics XML for your TrueType fonts as described here: http://xml.apache.org/fop/fonts.html Then use the userconfig.xml as described here: http://xml.apache.org/fop/embedding.html#config-external It's probably best to try on the command-line first and then port the whole thing into Java How do I do this so it works on Windows and Linux? Don't worry about that. It works the same way on both platforms. That's because FOP uses its own font subsystem for PDF and PS output. Would be nice if I could just specify font-family, and it would all work, but guess I'm dreaming. will try walking through the problem from the command line as you suggested. No dreaming, that's the plan. It just didn't happen, yet. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ERROR -2
Thanks, Ive canned the lazy Xalan option and rewriting my xslt/html in xslt/fo so hopefully Ill avoid this error. Thanks for your help everyone. Great user group. -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: 24 September 2004 23:21 To: [EMAIL PROTECTED] Subject: Re: ERROR -2 J.Pietschmann wrote: No idea where this comes from. Anyone else got an idea? It's a known Xalan bug. Darn, I confused it with the Xalan 2.0 bug which printed a +N sometimes. J.Pietschmann - 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]
What is the avalon-framework for ?
Hi, In out web application I have to log with log4j. So dont want to log with org.apache.avalon.framework.logger.Logger. Unfortunately Driver driver = new Driver(foFile,null); (PrintServlet.java: 117) seems to need the avalon-framework. java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger at.syslog.kweb.core.util.print.PrintServlet.renderFO(PrintServlet.java:117) I do not set driver.setLogger(...) so why does FOP need the avalon-framework? Wolfgang
AW: What is the avalon-framework for ?
Hi, See http://avalon.apache.org/ :-). BTW, the Avalon logger abstracts from concrete (implemented) loggers like Log4J, LogKit, JDK 1.4 Logger and so on. Sascha NORTHBIT Sascha Schmidt [EMAIL PROTECTED] www.northbit.de Von: Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED] Gesendet: Montag, 27. September 2004 12:36 An: FOP Betreff: What is the avalon-framework for ? Hi, In out web application I have to log with log4j. So dont want to log with org.apache.avalon.framework.logger.Logger. Unfortunately Driver driver = new Driver(foFile,null); (PrintServlet.java: 117) seems to need the avalon-framework. java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger at.syslog.kweb.core.util.print.PrintServlet.renderFO(PrintServlet.java:117) I do not set driver.setLogger(...) so why does FOP need the avalon-framework? Wolfgang
Table borders
Has anyone got an example of a table that prints out its borders. Ive used a table example from the Apache website but I dont get any borders shown in the output pdf. In addition I have specified the border-start-color, border-top-width, etc to try and force a border to show but with no result. Any ideas? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Table borders
Forget my request for information. It was just a matter of playing with some of the table and table-cell properties, namely setting the border-*-style attributes to solid. eg fo:table-cell border-before-style=solid border-after-style=solid border-start-style=solid border-end-style=solid border-top-style=solid border-bottom-style=solid border-left-style=solid border-right-style=solid border-top-width=thin border-bottom-width=thin border-left-width=thin border-right-width=thin border-start-color=red border-end-color=red border-left-color=red border-right-color=red border-before-width=thin border-after-width=thin border-start-width=thin border-end-width=thin border-after-color=red border-before-color=red border-top-color=red border-bottom-color=red It may be overkill but it got the borders printed ... -Original Message- From: Mark Donnelly [mailto:[EMAIL PROTECTED] Sent: 27 September 2004 12:24 To: '[EMAIL PROTECTED]' Subject: Table borders Has anyone got an example of a table that prints out its borders. Ive used a table example from the Apache website but I dont get any borders shown in the output pdf. In addition I have specified the border-start-color, border-top-width, etc to try and force a border to show but with no result. Any ideas? - 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: Table borders
Hi Mark, Has anyone got an example of a table that prints out its borders. This (generated) one works for me: fo:table border-before-width.conditionality=retain border-collapse=collapse border-left-style=solid border-right-style=solid border-top-style=solid border-bottom-style=solid border-left-width=0.5pt border-right-width=0.5pt border-top-width=0.5pt border-bottom-width=0.5pt border-left-color=black border-right-color=black border-top-color=black border-bottom-color=black table-layout=fixed width=100% Perhaps border-style is missing in yours? Greetings, Paul Vinkenoog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: table processing warning
You can try this also xsl:attribute-set name=table-structure xsl:attribute name=table-layoutfixed/xsl:attribute xsl:attribute name=space-before0pt/xsl:attribute xsl:attribute name=space-after0pt/xsl:attribute xsl:attribute name=border2px/xsl:attribute xsl:attribute name=border-styleoutset/xsl:attribute xsl:attribute name=border-collapseseparate/xsl:attribute xsl:attribute name=border-spacing2px/xsl:attribute /xsl:attribute-set fo:table xsl:use-attribute-sets=table-structure xsl:for-each select=tr|thead/tr|tbody/tr xsl:sort select=count(td|th) data-type=number order=descending/ xsl:if test=position()=1 xsl:for-each select=td|th fo:table-column/ /xsl:for-each /xsl:if /xsl:for-each /fo:table cheers george -Original Message- From: James Steven [mailto:[EMAIL PROTECTED] Sent: Monday, September 27, 2004 6:02 PM To: [EMAIL PROTECTED] Subject: table processing warning Hello When processing xml using FOP 0.20.5rc3a the command keeps returning two warnings. These are: [WARNING] current implementation of tables requires a table-column for each column, indicating column-width [WARNING] Some static content could not fit in the area. A pdf document is returned ok, but obviously there are formatting errors. I am interested in what might be causing the first of these. There are several tables in the xsl-fo which I have shown below and I have made sure the number of table-columns and table-cells correspond and that each column has a column width specified but this warning continues. What is it referring to? Thanks for any help. James fo:table table-layout=fixed fo:table-column column-width=8mm / fo:table-column column-width=90mm / fo:table-column column-width=85mm / fo:table-column column-width=30mm / fo:table-column column-width=70mm / fo:table-body fo:table-row fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell /fo:table-row /fo:table-body /fo:table fo:table table-layout=fixed fo:table-column column-width=13mm / fo:table-column column-width=23mm / fo:table-column column-width=37mm / fo:table-column column-width=37mm / fo:table-column column-width=25mm / fo:table-column column-width=18mm / fo:table-column column-width=22mm / fo:table-column column-width=25mm / fo:table-column column-width=25mm / fo:table-column column-width=11mm / fo:table-column column-width=8mm / fo:table-column column-width=16mm / fo:table-column column-width=24mm / fo:table-body fo:table-row fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell
table processing warning
Hello When processing xml using FOP 0.20.5rc3a the command keeps returning two warnings. These are: [WARNING] current implementation of tables requires a table-column for each column, indicating column-width [WARNING] Some static content could not fit in the area. A pdf document is returned ok, but obviously there are formatting errors. I am interested in what might be causing the first of these. There are several tables in the xsl-fo which I have shown below and I have made sure the number of table-columns and table-cells correspond and that each column has a column width specified but this warning continues. What is it referring to? Thanks for any help. James fo:table table-layout=fixed fo:table-column column-width=8mm / fo:table-column column-width=90mm / fo:table-column column-width=85mm / fo:table-column column-width=30mm / fo:table-column column-width=70mm / fo:table-body fo:table-row fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell /fo:table-row /fo:table-body /fo:table fo:table table-layout=fixed fo:table-column column-width=13mm / fo:table-column column-width=23mm / fo:table-column column-width=37mm / fo:table-column column-width=37mm / fo:table-column column-width=25mm / fo:table-column column-width=18mm / fo:table-column column-width=22mm / fo:table-column column-width=25mm / fo:table-column column-width=25mm / fo:table-column column-width=11mm / fo:table-column column-width=8mm / fo:table-column column-width=16mm / fo:table-column column-width=24mm / fo:table-body fo:table-row fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell fo:table-cell /fo:table-cell /fo:table-row /fo:table-body /fo:table fo:table table-layout=fixed fo:table-column column-width=3mm / fo:table-column column-width=23mm / fo:table-column column-width=37mm / fo:table-column column-width=37mm / fo:table-column column-width=25mm / fo:table-column column-width=18mm / fo:table-column column-width=22mm / fo:table-column column-width=25mm / fo:table-column column-width=25mm / fo:table-column column-width=11mm / fo:table-column column-width=8mm /
Table column widths
The next chapter in my attempt to get my tables converted. Ive set up some column widths at the front of my table but they do not appear to be reflected in the finished document. The columns are set up as: fo:table table-layout=fixed width=267mm fo:table-column column-width=14mm/fo:table-column column-width=28mm /fo:table-column column-width=42mm /fo:table-column column-width=83mm /fo:table-column column-width=20mm /fo:table-column column-width=20mm /fo:table-column column-width=20mm /fo:table-column column-width=20mm /fo:table-column column-width=20mm / I tried with the table-layout attribute as fixed as well with the same non result. The columns do not appear to be exactly equally spaced. The first column being twice the size of the last five, which is not what I asked for. It does appear that the requested column widths have been overridden in favour of some default guestimate calculation. Once again, does anyone have a good example of some xsl-fo with column widths that work? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]