You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Sam Prokop <sp...@4tek.de> on 2002/07/02 11:17:26 UTC

table-cell borders covered by background-color

Hi,
i use fop 0.20.4rc to render pdf and i´ve got the following problem:

it seems, that the background-color of a table-cell covers the
after-border of the preceding cell (the cell above).

Cause, if i use thin border like 0.25pt i don´t see (in acrobat and
printed out)  them at all, i just see a thin border if i enlarge the
border to 1pt.
Without background-color in the following cell the border is displayed
correct. 

Am I missing something, or is this a bug?

any help welcome, thanx in anticipation

--
Sam

Re: table-cell borders covered by background-color

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Sam Prokop wrote:
> i use fop 0.20.4rc to render pdf and i´ve got the following problem:
> 
> it seems, that the background-color of a table-cell covers the
> after-border of the preceding cell (the cell above).
> 
> Cause, if i use thin border like 0.25pt i don´t see (in acrobat and
> printed out)  them at all, i just see a thin border if i enlarge the
> border to 1pt.
> Without background-color in the following cell the border is displayed
> correct. 
> 
> Am I missing something, or is this a bug?

Seems like a bug.

J.Pietschmann


Re: AW: strange problem with fop 0.20.4rc

Posted by Keiron Liddle <ke...@aftexsw.com>.
Running exec inside java is often unreliable.
You should at least get the output stream and read from it. Some useless
OS's (ie. dos) block the process if the output buffer is filled.
The new fop may be printing more to the output.

