FOP problem: rendering do not end

2003-12-19 Thread Stan Pinte
hello,
I am using FOP in a production server, and suddenly, it stops rendering 
pdfs...

when everything is ok I see:
13:00:39,532 INFO  [STDOUT] [ERROR]
13:00:39,532 INFO  [STDOUT] Logger not set
13:00:39,532 INFO  [STDOUT] [WARNING]
13:00:39,532 INFO  [STDOUT] Screen logger not set - Using ConsoleLogger.
13:00:39,532 INFO  [STDOUT] [INFO]
13:00:39,532 INFO  [STDOUT] Using org.apache.xerces.parsers.SAXParser as 
SAX2 Pa
rser
13:00:39,542 INFO  [STDOUT] [INFO]
13:00:39,542 INFO  [STDOUT] building formatting object tree
13:00:39,572 INFO  [STDOUT] [INFO]
13:00:39,572 INFO  [STDOUT] setting up fonts
13:00:39,912 INFO  [STDOUT] [INFO]
13:00:39,912 INFO  [STDOUT] [1]
13:00:40,483 INFO  [STDOUT] [INFO]
13:00:40,483 INFO  [STDOUT] Parsing of document complete, stopping renderer

and here I only see:
2003-12-19 12:16:25,359 INFO  [STDOUT] [ERROR]
2003-12-19 12:16:25,359 INFO  [STDOUT] Logger not set
2003-12-19 12:16:25,359 INFO  [STDOUT] [INFO]
2003-12-19 12:16:25,359 INFO  [STDOUT] Using 
org.apache.xerces.parsers.SAXParser
as SAX2 Parser
2003-12-19 12:16:25,359 INFO  [STDOUT] [INFO]
2003-12-19 12:16:25,359 INFO  [STDOUT] building formatting object tree
2003-12-19 12:16:25,359 INFO  [STDOUT] [INFO]
2003-12-19 12:16:25,359 INFO  [STDOUT] setting up fonts
2003-12-19 12:16:25,468 INFO  [STDOUT] [INFO]
2003-12-19 12:16:25,468 INFO  [STDOUT] [1]

and then rendering stops...any idea on how to get info where FOP is 
hanging?

thanks,
Stan.
--
Stan Pinte.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Minimising FOP Runtimes

2003-12-11 Thread Stan Pinte

