Thomas DeWeese wrote:

   So the cases with different colors are where you use opacity.
In general the differences are 1 code value (I did find one that
was 2 code values off)  Looking at them side to side I basically
couldn't tell they were different.  Given the math involved in
handling opacity it seems like you aren't likely to do better.
I believe you will get exactly the same colors if you don't use
opacity, from your example it looks like you are only using opacity
to generate different 'shades' of a color so this might be an option.

This was only an example. I need the opacity for the little black rectangles at the beginning and the end of the arrows.

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).
If all opacity attributes has a value 0.0 or 1.0, the pdf document is
okay.
It is not a problem with the text anti-alias. The only problem is the
opacity.
And it is only a problem with the pdftrancoder.jar. The fop.jar ignores
the opacity values (every value which is greater than 0.0 gets the
opacity 1.0).

   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.  In recent versions of Acrobat you can
have it "smooth line art".  This will make the text anti-aliased.
Alternately if you stop using the 'tspan' elements and just move the
x/y attributes  to the text element you should get real text out.

I changed it but now I can not see the text in the pdf document. The generated svg, jpeg, png and tiff documents are correct.

OLD :
<text prodato:type="text">
 <tspan x="0.7635741233825682" y="0.45">externer</tspan>
 <tspan x="0.7101886868476867" y="0.8500000059604644">Ausgang</tspan>
</text>

NEW:
<g prodato:type="text">
 <text x="0.7635741233825682" y="0.45">externer</text>
 <text x="0.7101886868476867" y="0.8500000059604644">Ausgang</text>
</g>


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