On Tue, 2002-07-02 at 14:13, Henrik Holle wrote:
> due some memory problems i uses this way:
> 
> 
> Runtime rt = Runtime.getRuntime();
>                         File tmpBatchFile = File.createTempFile("tmp",
> ".bat");
>                         TempFileWatcher.addFile(tmpBatchFile);
>                         FileOutputStream fos = new
> FileOutputStream(tmpBatchFile);
>                         OutputStreamWriter osw = new
> OutputStreamWriter(fos);
>                         osw.write("echo off \n");
>                         osw.write("java -Xmx512m -Xms50m -cp XXXXXX.jar
> org.apache.fop.apps.Fop -awt " + foFile.toString() + " \n ");
>                         osw.write("cls \n");
>                         osw.flush();
>                         osw.close();
>                         Process p = rt.exec(tmpBatchFile.toString());
>                         p.waitFor();
>                         p.destroy();
>                         p = null;
>                         tmpBatchFile.delete();
> 
> 
> foFile is the file i want to render
> 
> the xsl:fo file is 100% ok and  foFile.canRead() == true
> 
> in my opinion it has todo with a the new libaries in fop 0.20.4rc, where
> else can happen this ->
> [Fatal Error] :-1:-1: Premature end of file. ???



Re: AW: AW: strange problem with fop 0.20.4rc

Posted by Lars Gregori <ma...@goolo.com>.
I've figured out also some problems with 0.20.4 (and docbook)... when
I'm using XALAN-2.4.D1 everything is fine...

Lars
PS: see bug #9964
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9964


On Tue, 02 Jul 2002 15:55:21 +0200, in apache.xml.fop.user you wrote:

>And what is doing your main application? Could it be some locking stuff?
>Have you tried new xerces?
>Another thing, try to add -d to fop command line to see
>debug info (but where it'll output to I dunno).
>


Re: AW: AW: strange problem with fop 0.20.4rc

Posted by Oleg Tkachenko <ol...@multiconn.com>.
And what is doing your main application? Could it be some locking stuff?
Have you tried new xerces?
Another thing, try to add -d to fop command line to see
debug info (but where it'll output to I dunno).

Henrik Holle wrote:
> yes its the complete path of the xsl:fo file i want to render!
> 
> everything works, but only if i close my main applikation? why?
> 
> -----Ursprungliche Nachricht-----
> Von: Oleg Tkachenko [mailto:olegt@multiconn.com]
> Gesendet: Dienstag, 2. Juli 2002 15:30
> An: fop-user@xml.apache.org
> Betreff: Re: AW: strange problem with fop 0.20.4rc
> 
> 
> Henrik Holle wrote:
> 
>>due some memory problems i uses this way:
>>
>>
>>Runtime rt = Runtime.getRuntime();
>>                        File tmpBatchFile = File.createTempFile("tmp",
>>".bat");
>>                        TempFileWatcher.addFile(tmpBatchFile);
>>                        FileOutputStream fos = new
>>FileOutputStream(tmpBatchFile);
>>                        OutputStreamWriter osw = new
>>OutputStreamWriter(fos);
>>                        osw.write("echo off \n");
>>                        osw.write("java -Xmx512m -Xms50m -cp XXXXXX.jar
>>org.apache.fop.apps.Fop -awt " + foFile.toString() + " \n ");
>>                        osw.write("cls \n");
>>                        osw.flush();
>>                        osw.close();
>>                        Process p = rt.exec(tmpBatchFile.toString());
>>                        p.waitFor();
>>                        p.destroy();
>>                        p = null;
>>                        tmpBatchFile.delete();
>>
>>
>>foFile is the file i want to render
>>
>>the xsl:fo file is 100% ok and  foFile.canRead() == true
>>
>>in my opinion it has todo with a the new libaries in fop 0.20.4rc, where
>>else can happen this ->
>>[Fatal Error] :-1:-1: Premature end of file. ???
> 
> 
> That's actually xerces's message. Might be some bug in xerces, try 2.0.2 
> release. What is foFile.toString() looks like - is it file name or uri?
> 



-- 
Oleg Tkachenko
Multiconn International, Israel


AW: AW: strange problem with fop 0.20.4rc

Posted by Henrik Holle <hh...@megatel.de>.
yes its the complete path of the xsl:fo file i want to render!

everything works, but only if i close my main applikation? why?

-----Ursprungliche Nachricht-----
Von: Oleg Tkachenko [mailto:olegt@multiconn.com]
Gesendet: Dienstag, 2. Juli 2002 15:30
An: fop-user@xml.apache.org
Betreff: Re: AW: strange problem with fop 0.20.4rc


Henrik Holle wrote:
> due some memory problems i uses this way:
> 
> 
> Runtime rt = Runtime.getRuntime();
>                         File tmpBatchFile = File.createTempFile("tmp",
> ".bat");
>                         TempFileWatcher.addFile(tmpBatchFile);
>                         FileOutputStream fos = new
> FileOutputStream(tmpBatchFile);
>                         OutputStreamWriter osw = new
> OutputStreamWriter(fos);
>                         osw.write("echo off \n");
>                         osw.write("java -Xmx512m -Xms50m -cp XXXXXX.jar
> org.apache.fop.apps.Fop -awt " + foFile.toString() + " \n ");
>                         osw.write("cls \n");
>                         osw.flush();
>                         osw.close();
>                         Process p = rt.exec(tmpBatchFile.toString());
>                         p.waitFor();
>                         p.destroy();
>                         p = null;
>                         tmpBatchFile.delete();
> 
> 
> foFile is the file i want to render
> 
> the xsl:fo file is 100% ok and  foFile.canRead() == true
> 
> in my opinion it has todo with a the new libaries in fop 0.20.4rc, where
> else can happen this ->
> [Fatal Error] :-1:-1: Premature end of file. ???

That's actually xerces's message. Might be some bug in xerces, try 2.0.2 
release. What is foFile.toString() looks like - is it file name or uri?

-- 
Oleg Tkachenko
Multiconn International, Israel

Re: AW: strange problem with fop 0.20.4rc

Posted by Oleg Tkachenko <ol...@multiconn.com>.
Henrik Holle wrote:
> due some memory problems i uses this way:
> 
> 
> Runtime rt = Runtime.getRuntime();
>                         File tmpBatchFile = File.createTempFile("tmp",
> ".bat");
>                         TempFileWatcher.addFile(tmpBatchFile);
>                         FileOutputStream fos = new
> FileOutputStream(tmpBatchFile);
>                         OutputStreamWriter osw = new
> OutputStreamWriter(fos);
>                         osw.write("echo off \n");
>                         osw.write("java -Xmx512m -Xms50m -cp XXXXXX.jar
> org.apache.fop.apps.Fop -awt " + foFile.toString() + " \n ");
>                         osw.write("cls \n");
>                         osw.flush();
>                         osw.close();
>                         Process p = rt.exec(tmpBatchFile.toString());
>                         p.waitFor();
>                         p.destroy();
>                         p = null;
>                         tmpBatchFile.delete();
> 
> 
> foFile is the file i want to render
> 
> the xsl:fo file is 100% ok and  foFile.canRead() == true
> 
> in my opinion it has todo with a the new libaries in fop 0.20.4rc, where
> else can happen this ->
> [Fatal Error] :-1:-1: Premature end of file. ???

That's actually xerces's message. Might be some bug in xerces, try 2.0.2 
release. What is foFile.toString() looks like - is it file name or uri?

-- 
Oleg Tkachenko
Multiconn International, Israel


AW: strange problem with fop 0.20.4rc

Posted by Henrik Holle <hh...@megatel.de>.
due some memory problems i uses this way:


Runtime rt = Runtime.getRuntime();
                        File tmpBatchFile = File.createTempFile("tmp",
".bat");
                        TempFileWatcher.addFile(tmpBatchFile);
                        FileOutputStream fos = new
FileOutputStream(tmpBatchFile);
                        OutputStreamWriter osw = new
OutputStreamWriter(fos);
                        osw.write("echo off \n");
                        osw.write("java -Xmx512m -Xms50m -cp XXXXXX.jar
org.apache.fop.apps.Fop -awt " + foFile.toString() + " \n ");
                        osw.write("cls \n");
                        osw.flush();
                        osw.close();
                        Process p = rt.exec(tmpBatchFile.toString());
                        p.waitFor();
                        p.destroy();
                        p = null;
                        tmpBatchFile.delete();


foFile is the file i want to render

the xsl:fo file is 100% ok and  foFile.canRead() == true

in my opinion it has todo with a the new libaries in fop 0.20.4rc, where
else can happen this ->
[Fatal Error] :-1:-1: Premature end of file. ???



-----Ursprungliche Nachricht-----
Von: Oleg Tkachenko [mailto:olegt@multiconn.com]
Gesendet: Dienstag, 2. Juli 2002 15:09
An: fop-user@xml.apache.org
Betreff: Re: strange problem with fop 0.20.4rc


Probably something wrong with input fo or xml or xsl, depends on your
application architecture. Could you pls explain how do you feed fop?

Henrik Holle wrote:
> Hi,
>
> i have just tried out the new fop release rc, but i have a strange
problem:
>
> I am starting the AWT previewer with an shell-script which is called
through
> my java application....in
> fop 0.20.3 everything works fine, but with the new fop version , the
preview
> dialog shows up, but nothing happen....but after i have closed my main
> applikation ( different JVM) fop starts to render my page an shows it? any
> ideas?
>
> after upgrading the libaries there also are some error on my console
output:
>
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :1:1: Content is not allowed in prolog.
> [Fatal Error] :1:1: Content is not allowed in prolog.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :1:1: Content is not allowed in prolog.
> [Fatal Error] :1:1: Content is not allowed in prolog.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :1:1: Content is not allowed in prolog.
>
> please help ;)
>
> thanks
>
> henrik
>



--
Oleg Tkachenko
Multiconn International, Israel


Re: strange problem with fop 0.20.4rc

Posted by Oleg Tkachenko <ol...@multiconn.com>.
Probably something wrong with input fo or xml or xsl, depends on your 
application architecture. Could you pls explain how do you feed fop?

Henrik Holle wrote:
> Hi,
> 
> i have just tried out the new fop release rc, but i have a strange problem:
> 
> I am starting the AWT previewer with an shell-script which is called through
> my java application....in
> fop 0.20.3 everything works fine, but with the new fop version , the preview
> dialog shows up, but nothing happen....but after i have closed my main
> applikation ( different JVM) fop starts to render my page an shows it? any
> ideas?
> 
> after upgrading the libaries there also are some error on my console output:
> 
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :1:1: Content is not allowed in prolog.
> [Fatal Error] :1:1: Content is not allowed in prolog.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :1:1: Content is not allowed in prolog.
> [Fatal Error] :1:1: Content is not allowed in prolog.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :1:1: Content is not allowed in prolog.
> 
> please help ;)
> 
> thanks
> 
> henrik
> 



-- 
Oleg Tkachenko
Multiconn International, Israel


Re: AW: strange problem with fop 0.20.4rc

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Henrik Holle wrote:
> can you please explain me the 2 fixes?

There were complaintss thet
1. The FOP application always exits with exit code 0
    even in case of problems
2. The output file is corrupt but not deleted in case
    of errors.
The fix added exit(1) for input files not found and
exit(2) for other problems, and makes an attempt at
removing the output file in case of errors.
The exit() calls could prematurely end the application
even if AWT was used (dunno).

J.Pietschmann



AW: strange problem with fop 0.20.4rc

Posted by Henrik Holle <hh...@megatel.de>.
yes it works from the commandline......

can you please explain me the 2 fixes?

-----Ursprungliche Nachricht-----
Von: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Gesendet: Dienstag, 2. Juli 2002 22:41
An: fop-user@xml.apache.org
Betreff: Re: strange problem with fop 0.20.4rc


Henrik Holle wrote:
> I am starting the AWT previewer with an shell-script which is called
through
> my java application....in
> fop 0.20.3 everything works fine, but with the new fop version , the
preview
> dialog shows up, but nothing happen....but after i have closed my main
> applikation ( different JVM) fop starts to render my page an shows it? any
> ideas?

Does it work from the command line?
It could be the delete-file-on-error-and-set-exit-code
fix.

J.Pietschmann


Re: strange problem with fop 0.20.4rc

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Henrik Holle wrote:
> I am starting the AWT previewer with an shell-script which is called through
> my java application....in
> fop 0.20.3 everything works fine, but with the new fop version , the preview
> dialog shows up, but nothing happen....but after i have closed my main
> applikation ( different JVM) fop starts to render my page an shows it? any
> ideas?

Does it work from the command line?
It could be the delete-file-on-error-and-set-exit-code
fix.

J.Pietschmann


strange problem with fop 0.20.4rc

Posted by Henrik Holle <hh...@megatel.de>.
Hi,

i have just tried out the new fop release rc, but i have a strange problem:

I am starting the AWT previewer with an shell-script which is called through
my java application....in
fop 0.20.3 everything works fine, but with the new fop version , the preview
dialog shows up, but nothing happen....but after i have closed my main
applikation ( different JVM) fop starts to render my page an shows it? any
ideas?

after upgrading the libaries there also are some error on my console output:

[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :1:1: Content is not allowed in prolog.

please help ;)

thanks

henrik