page count of document

2006-12-03 Thread Sam Tsai
I have an FO style sheet to generate a series of invoice from an XML file. Each invoice is pretty much the same but the item on the invoice varies from one to another. The invoice might be single page or multiple page for one customer. I got the total page count of the output pdf (contains

Re: fo:external-graphic SRC by xpath

2006-09-16 Thread Sam Tsai
Thanks. I did find this in my XSLT quick guide from O'reilly. I am going to try it. hmm. I need a more detailed book on XSLT!! J.Pietschmann wrote: Sam Tsai wrote: I am looking a way to make the SRC of external-graphic tag dynamic. This sounds like a pure XSLT question. Usually it's

fo:external-graphic SRC by xpath

2006-09-15 Thread Sam Tsai
Hi: I am looking a way to make the SRC of external-graphic tag dynamic. For example ... fo:external-graphic src= some xpath like root/imgPath width=61.00mm content-width=61.00mm height=77.50mm content-height=77.50mm/ ... in this way if I have an xml like root

Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai
Thanks. I tried but still not working. Other than the TTF and Metric file what else should be in the folder to make it working? Manuel Mall-2 wrote: On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote: Hi: I embed FOP 0.92 to my program. I can't get the font to work. I put the

Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai
Manuel: The message is I got from log4J Font 'Arial,normal,400' not found. Substituting with default font. I also attached the Arial.xml metric file. Sam http://www.nabble.com/user-files/235939/Arial.xml Arial.xml Manuel Mall-2 wrote: On Sunday 10 September 2006 19:58, Sam Tsai wrote

Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai
I put this line: fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml)); and the config file content is: ?xml version=1.0 encoding=UTF-8? !-- New document created at Sun Sep 10 05:56:26 CDT 2006 -- configuration font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes

Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai
. It has changed since 0.20.5. Please take conf/fop.xconf as a template! See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html On 10.09.2006 14:34:42 Sam Tsai wrote: I put this line: fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml)); and the config file content

Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai
layout. It has changed since 0.20.5. Please take conf/fop.xconf as a template! See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html On 10.09.2006 14:34:42 Sam Tsai wrote: I put this line: fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml)); and the config file