Mathias Kalb wrote:
Thomas DeWeese wrote:
pdftranscoder:
-the colors are a little different
I have not seen this, can you provide sample content?
Yes. These are the results which I saved with my program.
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.
-the text has no anti-aliasing
This depends on how you have your PDF viewer setup, by
default Acrobat doesn't anti-alias text, you can tell it you
want it to (Preferences somewhere). I don't think there is
currently an option to always output text as paths.
Yes, I know this and I turned the anit-alias text on, but it only works
with the pdf document which is generated with the fop.jar.
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.
How can I create a pdf document wich looks like the original SVG?
The created JPG, PNG and TIFF documents are correct.
It's usually the wrong thing to do but you could just embed a
JPEG/PNG in the PDF. The simplest way to do this would be to
create a 'small' SVG that consisted just of an image element that
referenced the rasterized PNG. Of course when you went to print it
the result would probably look a bit blurry.
No, I do not embed a JPEG in the PDF or in the SVG.
My program generates SVG and can save it as SVG, JPG, PNG, TIFF and PDF.
I understand, but if your requirement is that the PDF be pixel and
code value the same as the PNG (your JPEG has larger code value errors
than the PDF) then your only real answer is to embed a raster in the
PDF file.
Thanks!
Mathias Kalb
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]