Thomas DeWeese wrote:

During testing I found out that if there is only one svg element which
has one opacity attribute (fill-opacity or stroke-opacity) with a value
between 0.0 and 1.0, the generated pdf document is incorrect (ALL colors
are wrong).


Do you see changes that are greater than 1-2 code values?

What do you mean with "1-2 code values"? Look at this screenshots (BMP) which I made from the two pdf documents (viewed with Acrobat Reader 6.0).

Generated with PDFTranscoder from pdftranscoder.jar (Batik 1.5.1)
<http://www.prodato.de/temp/testpdf_1.bmp>
<http://www.prodato.de/temp/testpdf_1.pdf>

Generated with PDFTranscoder from fop.jar (FOP 0.20.5)
<http://www.prodato.de/temp/testpdf_2.bmp>
<http://www.prodato.de/temp/testpdf_2.pdf>


   Your SVG content is using 'tspan' elements (although in the given
example you sent you don't need to).  When this happens the PDF
transcoder doesn't try to convert the text as text and falls back
to converting it as paths.  [...]


I changed it but now I can not see the text in the pdf document.


   I do this all the time, so example content that fails would
probably be useful, otherwise I don't know how to reproduce your
problem.

Here are examples:


These are the SVG documents which I use to generate the PDF
and PNG documents. I turned off the opacity attributes and used
the pdftranscoder.jar from Batik 1.5.1.

testpdf21: without tspan attribute
<http://www.prodato.de/temp/testpdf21.svg>

testpdf22: with tspan attribute
<http://www.prodato.de/temp/testpdf22.svg>

Both PNG files are correct:
<http://www.prodato.de/temp/testpdf21.png>
<http://www.prodato.de/temp/testpdf22.png>

Only the title is visible but with a wrong font.
<http://www.prodato.de/temp/testpdf21.pdf>

This document is correct.
<http://www.prodato.de/temp/testpdf22.pdf>

Thanks!
Mathias Kalb

--
ProDatO Integration Technology GmbH
Hauptstrasse 60, 91054 Erlangen
http://www.prodato.de

Mathias Kalb, Dipl.-Inf. (FH)
mailto:[EMAIL PROTECTED]
fon: +49-9131-612877
fax: +49-9131-612881


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



Reply via email to