how to print page count ?
I've to print "page X of Y", where Y is a total number of pages. how?
RE: how to print page count ?
thank you, guys. it works. I thought it had to be a standard formatting property for fo:page-number > -Original Message- > From: Argyn Kuketayev [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 02, 2002 4:28 PM > To: [EMAIL PROTECTED] Apache. Org (E-mail) > Subject: how to print page count ? > > > I've to print "page X of Y", where Y is a total number of pages. how? >
RE: long words in table cells
is there any other way to wrap cell text? like setting up table or column properties? thanks, Argyn > -Original Message- > From: Mathy V Arumugam [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 03, 2002 12:04 PM > To: [EMAIL PROTECTED] > Subject: Re: long words in table cells > > > The function text_wrapper displays 20 characters per line > > > > > > > > > > > > > > > > > > Mathy > > Michael Heinen wrote: > > > Hi all, > > > > I have trouble with long words in table cells. > > If a word is larger than the table cell, the word > overwrites the next cell. > > > > What I want is, that the word is cutted at the end of the cell. > > How can I now prevent the table cells from overwriting the > next one in this > > case ? > > > > Thanks for any help, > > Michael >
RE: long words in table cells
this works hyphenate="true" language="en" but you have to set the language. I tried wrap-option="wrap" - it had no effect > -----Original Message- > From: Argyn Kuketayev [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 03, 2002 12:53 PM > To: '[EMAIL PROTECTED]' > Subject: RE: long words in table cells > > > is there any other way to wrap cell text? like setting up > table or column > properties? > > thanks, > Argyn > > > -Original Message- > > From: Mathy V Arumugam [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, April 03, 2002 12:04 PM > > To: [EMAIL PROTECTED] > > Subject: Re: long words in table cells > > > > > > The function text_wrapper displays 20 characters per line > > > > > > > > > > > > > > > > > > select="substring($Text,21)"/> > > > > > > > > > > > > > > > > > > Mathy > > > > Michael Heinen wrote: > > > > > Hi all, > > > > > > I have trouble with long words in table cells. > > > If a word is larger than the table cell, the word > > overwrites the next cell. > > > > > > What I want is, that the word is cutted at the end of the cell. > > > How can I now prevent the table cells from overwriting the > > next one in this > > > case ? > > > > > > Thanks for any help, > > > Michael > > >
headers for tables and chapters spanning on two or more pages
1. suppose I have a table. If this table continues on the next page, I want its column names be in the header of the second page. What's the best way to do it? 2. general issue: suppose I'm printing a report. It's content is an XML file, where element contains rows, and every row has children, such as columns or nested rowsets. I put every row in a . Inside the block I may have blocks for row content, tables for nested rowsets, etc. That works fine, but I've a requirement: if the row takes more than one page, then I've to show it's title in the page header. a) What's the best approach to achieve it? b) is it better approach to put the whole report into one table element? thanks, Argyn
RE: headers for tables and chapters spanning on two or more pages
> If you want anything to appear on EVERY page automatically, > you must put > in . > Example: > > > > > > > > All that stands in will appear on every page. unfortunately, header doesn't appear on the next page :( I did this: Facility ID Description Inventory Level Reorder Level
RE: headers for tables and chapters spanning on two or more pages
> unfortunately, header doesn't appear on the next page :( sorry, it works in my Cocoon 2.0.2. but strangely, it didn't work with the command-line tool in my fop0.20.3 installation. thanx
RE: headers for tables and chapters spanning on two or more pages
> 2. general issue: suppose I'm printing a report. It's content > is an XML > file, where element contains rows, and every row has > children, such as > columns or nested rowsets. > I put every row in a . Inside the block I may have > blocks for row > content, tables for nested rowsets, etc. > > That works fine, but I've a requirement: if the row takes > more than one > page, then I've to show it's title in the page header. > > a) What's the best approach to achieve it? > b) is it better approach to put the whole report into one > table element? I found the solution, I don't know how it is: I make a table for every row element, then nested rowsets go into the nested table within the same cell. It does the job. thanks, Argyn
templates for tables: to generate custom tables from the generic template
The idea: to have specific.xsl and generic.xsl file. specific.xsl has templates to convert XML into xsl:fo file using templates from generic.xsl example: bla-bla di-da this will be converted into with two columns and column names "Column One" and "Column Two". I want this to be done from specific.xsl by calling a template from generic.xsl. So, the template from generic.xsl will somehow get the column names and maybe widths. Then it will create element with cells, headers etc. So, to change the style of tables, like colors etc., I'll only need to change one file generic.xsl, not every specific.xsl Any ideas how to this in the best manner? I see the generic.xsl with templates which have sort of call-backs to specific.xsl. thanx, Argyn
RE: Tables inside of tables
So - the question is does anyone know if what I am doing (a table embedded in the cell of another table) is allowed ? [Argyn Kuketayev] YES
spna="all" didn't work for
I had to put number-columns-spanned="100" instead of span="all" in fo:column element, because the latter didn't work. is it a bug? thanks, Argyn
RE: spna="all" didn't work for
correction: I meant fo:cell when wrote "fo:column" > -Original Message- > From: Argyn Kuketayev [mailto:[EMAIL PROTECTED] > Sent: Monday, April 15, 2002 5:29 PM > To: '[EMAIL PROTECTED]' > Subject: spna="all" didn't work for > > > I had to put > number-columns-spanned="100" > instead of > span="all" > in fo:column element, because the latter didn't work. is it a bug? > > thanks, > Argyn >
RE: spna="all" didn't work for
this didn't work either :( COMMENTS: > -Original Message- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Monday, April 15, 2002 6:47 PM > To: [EMAIL PROTECTED] > Subject: Re: spna="all" didn't work for > > > Argyn Kuketayev wrote: > > >>I had to put > >>number-columns-spanned="100" > >>instead of > >>span="all" > >>in fo:column element, because the latter didn't work. is it a bug? > > From the spec at http://www.w3.org/TR/xsl/slice7.html#span > span="all": "Specifies if a block-level object should be > placed in the current column or should span all columns > of a multi-column region." > This property is not intended to be used on table cells. > > J.Pietschmann >
RE: spna="all" didn't work for
I thought there must be an attribute of the cell which makes it to span over all the row. I thought it's span="all". it appears that it's not. no problem :) > -Original Message- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Monday, April 15, 2002 7:12 PM > To: [EMAIL PROTECTED] > Subject: Re: spna="all" didn't work for > > > Argyn Kuketayev wrote: > > this didn't work either :( > > > > > > margin-left="2cm"> > font-weight="bold">COMMENTS: > select="COMPONENT_ID"/> > > > > It shouldn't, span="all" doesn't work *inside* tables. > It is not designed for declaring table cells spanning > multiple table columns, thats what number-columns-spanned > is for. What's your problem? > > J.Pietschmann > > >
step-by-step instructions how to print Chinese in PDF?
I have to print documents with Chinese (and other languages). I couldn't find a clear instruction how to do it. Can anybody help? \fop-0.20.3\docs\examples\advanced folder didn't help me much. thanx, Argyn
RE: step-by-step instructions how to print Chinese in PDF?
> -Original Message- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 07, 2002 5:02 PM > To: [EMAIL PROTECTED] > Subject: Re: step-by-step instructions how to print Chinese in PDF? > > > Argyn Kuketayev wrote: > > I have to print documents with Chinese (and other > languages). I couldn't > > find a clear instruction how to do it. > > Find a font containing glyphs for your script. > Configure it for use by FOP as describet in >docs/html-docs/fonts.html I installed W2k Pro, US version. I can see Chinese letters in IE. Now, how do make FOP show Chinese letters in my PDF? I don't see anything about Chinese letters in font metrics xml files. Btw, I don't speak Chinese :) I can't change locale or regional settings on the PC due to deployment restrictions. What glyphs are for Chinese? I'm using UTF-8 encoding. many thanks, Argyn
RE: step-by-step instructions how to print Chinese in PDF?
> After you've located a font, check with the font directory to get > the windows file name. It should be a TrueType font file ending > in .ttf. it's msmincho.ttc. I ran ttfreader, it generated me the HUGE xml file ~400k. How should I extract the only required fonts? I don't specify any fonts explicitely inside my FO file, only font family serif or sans-serif. Argyn
RE: step-by-step instructions how to print Chinese in PDF?
I'm using Cocoon 2.0.1. here's what I put inside my userconfig.xml I generated msminch.xml file with TTFReader utility from msmincho.ttc file. I tried an option with file-embed too. My PDF file doesn't show me chinese letters, it puts "#" instead. I know that my XML-FO file is Ok. All fonts are on my PC, so I can see Chinese in Internet Explorer. What shall I look into to find my problem? Argyn > -Original Message- > From: Argyn Kuketayev [mailto:[EMAIL PROTECTED] > Sent: Friday, May 10, 2002 5:37 PM > To: '[EMAIL PROTECTED]' > Subject: RE: step-by-step instructions how to print Chinese in PDF? > > > > After you've located a font, check with the font directory to get > > the windows file name. It should be a TrueType font file ending > > in .ttf. > > > it's msmincho.ttc. I ran ttfreader, it generated me the HUGE > xml file ~400k. > > How should I extract the only required fonts? I don't specify > any fonts > explicitely inside my FO file, only font family serif or sans-serif. > > Argyn >
RE: step-by-step instructions how to print Chinese in PDF?
Thank you, guys! Now it works. The problem was stupid and simple: mismatch in font names, file names and templates. Now I have another issue: unless I put full file path of font description xml (like "c:/temp/msmincho.xml"), FOP cannot find it. I thought that baseDir in userconfig.xml must set the folder to search for fonts, but it doesn't. What's the directory for FOP to search for files? Argyn -Original Message- From: Peter B. West [mailto:[EMAIL PROTECTED] Sent: Friday, May 10, 2002 7:50 PM To: [EMAIL PROTECTED] Subject: Re: step-by-step instructions how to print Chinese in PDF? Argyn, This is a stab in the dark, but I am surprised to see "Arial" associated with an ideographic font. If the font information tells you that Arial is present, then what I suspect is that the font bundles Arial with its ideographic font(s) so that the users have the resources to process both Western and ideographic text. The other suspicious note in this is the use of serif and sans-serif. These terms have a very specific meaning in Western fonts, but I cannot see any application for them in an ideographic font. Bottom line is that when you specify "Arial" or "sans-serif" you are specifying a non-ideographic font, so it is not surprising that you are not seeing any ideographic characters. What other font-names are available to you in msmincho.ttc? Mincho? If so, try that in your userconfig, and forget the "family" until you find out what a meaningful "family" value would be for an ideographic font. Peter Argyn Kuketayev wrote: >I'm using Cocoon 2.0.1. > >here's what I put inside my userconfig.xml > > > > > > > > > >I generated msminch.xml file with TTFReader utility from msmincho.ttc file. >I tried an option with file-embed too. > >My PDF file doesn't show me chinese letters, it puts "#" instead. > >I know that my XML-FO file is Ok. All fonts are on my PC, so I can see >Chinese in Internet Explorer. > >What shall I look into to find my problem? > > >
RE: unicode problem
Unicode is Ok in your example. I guess, your issue is with fonts. > -Original Message- > From: Henrik Holle [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 16, 2002 10:46 AM > To: [EMAIL PROTECTED] > Subject: unicode problem > > > hi, > > i have an java string with an greek alpha letter. i do not > know how to > convert the java unicode string so that i can display > it with fop > > > i need something like: >font-size="7pt">α >
performance problem renedering nested fo-tables
Problem: I have to generate a PDF document/report from the database tables. The content has a tree-like structure. There's a master resultset, e.g. Organizations, with several fields. This may contain nested sub-resultsets for every Organization, e.g. Departments, Affiliates, etc. These sub-resultsets also may have nested resultsets, and so on. The tree is not very deep (3-4 layers). So, the resulting PDF has sections for every Organization, inside it has subsections for Departments, Affiliates and so on. Like chapters and sections of a book. When section doesn't fit the page, on the next page's header there must be a section name repeated. So, if Affiliate breaks on the page end, then on the next page header there'll be: "Organization name", "Affiliate name", i.e. its each parent sections' names too. I found one way to do it with XSL-FO: there's a main fo-table(TM) with one column. Every row's the only cell contains a fo-table(T1), with header "Oraganization name". This T1 table's rows contain three blocks, one block is for Organization's fields, the other two blocks are for Departments and Affiliates, which are also fo-tables. This way whenever the section is broken into pages, the fo-tables' headers will appear on the next page for every broken section. E.g. when T1 breakes on page end, TM's and T1's headers will by rendered on the next page. This works fine rendering what I want. The issue is with performance. XSL-FO generation takes 3 seconds. PDF generation takes more than 15 seconds. So, FOP part is a bottleneck. I strongly suspect that these many embedded tables and blocks are causing troubles to FOP. I may be wrong though. I see two options: one is to change FOP to something else (renderex?), the other one is to change the structure of XSL-FO document. I'm going to work on the problem these days, since it appears that performance is going to be the main concern for customers. So, I'll appreciate any advises very much. thanks, Argyn
RE: performance problem renedering nested fo-tables
addition to a previous message: I'm using FOP 0.20.3 with Cocoon 2.0.1. As I already stated, time to generate XSL-FO and serialize it to view in the browser is under 3 sec. Full time to generate PDF is about 15 seconds.
DOM or SAX?
Which parser does FOP use when launched from command-line? SAX or DOM ? thanks
RE: DOM or SAX?
thanks. when I run FOP with dumping option, it says that SAX parser is used. > I use FOP with the hacked up AElfred parser distributed > with Saxon regularly. what's the fastest parser in your opinion? we are facing performance problems, I've to speed up the current configuration 4 times, or at least 2 times. Argyn
RE: DOM or SAX?
> Are you sure the parser is the bottleneck? no. I'm not sure. But I want to try another parser first, since it seems the easiest thing to do. I didn't find how to configure FOP to run with parsers from Saxon 6.5.2 distribution. Can I get any help on that? Argyn
RE: DOM or SAX?
I tried to run FOP 0.20.3 from command-line with saxon.jar library (6.5.2) and option -Dorg.xml.sax.parser=com.icl.saxon.aelfred.SAXDriver but it throws me an exception: You need a parser which supports SAX version 2 org.apache.fop.apps.FOPException: Error in setting up parser feature namespace-prefixes You need a parser which supports SAX version 2 at org.apache.fop.apps.Starter.setParserFeatures(Starter.java:51) at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:109) at org.apache.fop.apps.Fop.main(Fop.java:19) thanks, Argyn > -Original Message- > From: Argyn Kuketayev [mailto:[EMAIL PROTECTED] > Sent: Monday, June 17, 2002 5:55 PM > To: '[EMAIL PROTECTED]' > Subject: RE: DOM or SAX? > > > > Are you sure the parser is the bottleneck? > > > no. I'm not sure. But I want to try another parser first, > since it seems the > easiest thing to do. > > I didn't find how to configure FOP to run with parsers from > Saxon 6.5.2 > distribution. Can I get any help on that? > > Argyn >
RE: DOM or SAX?
u were right, Saxon wasn't any faster with my PDF generation. > -Original Message- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Monday, June 17, 2002 6:52 PM > To: [EMAIL PROTECTED] > Subject: Re: DOM or SAX? > > > Argyn Kuketayev wrote: > >>Are you sure the parser is the bottleneck? > > no. I'm not sure. But I want to try another parser first, > since it seems the > > easiest thing to do. > > Easy or not, the time spent on replacing the parser is > most likely wasted. > > Get a good profiler and *measure* where your program > uses processor cycles. I'm pretty sure that you'll > find the parser uses only neglible ressources. > > > I didn't find how to configure FOP to run with parsers from > Saxon 6.5.2 > > distribution. Can I get any help on that? > > I just use saxon.jar instead of xalan.jar+xerces.jar without > any problem. I used 6.5. > > J.Pietschmann > > >
RE: performance problem renedering nested fo-tables
Do u know any other ways besides nested tables to achieve the same goal? my goal is whenever the nested section brakes at the page end to have continuing headers on the next page. So, Right now for one nested table I've this: fo:table - with one cell - this is for one "root" table, or a chapter of the book. so, the chapter title will be on every continuing page. fo:table-row fo:table with one cell - this wraps every row of the "root" table, or a section of the chapter, so when it breakes, its title on the next page fo:table-row fo:block - this contains the content of the row, e.g. coulmn listed as bullet items fo:block - this contains the nested tables, or sub-section of a chapter fo:table with few cells - this is for the nested table, or for a sub-section of the section, so when it breakes, its title is on the next page fo:table-row - every row contains one row of the sub-section, e.g. tabular view of columns of the fo:block - this contains one more nested tables, or sub-section of a chapter fo:table with few cells - this is for the nested table, or for a sub-section of the section, so when it breakes, its title is on the next page fo:table-row - every row contains one row of the sub-section, e.g. tabular view of columns of the row ... AND SO ON, there can be any number of nested tables further I don't know how to get rid of these all nested tables yet. When I tried to profile FOP, I've seen that one class takes large amount of time to process, it's FOTreeBuilder.endElement() Argyn > -Original Message- > From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED] > Sent: Friday, June 21, 2002 2:34 AM > To: '[EMAIL PROTECTED]' > Subject: RE: performance problem renedering nested fo-tables > > > Oops. I was testing a document without nested tables: Here > are the correct > values: > PDF (104Kb) : 16 seconds > xml (511Kb) : 7 seconds > Sorry > > -Message d'origine- > De : Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED] > Envoyé : vendredi, 21. juin 2002 08:27 > À : '[EMAIL PROTECTED]' > Objet : RE: performance problem renedering nested fo-tables > > > Hi, > I'm generating a very similar document, also with nested > tables within a > main, one-column table. Here's my values: > PDF (144 Kb, about 30-40 pages): 15 seconds > just the XML (62 Kb): 7 seconds. > > I wouldn't say that FOP slows down a lot. But: Maybe it's your browser > that's slowing down. I did my tests from a command-line tool, since it > wouldn't be very fair to blame FOP only because IE is a lame duck... > > Kurt > > -Message d'origine- > De : Argyn Kuketayev [mailto:[EMAIL PROTECTED] > Envoyé : samedi, 15. juin 2002 00:03 > À : '[EMAIL PROTECTED]' > Objet : RE: performance problem renedering nested fo-tables > > > addition to a previous message: I'm using FOP 0.20.3 with > Cocoon 2.0.1. As I > already stated, time to generate XSL-FO and serialize it to > view in the > browser is under 3 sec. Full time to generate PDF is about 15 seconds. >
RE: performance problem renedering nested fo-tables
I'll try markers, thanks > -Original Message- > From: Chuck Paussa [mailto:[EMAIL PROTECTED] > Sent: Friday, June 21, 2002 12:02 PM > To: [EMAIL PROTECTED] > Subject: Re: performance problem renedering nested fo-tables > > > Argyn, > > In your case it looks like you should investigate using > and > to get your page headers. Each level of > your table
fo:marker - how to show the broken secion on the next page
I have a block. Whenever the page breakes it, I want to show its title on the continuing page. I tried fo:marker. Unfortunately, it doesn't do what I want. I tried different bounadries and positions, but none of them works. It shows me the block which was started on the page, it doesn't see the block which was started on the previous page Need some help. Argyn
PDF to FO decompiler
is there a tool to decompile PDF file into FO? thanks, Argyn
RE: Please Help
try fo:table > -Original Message- > From: Max Dcosta [mailto:[EMAIL PROTECTED] > Sent: Monday, June 24, 2002 10:19 AM > To: [EMAIL PROTECTED] > Subject: Please Help > > > Dear Guys, > > Can you pls help me by telling me how to get an output like this: > > Room Number: 255 > xxx: 123 > Room Type:Deluxe >
RE: Please Help
> -Original Message- > From: Max Dcosta [mailto:[EMAIL PROTECTED] > Sent: Monday, June 24, 2002 10:22 AM > To: '[EMAIL PROTECTED]' > Subject: RE: Please Help > > > is there a way without using tables. Is there anything which > will help me > push that value to the right. I don't know. To me, your problem is perfectly solved with fo:table.
RE: Memory usage w/ FOP
> - Avoid large tables spanning multiple pages, use multiple >tables instead. very good tip!