RE: br in XSLFO
If you don't want to nest blocks, you can just put a fo:block/ anywhere you would otherwise put a br/. -Original Message- From: Gang Li [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 3:00 PM To: fop-users@xmlgraphics.apache.org Subject: br in XSLFO Anybody know how can I get a line break like br in HTML? Thanks. - 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: representative example needed - success story
I suppose now is a good time to share my experience with FOP with the rest of the mailing list, particularly the FOP developers. I'm a software developer working for a company that does health care administration services for many large US companies. Many of these clients have former employees who enjoy COBRA benefits, others provide subsidized benefits for their employees or retired former employees. We've been using FOP for well over a year now, creating over 35000 invoices per month, most of which are available to our participants online as a static document that they can view or download. We're also beginning to use FOP to generate all of our client level reports, although we have yet to undertake the task of converting the old C++ programs that currently generate the reports in HTML ;). If that's not enough, we're just finishing up a system to generate all types of different healthcare-related participant letters such as open enrollment forms using FOP for rendering. As for the future, I've just finished implementing an OCR scanline (using an embedded OCR font) and POSTNET barcode (using the fabulous barcode4j package at http://barcode4j.krysalis.org) on our individual invoice stub to save money and time spent matching payments to participants. In other words, much thanks to all the FOP developers past, present, and future, for putting so much time into this great product! Mike -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: Saturday, February 05, 2005 8:48 AM To: [EMAIL PROTECTED] Subject: Re: representative example needed Thanks! Success stories ([1] is my favorite)--as well as failures (honesty of its limitations also being helpful in increasing confidence in FOP)--are always welcome on this list. Glen [1] http://marc.theaimsgroup.com/?l=fop-userm=107763815607390w=2 --- Markus Rietzler [EMAIL PROTECTED] wrote: we are using FOP to generate tickets for an online-ticketing-solution. for certain events listed in our online calendar it is possible to order tickets online. payments in the online-shop are handled via bank account or credit card. after purchase the ticket is produced as a pdf document. this pdf file can be downloaded and printed out and provides all infos to attend the event. at the moment we are working to implement a seat reservation module for our online ticket shop. markus rietzler RIETZLER_SOFTWARE/ - 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: last page / footer
It seems I'm in the same position, however I need hash marks in the page footer which differ on the last page so that a folding machine recognizes the end of the document. Does anyone know of a workaround for this situation? -Original Message- From: Arun Sinha [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:00 PM To: [EMAIL PROTECTED] Subject: last page / footer Hi, I am using FOP and I am new to the XSL:FO. FOP doesn't support :- fo:conditional-page-master-reference master-reference=last page-position=last / And my requirement is as follows :- If the document consists of more than one page then the page except the last page should be as follows :- headerheader info/header pagepage content/page footerPage Totals (Runnint Total) Continued . /footer and the last page should be :- headerheader info/header pagepage content/page footerDocument Totals/footer If the document consists of only one page then it should be as follows :- headerheader info/header pagepage content/page footerDocument Totals/footer I tried using different page sequences but couldn't achieve it. Then I tried using marker but still couldn't do so. Anybody having a workaround for this situation or useful tips? Please note that the page content is being printed in a loop. Another point that I found surprising is that while retrieving the marker value I used a syntax (which was wrong) fo:retrieve-marker marker-class-name=abc instead of fo:retrieve-marker retrieve-class-name=abc. The FOP didn't report any error or warning. Thanks in advance. Arun _ Glamour, lifestyle, health. Get all the fundas you need. http://www.msn.co.in/cinema/ At MSN Entertainment! - 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: How to change the size of a PDF page in XSL
Title: Message I believe page size is defined in your page-master setup. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 9:37 AMTo: [EMAIL PROTECTED]Subject: Re: How to change the size of a PDF page in XSL I have to take PDF printouts in A4 and letter size. Being invoice docs I need to make sure the "Address" section is visible thru the addres box on letter/a4 envelopes. I tried to adjust the header and footer section of PDF to accomodate this reqt. Specifically I dont know how to tell XSL that the PDF needs to be on A4 or letter..Let me know if you find out.. Manoj -Juan Manuel Bellina [EMAIL PROTECTED] wrote: -To: [EMAIL PROTECTED]From: Juan Manuel Bellina [EMAIL PROTECTED]Date: 11/05/2004 05:21AMSubject: How to change the size of a PDF page in XSLIhaveaXSLtemplatewithIdefiniedsomedayago.ItrendersPDFpagesinA4sizebutnowIwanttomakethepagesinlettersize.DoessomebodyknowshowcanImakethischangeinmyXSLtemplate?Thanks,JuanM.__DoyouYahoo!?CheckoutthenewYahoo!FrontPage.www.yahoo.com-Tounsubscribe,e-mail:[EMAIL PROTECTED]Foradditionalcommands,e-mail:[EMAIL PROTECTED]
RE: problem converting TTF using TTFReader
Thank you for your reply; unfortunately I got the same output when giving TTFReader the '-enc ansi' option. [EMAIL PROTECTED]$ java -cp ~/src/fop-0.20.5/build/fop.jar:~/src/fop-0.20.5/lib/avalon-framework-cvs-20020806.jar:~/src/fop-0.20.5/lib/xercesImpl-2.2.1.jar:~/src/fop-0.20.5/lib/xalan-2.4.1.jar org.apache.fop.fonts.apps.TTFReader -enc ansi ~/fonts/OCR/OCR-A.TTF ~/fonts/OCR/OCR.xml TTF Reader v1.1.1 Reading /home/mpartridge/fonts/OCR/OCR-A.TTF... Number of glyphs in font: 115 Unicode cmap table not present java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:449) at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:439) at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:222) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:184) I've been searching for ways to generate a Unicode cmap table and I've found tools to translate cmap tables but nothing to create one in an existing font. If anyone knows of an app that can do this, please let me know. Mike Partridge -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Sat 10/30/2004 12:03 PM To: [EMAIL PROTECTED] Cc: Subject:Re: problem converting TTF using TTFReader Partridge, Michael wrote: I get the following output when attempting to generate a font metrics file from an OCR true type font: ... Unicode cmap table not present java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:449) ... Is this a problem with the font file itself? Yes. It is common for OCR and barcode fonts to omit the cmap, for whatever reason. Try the telliung TTFReader to use winansi encoding, assuming the character range in the font fits the encodable range. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem converting TTF using TTFReader
I get the following output when attempting to generate a font metrics file from an OCR true type font: -- TTF Reader v1.1.1 Reading /home/mpartridge/fonts/OCR/OCR-A.TTF... Number of glyphs in font: 115 Unicode cmap table not present java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:449) at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:439) at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:222) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:184) -- Here is the command line I'm using (on Solaris): java -cp ~/src/fop-0.20.5/build/fop.jar:~/src/fop-0.20.5/lib/avalon-framework-cvs-20020806.jar:~/src/fop-0.20.5/lib/xercesImpl-2.2.1.jar:~/src/fop-0.20.5/lib/xalan-2.4.1.jar org.apache.fop.fonts.apps.TTFReader ~/fonts/OCR/OCR-A.TTF ~/fonts/OCR/OCR.xml Is this a problem with the font file itself? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP locks output file under WinXP
The file you're trying to create when they get that message must be the same path/name as one they already have open. It happens to me in 2k and XP; I don't know that Acrobat ever lets you overwrite a file it already has open. -Original Message- From: Nicolas Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 9:45 AM To: [EMAIL PROTECTED] Subject: FOP locks output file under WinXP Hi there! I've embedded FOP 0.20.4 in an application. I use it to create a PDF file and launch Acrobat to display the generated file. With Linux and Win98 this works fine. But some of my users use WinXP and have the problem, that Acrobat Reader [6.0] cannot open the generated PDF file because it is still in use by an other application. [JRE 1.4.1] Here is some code to demonstrate the problem. args[0] is the input xsl-fo file, args[1] is the pdf output file and args[2] is the path to the Acrobat Reader exe file. I'd be glad if someone could help me how to solve this problem. Thanks!! -- class Test { // args: Test xsl-fo file pdf output file path to acrobat reader public static void main(String[] args) { try { org.apache.fop.apps.Driver driver = new org.apache.fop.apps.Driver(new org.xml.sax.InputSource(args[0]), new java.io.FileOutputStream(args[1])); driver.setRenderer(org.apache.fop.apps.Driver.RENDER_PDF); driver.run(); String[] cmd = new String[2]; cmd[0] = args[2]; cmd[1] = args[1]; System.out.println(Starting Acrobat: +cmd[0]+ +cmd[1]); Runtime.getRuntime().exec(cmd); Thread.sleep(2); System.out.println(done.); } catch(Exception e) { e.printStackTrace(); } } } -- -- man liest sich... Nicolas Michael mailto:[EMAIL PROTECTED] http://www.nmichael.de/ - 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: lining up amounts w/ and w/o parentheses - solved
By the way - if anyone is interested in how I solved my problem, it was deceptively simple. I used the built-in format-number function like so: xsl:value-of select='format-number(./prev_am, $###,###.00 ;($###,###.00))'/ ... xsl:value-of select='format-number(./current_am, $###,###.00 ;($###,###.00))'/ ... xsl:value-of select='format-number(./paid_am, ($###,###.00); $###,###.00)'/ ... xsl:value-of select='format-number(./total_am, $###,###.00 ;($###,###.00))'/ You'll notice in the formatting string $###,###.00 ;($###,###.00) that the first part, which applies only to positive numbers, has a space on the right but before the semi colon (;). This effectively pushes the resultant string to the left, lining it up with negative values. The second part as you may have guessed, applies only to negative numbers. If you're wondering why the ./paid_am uses the opposite format, it's because I need to make it look negative even though the number in the xml is positive. Thanks to everyone again for their help! Mike -Original Message- From: Partridge, Michael [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 10:08 AM To: [EMAIL PROTECTED] Subject: RE: lining up amounts w/ and w/o parentheses Wow! Thanks for all the responses on this problem! Clay, I tried your first suggestion - putting the value with extra space at the end inside an inline, but the space was still lost. Jeremias, thanks for your suggestion regarding kerning. I'll be trying that out next. Victor, thank you also for your suggestion of adding a padding column and putting the end paren therein; that will probably be the most robust solution, if not the quickest. And Clay, your last suggestion is also very helpful. Now I just have to decide which is best for me. Thanks again for all the help! Mike -Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:53 AM To: [EMAIL PROTECTED] Subject: Re: lining up amounts w/ and w/o parentheses On 6/7/2003 8:34 AM, Victor Mote wrote: What you really want here is to align on the decimal point, but according to http://xml.apache.org/fop/compliance.html#fo-property-text-align text-align=string is not yet supported. The best workaround that I can think of is to put your trailing ending parentheses into a separate table cell, which is aligned /left/. You could also put parentheses around *everything* but make the parentheses for positive numbers the same color as your background-color (white if there is no background-color). Of course, it would get more challenging if you alternate the background-color of table-rows, but there are solutions to that as well. Unfortunately, the parentheses would be present in the PDF files if someone were to select and copy the text but if you're just printing you're OK. -- 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] - 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: lining up amounts w/ and w/o parentheses
Wow! Thanks for all the responses on this problem! Clay, I tried your first suggestion - putting the value with extra space at the end inside an inline, but the space was still lost. Jeremias, thanks for your suggestion regarding kerning. I'll be trying that out next. Victor, thank you also for your suggestion of adding a padding column and putting the end paren therein; that will probably be the most robust solution, if not the quickest. And Clay, your last suggestion is also very helpful. Now I just have to decide which is best for me. Thanks again for all the help! Mike -Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:53 AM To: [EMAIL PROTECTED] Subject: Re: lining up amounts w/ and w/o parentheses On 6/7/2003 8:34 AM, Victor Mote wrote: What you really want here is to align on the decimal point, but according to http://xml.apache.org/fop/compliance.html#fo-property-text-align text-align=string is not yet supported. The best workaround that I can think of is to put your trailing ending parentheses into a separate table cell, which is aligned /left/. You could also put parentheses around *everything* but make the parentheses for positive numbers the same color as your background-color (white if there is no background-color). Of course, it would get more challenging if you alternate the background-color of table-rows, but there are solutions to that as well. Unfortunately, the parentheses would be present in the PDF files if someone were to select and copy the text but if you're just printing you're OK. -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
lining up amounts w/ and w/o parentheses
My pdf is a bill which lists positive and negative amounts in a table, and I need to use parentheses for the negative amounts. The problem is that those w/ parentheses don't line up with the others - they're pushed left (because everything is right-aligned). I've tried this: xsl:variable name=space select=' '/ ... $xsl:value-of select=current_am/xsl:value-of select=$space/ ($xsl:value-of select=paid_am/) $xsl:value-of select=total_am/xsl:value-of select=$space/ but to no avail. I've also tried using white-space-collapse=false in the enclosing fo:block, but it still seems to be lost as well as causing problems due to stylesheet indenting. Has anyone else run into this problem? Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fop processing
I was bored, so I opened your .fo in XMLSpy, changed it to pretty-print and searched for fo:flow until I saw something wrong ;) Sorry, I don't know about any apps that could validate (correct term?) .fo. Mike -Original Message- From: Jason Novotny [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2003 8:05 AM To: [EMAIL PROTECTED] Subject: Re: fop processing Hi, Thanks Michael-- I think I fixed that and now I see the same problem so I have to check other files-- is there some kind of foplint program that can help me track these issues down? What do you use? Thanks, Jason Partridge, Michael wrote: Looks like you've got some content in a flow but outside of a block. Right at the beginning of Chapter 6. Snippet: fo:flow flow-name=xsl-region-body fo:block font-family=sans-serif fo:block margin-left=-4pc fo:block font-weight=bold font-size=24.8832pt fo:block hyphenate=false space-before.maximum=12pt space-before.minimum=8pt space-before.optimum=10pt keep-with-next.within-column=alwaysChapter 6. Portlet Service Framework/fo:block /fo:block /fo:block fo:block/ /fo:block Portlet services encapsulate business or logic operations that can be re-used among portlets. The use of portlet services helps to minimize the amount of logic placed in a portlet and present it as a reusable library to other portlets. In addition, portlet services offer the following major advantages: fo:list-block space-before.optimum=1em space-before.minimum=0.8em space-before.maximum=1.2em space-after.optimum=1em space-after.minimum=0.8em space-after.maximum=1.2em provisional-label-separation=0.2em id=N1055B provisional-distance-between-starts=1.5em Mike -Original Message- From: Jason Novotny [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2003 7:25 AM To: [EMAIL PROTECTED] Subject: fop processing Hi, I'm using NWalsh's stylesheets and docbook and FOP and during the rendering to pdf I get this error: [java] [ERROR] inline formatting objects cannot be directly under flow [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) [java] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) [java] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [java] at org.apache.fop.apps.Driver.render(Driver.java:457) [java] at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69) [java] at org.apache.fop.apps.Fop.main(Fop.java:19) [java] Java Result: 2 I've attached my FOP-- are there any easy ways to see where FOP has gone bad besides trying to cut and paste away at my docbook until the problem goes away? I've also used xmllint to make sure it has all references. Thanks, Jason - 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: HTML render class available?
I would also like the HTML renderer so I could create one stylesheet w/ embedded xsl:fo that could be used to create both PDF and HTML output. This would make format changes easy as they would only have to be made in one place instead of in each format's template, as I'll probably have to do it. Mike -Original Message- From: Victor Mote [mailto:[EMAIL PROTECTED] Sent: Friday, April 25, 2003 12:43 PM To: [EMAIL PROTECTED] Subject: RE: HTML render class available? Christian Neuroth wrote: As I am a newbie to FOP, I am not sure whether my post makes sense or not. I really enjoy working with FOP: I use one XSL-FO sheet to generate plain text, PDF and even SVG documents. The resulting docs have the same layout. Since the layout is very complex, we require that the layout is configured in only one XSL-FO stylesheet. The only thing that I am missing, is a render class for HTML as we are also in need of a HTML doc. Does anyone have a solution for this? HTML is fundamentally different from FOP's other output formats, most of which are paginated -- HTML is not. FOP does support MIF RTF output (neither of these renderers is robust right now), both of which are structural, like HTML, but there is a big difference -- both are much more complex than HTML, and it makes some sense to hide that complexity from users. One could write an HTML renderer for FOP, but the results would probably not be satisfactory. It really makes more sense to use a separate transformation to convert your XML directly to HTML. This will, I think, give you an order of magnitude more flexibility than anything you could get by passing the whole thing through FOP. I think you could structure your stylesheets to share the things that need to be common between them. Victor Mote - 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: inline Question
-Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2003 5:05 PM To: [EMAIL PROTECTED] Subject: fo:inline Question I see that fo:inline does not generate an area and hence cannot perform area-related layout (borders, background-color, padding, etc.). So, what is it good for? I've used it as follows: fo:inline font-size=4ptnbsp;/fo:inline How else can it be used? J.Pietschmann wrote: Jeremias Maerki wrote: Border properties for inlines have not been implemented, yet. That's euphemistic.A fo:inline doesn't even generate an area, it is basically a synonym for fo:wrapper. This means: no property associated with areas works, no borders, no background, no padding, no space-begin and space-end, no area-specific alignment. J.Pietschmann -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tab set
I would suggest using fo:block start-indent=n !-- where n is your indent -- !-- content1 -- /fo:block fo:block start-indent=n !-- where n is your indent -- !-- content2 -- /fo:block If you want to indent a table, I think the easiest way is to make an empty column at the edge. Mike -Original Message- From: Zmitko, Jan [mailto:[EMAIL PROTECTED] Sent: Thu 4/10/2003 10:47 AM To: [EMAIL PROTECTED] Cc: Subject: tab set Hello, is it possible to set a tab within a block or another elemnt. I want to indent text, which is in two lines. The indent Text have to start a the same position in both lines. Insert #160; does not help, because there is always displacement depentent of the letter before. Thanks for any answers. Jan Zmitko Unternehmensbereich Private Kunden und Geschftskunden Zentrale Bereich Multikanal Services Referat Direct-/Online Banking Postadr.: Jrgen-Ponto-Platz 1, 60301 Frankfurt Hauspost: UB PG Z IT EC, BL.64-66, 3.OG Tel.: (069) 263-57925 Fax: (069) 263-10357 Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: page break in table row
It looks like the keep-together property should be partially supported. http://xml.apache.org/fop/compliance.html#fo-property-keep-together -Original Message- From: Bargel, Britta [mailto:[EMAIL PROTECTED] Sent: Thu 4/10/2003 8:17 AM To: '[EMAIL PROTECTED]' Cc: Subject: AW: page break in table row Thank you. It works. I had tried it before with keep-together.within-page=always but it seems FOP doesn't work with this. Greets Britta -Ursprngliche Nachricht- Von: Hau, Carsten [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 15:02 An: '[EMAIL PROTECTED]' Betreff: AW: page break in table row Hi, try fo:table-row keep-together=always Greetz Carsten -Ursprngliche Nachricht- Von: Bargel, Britta [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2003 14:55 An: '[EMAIL PROTECTED]' Betreff: page break in table row Hello, I want the contents of my table rows always to be on the same page. Sometimes the contents of one or more table cells is two or more lines long. When a table row with this content is at the end of the page it happens that the first line of the content is on one page and the rest on the other. How can I avoid this? Britta - 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] winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pdf file creation
I'm running fop .20.5rc2 from the command line, and my xml file has over 600 invoice elements to process. This job runs very quickly, but after that I need to create a seperate pdf for each invoice. To do that, I create an xml file for each invoice and run fop on each seperately, but this is very slow due to process overhead. Is there any way to avoid this? Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Page number
Exactly what happens when you try that? Do you get a compiler error or a transformer error? Also, please post your stylesheet so we can look at it. Thanks. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: Page number Hai, I am tryinf to print page # in the format 1 0f 12. I included the following tags it does not work. fo:block id=last-page/ and the tag fo:page-nuber-citation ref-id=last-page/ @ the end of follow. Could anyone pls help, in getting page number in the above mentioned format. Thanks Vikram - 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: Centering a _block_ (read div) of text
You could try indent calculation based on the length of the string for each line. indent = (page-width - string-length) / 2 That's obviously not the xpath syntax you'd need to use, but it should give you the result you want. Use the xpath function string-length() and pass in your string. Then for the second line that needs extra indent, try indent = ((page-width - string-length) / 2) + extra-indent Mike -Original Message- From: Marcus Andersson [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 8:44 AM To: [EMAIL PROTECTED] Subject: Centering a _block_ (read div) of text Hello First: Thanx for the help with the questions yesterday. I need a block of text to be centered. Just to center it is no problem, the problem is that I want one line in one font and the next line in another font and the second line should also be skewed relative to the first line. See ascii image: The whole region-body: ** * This is the first line* * This is the second line * ** * etc... * So I want the complete block of the two lines to be centered. If I create a block element with text-align=center and in the block element put a block element for each line and also put a start-indent on the second line then the whole block don't get centered. The two lines get centered separatly and then the second lines get an indent from the centered position and that is not the result I want. The result I want can be compared with creating a div-block that is centered in the body and having the first line to the far left in that div and then the second line relative-positioned some pixels to the right. Doing indent on each line with a constant amount isn't an option since I'm generating pdf's from different xml sources (as I guess most people are) and the line lengths can vary. Hope you understand the question. /Marcus - 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: Fat, multi-colored, sideborder to the right
You can specify the region-before to not overlap the edge regions using precedence on region-before. Try this in your page-master: fo:region-before precedence=false ... / fo:region-after precedence=false ... / fo:region-end precedence=true ... / I don't know about the content overflowing the extent of the region-end, but give it a try. Mike -Original Message- From: Marcus Andersson [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 12:51 PM To: [EMAIL PROTECTED] Subject: Re: Fat, multi-colored, sideborder to the right I know what you mean but I don't believe I can use it in this case since I want the border to stretch from the absolute top (no top-margin) to the absolute bottom(no bottom-margin) of each page and I must use a header and a footer (the region-before and region-end with static-region). My understanding of the start, end, before and after regions is that the start-region spans on the top of the document from the left all the way to the right (the same with region-after) and region-start (and end) spans _between_ region-before and region-after. If I'm wrong so please correct me. Another reason (I think) why I can't put it in the region-end area is that I want some content to flow over the border (sometimes I truly hate designers ;). My understanding as an (bad) ascii image... | I want my border from here... * Region-start * | | -- One problem is here ** * * | * Region * * Region * | * - *Body * -* |...all the way... * start * *end * | ** * * | | -- One problem is here * Region-end* | | ...down here with no margin to the right and no margin at the top or the bottom. I have put a header in the region-start and a footer in the region-end areas and they must be there so just putting the border in region-end won't solve the problem. /Marcus - Original Message - From: Clay Leeds [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 03, 2003 8:16 PM Subject: Re: Fat, multi-colored, sideborder to the right Oops! Since you want this on the RIGHT, you'll want a fo:region-end: http://www.zvon.org/HowTo/Output/FOP0.18.1_examples_allregions.php?el=re gion-end ;-p Clay Leeds wrote: I *think* this calls for a fo:region-start section in your fo:simple-page-master. You might find a test case on this page: http://www.renderx.com/testcases.html In particular this PDF shows what I think you're getting at: http://www.renderx.com/Tests/columns.pdf which is built from this file: http://www.renderx.com/Tests/columns.fo In addition, http://ZVON.org has some good stuff (watch wrap): http://www.zvon.org/HowTo/Output/FOP0.18.1_examples_allregions.php?el=re gion-start (When you get to that page, click the PDF output linkabove the table). Then click the FO file link and pilfer^H^H^H^H^H^Hcode away! Good luck! Web Maestro Clay -- 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] - 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: create a check box
Title: Message Check this link: http://lists.w3.org/Archives/Public/www-xsl-fo/2003Feb/0014.html There's code to hack both checked and unchecked boxes. Mike -Original Message-From: Labeaux Schiek [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 3:17 PMTo: [EMAIL PROTECTED]Subject: create a check box Hi, I am trying to use XSL-FO to generate PDF Forms in my application. How do I create a check box in my PDF. I have my data in XML file as: insuranceYinsurance The line in my form should look like: Medical Insurance: |x| Yes |_| No . Note: In the above line |x| - Checked Check Box and=20 |_| - UnChecked Check Box. with the | | hopefully looking like a Square Check box I would appreciate your help on this problem. Thanks labeaux
RE: pdf-forms
David - I've just finished a simple pdf form using checkboxes and here's what I've used: xsl:template name=unCheckedBox fo:table inline-progression-dimension=8pt table-layout=fixed fo:table-column column-width=8pt/ fo:table-body fo:table-row fo:table-cell display-align=center padding=0pt fo:block font-family=serif font-size=8pt font-weight=normal text-align=center border=0.5pt solid black #xA0; /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:template !-- example code using unCheckedBox fo:table inline-progression-dimension=7.5in table-layout=fixed fo:table-column column-width=.2in/ fo:table-column column-width=7.3in/ fo:table-body fo:table-row fo:table-cell fo:block xsl:call-template name=unCheckedBox/ /fo:block /fo:table-cell fo:table-cell fo:block Text to go to the right of checkbox /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table -- I found unCheckedBox here: http://lists.w3.org/Archives/Public/www-xsl-fo/2003Feb/0014.html which also includes a checkedBox template. Mike -Original Message- From: David Weber [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 12:24 PM To: [EMAIL PROTECTED] Subject: pdf-forms Hi, I want to create pdf-forms from xml-files with xml:fo. Is it possible to create such form-elements with fop (e.g. text-box, check-box...)? I assume that form-elements are not part of the xsl:fo recommendation from w3c and so FOP won't do this!? But perhaps someone can give me a hint, how I can solve this problem? thanks in advance, david. - 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]
xpath question
Since right now keeps are only implemented for table rows, I've got to hack a way to keep certain content together on a page. To that end, I'm counting the number of x and y elements, the sum of which I test against a value to determine whether or not to insert a page break. My expression looks like this: !-- hack to make sure stuff is kept together -- xsl:choose xsl:when test=13=count(./elections)+count(./dependents) fo:block font-size=20pt 13 OR GREATER /fo:block /xsl:when xsl:otherwise LESS THAN 13 fo:block break-before=page #xA0; /fo:block /xsl:otherwise /xsl:choose The problem is that my test is always true, even when the sum of the counts is less than 13. Anyone knowledgable in XPATH out there? Also, does anyone know of a good XPATH primer on the web? Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xpath question
Thanks for the speedy reply, but the XSL processor built into XML Spy replies: [ERROR] Can not convert #NUMBER to a NodeList! Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:11 AM To: [EMAIL PROTECTED] Subject: Re: xpath question try xsl:when test=13=sum(count(./elections)+count(./dependents)) and it should work greets Jochen Maes ICT Development KBC Securities (kbcsecurities.com) Havenlaan 12 Avenue du Port SIF 8683 B-1080 Brussels Belgium Tel: +32 2 429 96 81 GSM: +32 496 57 90 99 E-mail : [EMAIL PROTECTED] This message and any attachments hereto are for the named person's use only. It may contain confidential, proprietary or legally privileged information. You may not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. If you have received this e-mail message without being the intended recipient, please notify KBC Securities promptly and delete this e-mail. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of KBC Securities. KBC Securities reserves the right to monitor all e-mail communications through its networks and any messages addressed to, received or sent by KBC Securities or its employees are deemed to be professional in nature. The sender or recipient of any messages to or of KBC Securities agrees that those may be read by other employees of KBC Securities than the stated recipient or sender in order to ensure the continuity of work-related activities and allow supervision thereof. KBC Securities does not accept liability for the correct and complete transmission of the information, nor for any delay or interruption of the transmission, nor for damages arising from the use of, or reliance on, the information. - 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: xpath question
It seems the problem was simply the precedence in the expression. The statement that works is: 13=(count(./elections)+count(./dependents)) notice the parentheses wrapping the sum of the counts. It turns out that '' is okay in XMLSpy although '' is not, so to be consistent, it's probably a good idea to always escape them ('' = 'gt;' and '' = 'lt;'). Thanks for your help Adam, Marcus, and Jochen! -Original Message- From: Adam Shelley [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:47 AM To: [EMAIL PROTECTED] Subject: RE: xpath question Hello, I'm not sure what xsl processor xml spy uses but i have found that some xsl processors don't like the '' character and should be replaced with the symbolic equivilant. try using an gt;= instead of = ? Just a guess cause it doesn't look like that statement should be trying to return a nodelist. -Adam -Original Message- From: Partridge, Michael [mailto:[EMAIL PROTECTED] Sent: March 31, 2003 7:15 AM To: [EMAIL PROTECTED] Subject: RE: xpath question Thanks for the speedy reply, but the XSL processor built into XML Spy replies: [ERROR] Can not convert #NUMBER to a NodeList! Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 9:11 AM To: [EMAIL PROTECTED] Subject: Re: xpath question try xsl:when test=13=sum(count(./elections)+count(./dependents)) and it should work greets Jochen Maes ICT Development KBC Securities (kbcsecurities.com) Havenlaan 12 Avenue du Port SIF 8683 B-1080 Brussels Belgium Tel: +32 2 429 96 81 GSM: +32 496 57 90 99 E-mail : [EMAIL PROTECTED] This message and any attachments hereto are for the named person's use only. It may contain confidential, proprietary or legally privileged information. You may not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. If you have received this e-mail message without being the intended recipient, please notify KBC Securities promptly and delete this e-mail. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of KBC Securities. KBC Securities reserves the right to monitor all e-mail communications through its networks and any messages addressed to, received or sent by KBC Securities or its employees are deemed to be professional in nature. The sender or recipient of any messages to or of KBC Securities agrees that those may be read by other employees of KBC Securities than the stated recipient or sender in order to ensure the continuity of work-related activities and allow supervision thereof. KBC Securities does not accept liability for the correct and complete transmission of the information, nor for any delay or interruption of the transmission, nor for damages arising from the use of, or reliance on, the information. - 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]
table footer placement
The first time I sent this one I didn't get any replies, so I'll try it one more time. I've got a table with a header, footer, and just enough rows to make the footer spill onto a new page. I also set the attribute table-omit-footer-at-break to true. So I get this when transforming: [WARNING] footer could not fit on page, moving last body row to next page What actually happens, however, is that the last row of the table is on the first page, and the second page has the table header and footer only. I'm using fop 0.20.5rc - is the message implemented but not the functionality? Mike Partridge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: block on a new page
Have you tried fo:block break-before=page on all the blocks? If you get a blank first page, just take that out of the first block. -Original Message- From: Lee, Insoo [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 10:09 AM To: '[EMAIL PROTECTED]' Subject: fo:block on a new page I have some fo:block(s) that need to start on a new page... However I like to make an exception for the first fo:block so that I don't get the first blank page... Is there any smart way to do it without introducing fo:conditional-page-master-reference? Thanks - 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]
table footer placement
I've got a table with a header, footer, and just enough rows to make the footer spill onto a new page. I also set the attribute table-omit-footer-at-break to true. So I get this when transforming: [WARNING] footer could not fit on page, moving last body row to next page What actually happens, however, is that the last row of the table is on the first page, and the second page has the table header and footer only. I'm using fop 0.20.5rc. Mike Partridge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]