A time of 4 to 5 seconds for a 3..4 page document is very slow
for modern machines.
- Check for warm-up times. It may pay off to reuse the driver object.
by the way, is ir re-entrant? (could be used by multiple threads at the 
same time to render different pdf's)?

- Check JVM memory settings.
- If the time includes XSLT, check without it. There are people out
there capable of writing *horribly* inefficient XSLT.
- Invest in a profiler.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Running junit tests fails

2003-12-10 Thread Stan Pinte


BUILD FAILED
file:/fsd/source/xml-fop/build.xml:659: Could not create task or type of 
type: junit.

Ant could not find the task or a class this task relies upon.
junit is version 3.8.1.
I get the same thing, but I also dont know how to solve it. Looking in 
the build.xml doesnt reveal any *obvious* dependencies for junit that are 
missing.

You may want to add the jar containing the junit task in the JUNIT_HOME/lib 
directory.

Chris


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


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


Re: Running junit tests fails

2003-12-10 Thread Stan Pinte
On Wed, 10 Dec 2003 11:44:08 +, Chris Bowditch [EMAIL PROTECTED] 
wrote:

Stan Pinte wrote:
You may want to add the jar containing the junit task in the 
JUNIT_HOME/lib directory.

Whats the name of the jar containing the junit ant task definition then?
Ive added the junit.jar, there is also a test.jar and a src.jar in my 
junit directory (no lib sub dir though!)

The junit.present condition in the build.xml file doesnt let you procced 
without the junit.jar. However, I'm not sure if junit.jar contains the 
ant task definition.
I don't know, you may want to submit that to the junit list.
Chris

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


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


Re: Running junit tests fails

2003-12-10 Thread Stan Pinte
On Wed, 10 Dec 2003 14:28:23 +0100, Jeremias Maerki 
[EMAIL PROTECTED] wrote:

junit.jar is sufficient. The jar should be placed in %ANT_HOME%/lib.
sorry for my mistake...
Use
JUnit 3.8.1 or later to be sure.
The JUnit task is included in Ant's optional.jar but only works if
junit.jar is present in %ANT_HOME%/lib.
Actually, I don't understand why the JUnit suport is recognized but the
test cases don't work.
On 10.12.2003 12:44:08 Chris Bowditch wrote:
Whats the name of the jar containing the junit ant task definition then?
Ive added the junit.jar, there is also a test.jar and a src.jar in my 
junit directory (no lib sub dir though!)

The junit.present condition in the build.xml file doesnt let you procced 
without the junit.jar. However, I'm not sure if junit.jar contains the 
ant task definition.
Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: bug in table-cell border

2003-12-08 Thread Stan Pinte
On Sun, 7 Dec 2003 11:01:31 +0100, Andreas L. Delmelle 
[EMAIL PROTECTED] wrote:

-Original Message-
From: Stan Pinte [mailto:[EMAIL PROTECTED]
thanks, but it doesn't work:
Try either:
- specifying all borders explicitly, like 'border-top-width=0.1mm',
'border-left-width=0.1mm etc.
- or just using shorthands, like 'border-width=0.1mm 0.1mm 0.1mm 0.1mm'
One of the two should work.
No.
I solved it doing that in the surrounding fo:table-cell
border-width=0.1mm border-style=solid padding=0.1mm
-- adding a pading now leaves the border visible

Hope this helps!
Cheers,
Andreas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


how to change the font inside a fo:block without a line break?

2003-12-08 Thread Stan Pinte
hello,
the following is causing a line break before small...
fo:blocktest text fo:block font-size=5ptsmall 
font/fo:block/fo:block

any idea why?
thanks a lot,
Stan.
--
Stan Pinte.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: how to change the font inside a fo:block without a line break?

2003-12-08 Thread Stan Pinte
On Mon, 08 Dec 2003 11:41:04 -0600, George Yi [EMAIL PROTECTED] wrote:
Use fo:inline
thanks!!
-Original Message-
From: Stan Pinte [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 
2003 11:39 AM
To: [EMAIL PROTECTED]
Subject: how to change the font inside a fo:block without a line
break?

hello,
the following is causing a line break before small...
fo:blocktest text fo:block font-size=5ptsmall 
font/fo:block/fo:block

any idea why?
thanks a lot,
Stan.

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


Re: bug in table-cell border

2003-12-07 Thread Stan Pinte
On Fri, 05 Dec 2003 19:20:00 +0100, J.Pietschmann [EMAIL PROTECTED] 
wrote:

Stan Pinte wrote:
this block
fo:table-row
fo:table-cell border-width=0.1mm border-style=solid
...
does'nt show up a border...
You have to set the border-color too, IIRC the default is white.
Try adding border-color=black.


thanks, but it doesn't work:
 fo:table-cell border-width=0.1mm border- 
style=
solid
border-color=black
   fo:block  text-align=left vertical- 
align=mid
dle font-size=8pt background-color=#f8f9c5 text-indent=10pt padding- 
botto
m=3pt padding-top=3pt font-weight=bold

 STUFF
   /fo:block
 /fo:table-cell
   /fo:table-row

J.Pietschmann

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


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


Re: getting error line number

2003-12-05 Thread Stan Pinte
On Thu, 04 Dec 2003 20:45:15 +0100, J.Pietschmann [EMAIL PROTECTED] 
wrote:

Stan Pinte wrote:
[ERROR] Invalid byte 1 of 1-byte UTF-8 sequence.
org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 
sequence.
at org.apache.fop.apps.Driver.render(Driver.java:507)
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)
at org.apache.fop.apps.Fop.main(Fop.java:62)

how can I get the line number of my input file, to find the error?
Unfortunately, the parser people have more or less standardized
on the notation that line endings are characters, and encoding
problems are detected at the stage before, so that line count is
not available. You might want to feed your file into an identity
trasformation run through Saxon, the XML parser bundled with Saxon
reports the byte offset.
thanks a lot for the tip.
Stan.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Aligning paragraph text, setting font-family

2003-12-05 Thread Stan Pinte
On Thu, 04 Dec 2003 23:40:14 -0800, John Root [EMAIL PROTECTED] wrote:
Try the following:
fo:block
font-size=12pt font-family=Arial space-after=0cm
text-align=justify text-align-last=left . . . .  
xsl:value-of select=body/
/fo:block

Also, when i give font-family=Arial in a fo:block, it shows
[ERROR] unknown font sans,normal,normal so defaulted font to any
Iam using Win2k and the font is there by default
Nada! Fop only uses base 14 fonts by default. To use Arial, you need to
build a font metrics file (in xml) for the font using TTFReader (part of 
the
Apache FOP distribution), then register the font with FOP by modifying or
setting up an FOP configuration file. See the documentation on fonts (
./build/site/fonts.html ).
and does it works cross platform? an xml fonts metrics file generated on 
windows will work on unix?

cheers,
John
~~
John Root
Publishing Systems
[EMAIL PROTECTED]
~~
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: fo:inline background-color

2003-12-05 Thread Stan Pinte
On Fri, 5 Dec 2003 11:09:35 +0100, VAGNER Rodolphe 
[EMAIL PROTECTED] wrote:

Hy,
I'd like to highlight a text with fo:inline background-color=yellow
background-color works for me in block elements.
but it does not work.
Background-color is not implemented ?
I may use a bad property of the fo:inline element ?
Is there a work around ?
Thanks for helping

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


bug in table-cell border

2003-12-05 Thread Stan Pinte
hello,
this block
   fo:table-row
 !-- titre mesures finies --
 fo:table-cell border-width=0.1mm border- 
style=
solid

   fo:block  text-align=left vertical- 
align=mid
dle font-size=8pt background-color=#f8f9c5 text-indent=10pt padding- 
botto
m=3pt padding-top=3pt font-weight=bold

 MESURES FINIES
   /fo:block
 /fo:table-cell
   /fo:table-row
does'nt show up a border...
Is this a fop bug?
thanks a lot,
Stan.
--
Stan Pinte.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


getting error line number

2003-12-04 Thread Stan Pinte
hello,
when having this:
[INFO] setting up fonts
[ERROR] Invalid byte 1 of 1-byte UTF-8 sequence.
org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 sequence.
at org.apache.fop.apps.Driver.render(Driver.java:507)
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106)
at org.apache.fop.apps.Fop.main(Fop.java:62)
how can I get the line number of my input file, to find the error? thanks a 
lot,

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


bug in FOP release 0.20.5

2003-12-04 Thread Stan Pinte
hello,
I am using nested tables in fop, and I get that:
[INFO] [1]
[ERROR] null
org.apache.fop.apps.FOPException
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)
at org.apache.fop.apps.Fop.main(Fop.java:62)
-
java.lang.ClassCastException
	at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:509)
	at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:271)
	at 
