Re: Error: / by zero

2005-11-18 Thread Chris Bowditch

Ail Sahin wrote:

snip/


When I fire up the transformation I get an error:

[INFO]
building formatting object tree
[INFO]
Parsing of document complete, stopping renderer
javax.xml.transform.TransformerException: java.lang.ArithmeticException: 
/ by zero
   at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1276) 

   at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668) 

   at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129) 

   at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107) 

   at 
de.xifs.worker.PrintDocumentWorker.render2PDF(PrintDocumentWorker.java:212)


Looks like the problem is in Xalan, not FOP. To trace the cause of the 
problem use Xalan to generate an FO file.


This is explained on the website:

http://xmlgraphics.apache.org/fop/0.20.5/running.html#check-input

If you get the same error when running Xalan, then the problem isn't in 
FOP. You might be better off posting the Xalan error to the xalan-j user 
mailing list.


Chris



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wrapping text

2005-11-18 Thread Chris Bowditch

Ail Sahin wrote:


Hi there,

if I have followed XML entity

contactperson
Prename Surname
Telephone Number
/contactperson


snip/


it's in the resulted PDF like that: Prename Surname Telephone Number.

Bud I'd like to have a wrap after Prename Surname.


You need to use whitespace-collapse and linefeed-treatment XSL-FO 
properties. By default all whitespace is collapsed to a single space in 
XSL-FO.


Chris





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



International Fonts - Problem with print

2005-11-18 Thread Sai N
Hello,

I am trying to use FOP to print certain documents (in FO)written in some International Languages (Japaneese, Korean, Chinese etc). For some reason the characters are printed at an angle, it looks likeeverything is initalic. Even the english characters in the document behave in the same way. If I try to create the PDF from the same FO, it works fine and looks great. I have tried using different fonts (Arial Unicode, MS Mincho, Batang) and this happens with everything. 


This is how I registered my Fonts with FOP

font metrics-file=C:\javalib\fop-0.20.5\fonts\msmincho.xml  embed-file=C:\WINNT\Fonts\msmincho.ttf kerning=yes font-triplet name=Mincho style=normal weight=normal/
 font-triplet name=Mincho style=normal weight=bold/ font-triplet name=Mincho style=italic weight=normal/ font-triplet name=Mincho style=italic weight=bold/
 /font
 font metrics-file=C:\javalib\fop-0.20.5\fonts\batang.xml kerning=yes embed-file=C:\WINNT\Fonts\batang.ttf font-triplet name=batang style=normal weight=normal/
 font-triplet name=batang style=normal weight=bold/ font-triplet name=batang style=normal weight=bolder/ font-triplet name=batang style=italic weight=normal/
 font-triplet name=batang style=italic weight=bold/ font-triplet name=batang style=italic weight=bolder/ /font
 font metrics-file=C:\javalib\fop-0.20.5\fonts\arialuni.xml kerning=yes embed-file=C:\WINNT\Fonts\arialuni.ttf font-triplet name=arialuni style=normal weight=normal/
 font-triplet name=arialuni style=normal weight=bold/ font-triplet name=arialuni style=normal weight=bolder/ font-triplet name=arialuni style=italic weight=normal/
 font-triplet name=arialuni style=italic weight=bold/ font-triplet name=arialuni style=italic weight=bolder/ /font


Has any one experienced this, any solution ??? 

Thanks,
Sai


Page breaking handling

2005-11-18 Thread chinlu chinawa
Hi guys,I placed a question a time back regarding how to handle page-breaking, but anybody said anything.I´ve just uploaded some images, and I´m just wondering whether anyone  could let me know which is the normal procedure for this cases, you can  see them here:http://www10.brinkster.com/repos/default.htmAs I said, I´m using as many profiling this way:para condition="hard-copy"/As I need, but it normally breaks "justify-effect" on the last line of the page, and  I get some extra pages at the end of some chapters as well. Also, using  as many para´s as needed casuses the begining text of the page no to be  always at the same possition.I would like to know how this is usually worked around, so any comments  about would be much appreciated. Once more, sorry my english.Thanks very much.  
		 
 
Win a Yahoo! Vespa 
NEW - Yahoo! Cars has 3 Vespa LX125s to be won 
Enter Now! 


Long Table repeat header

2005-11-18 Thread Prakash R
I have a document (FO-PDF) made up of multiple tables.
Some of these tables are long and span multiple pages.
I want to be able to repeat the header on the next
page. But at the same time I want to add the word
continued for any subsequent pages. i.e.

col1   col2   col3
TABLE HEADER
---
jjf   jflkds   jflkds
fjs   jflsda   jklfds
jjf   jflkds   jflkds
fjs   jflsda   jklfds
jjf   jflkds   jflkds
fjs   jflsda   jklfds
--- page break 
col1   col2   col3
TABLE HEADER (CONTD)
---
fjs   jflsda   jklfds
fjs   jflsda   jklfds

col1   col2   col3
TABLE HEADER2
---
fjs   jflsda   jklfds
fjs   jflsda   jklfds
fjs   jflsda   jklfds
--- page break 
col1   col2   col3
TABLE HEADER3
---
fjs   jflsda   jklfds
fjs   jflsda   jklfds
fjs   jflsda   jklfds

Is there anything in FO that will allow repeating of
table header and also modification of table header in
subsequent pages?

Thank you.
Prakash

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]