org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.java:236)
	at org.apache.fop.fo.flow.Table.layout(Table.java:302)
	at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
	at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
	at 
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:400)
	at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
	at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)

How can I figure out what's happening?
thanks a lot,
Stan.
--
Stan Pinte.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[INFO] area contents overflows area in line doublure problem

2003-12-04 Thread Stan Pinte
hello,
I am using nested tables, and I have the following problem:
[INFO] area contents overflows area in line doublure
[INFO] area contents overflows area in line etiquette
[INFO] area contents overflows area in line pantalon
here is my top-level table:
fo:table table-layout=fixed
	fo:table-column column-width=160mm/
	fo:table-body
	  fo:table-row
	fo:table-cell
	  fo:block 		border-right-width=0.5pt 		text-align=center 
		vertical-align=middle
		font-size=18pt
		TITRE DOC
	  /fo:block
	/fo:table-cell
	  /fo:table-row
	  fo:table-row
	fo:table-cell
	  fo:table table-layout=fixed
		fo:table-column column-width=16mm/
		fo:table-column column-width=16mm/
		fo:table-column column-width=16mm/
		fo:table-column column-width=16mm/
		fo:table-column column-width=16mm/
		fo:table-column column-width=16mm/
		fo:table-column column-width=16mm/
		fo:table-column column-width=16mm/
		fo:table-column column-width=16mm/
		fo:table-column column-width=16mm/
		fo:table-body
		  fo:table-row
		fo:table-cell
		  fo:block 			border-right-width=0.5pt 			text-align=center 
			vertical-align=middle
			Genre
		  /fo:block
		/fo:table-cell
		fo:table-cell
		  fo:block 			border-right-width=0.5pt 			text-align=center 
			vertical-align=middle
			Nr tissu
		  /fo:block
		/fo:table-cell
		fo:table-cell
		  fo:block 			border-right-width=0.5pt 			text-align=center 
			vertical-align=middle
			Modele Veston
		  /fo:block
		/fo:table-cell
		fo:table-cell
		  fo:block 			border-right-width=0.5pt 			text-align=center 
			vertical-align=middle
			doublure
		  /fo:block
		/fo:table-cell
		fo:table-cell
		  fo:block 			border-right-width=0.5pt 			text-align=center 
			vertical-align=middle
			bouton
		  /fo:block
		/fo:table-cell
		fo:table-cell
		  fo:block 			border-right-width=0.5pt 			text-align=center 
			vertical-align=middle
			piqure
		  /fo:block
		/fo:table-cell
		fo:table-cell
		  fo:block 			border-right-width=0.5pt 			text-align=center 
			vertical-align=middle
			etiquette
		  /fo:block
		/fo:table-cell
		fo:table-cell
		  fo:block 			border-right-width=0.5pt 			text-align=center 
			vertical-align=middle
			Modele pantalon
		  /fo:block
		/fo:table-cell
		fo:table-cell
		  fo:block 			border-right-width=0.5pt 			text-align=center 
			vertical-align=middle
			Modele gilet
		  /fo:block
		/fo:table-cell
		fo:table-cell
		  fo:block 			border-right-width=0.5pt 			text-align=center 
			vertical-align=middle
			Info Chose
		  /fo:block
		/fo:table-cell
		  /fo:table-row
		/fo:table-body
	  /fo:table
	/fo:table-cell
	  /fo:table-row
	/fo:table-body
 /fo:table

any idea on how to avoid this?
thansk a lot,
Stan.
--
Stan Pinte.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: bug in FOP release 0.20.5

2003-12-04 Thread Stan Pinte
On Thu, 04 Dec 2003 09:33:46 +, Chris Adams [EMAIL PROTECTED] 
wrote:

I tend to get this type of error where I have specified a fixed width
table, and I have more table cells in a row than I have specified in the
column tags.
Try looking there.
I solved my problem: I had forgotten to put a cell content inside a 
fo:table-cell tag!!

thanks,
Stan.
-Original Message-
From: Stan Pinte [mailto:[EMAIL PROTECTED] Sent: 04 December, 2003 
09:14
To: [EMAIL PROTECTED]
Subject: bug in FOP release 0.20.5

hello,
I am using nested tables in fop, and I get that:
[INFO] [1]
[ERROR] null
org.apache.fop.apps.FOPException
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)
at org.apache.fop.apps.Fop.main(Fop.java:62)
-
java.lang.ClassCastException
	at
org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:509)
	at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:271)
	at 
org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.java:2
36)
	at org.apache.fop.fo.flow.Table.layout(Table.java:302)
	at
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
	at
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
	at 
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:400
)
	at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
	at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
	at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
	at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)

How can I figure out what's happening?
thanks a lot,
Stan.

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