On 14.02.2003 11:24:29 Joop Vriend wrote:
> Thank you for your quick and clear answer.
You're welcome.
>
>
> Jeremias Maerki wrote:
> >
> >>Does anybody know why EPS-images are not shown in Acrobat? Is it going
> >>to change in coming versions of FOP? We are currently using FOP 0.20.4.
> >>Can we fix it ourselves or is it very complicated?
> >
> >
> > Acrobat doesn't support displaying EPS files because that would involve
> > having a PostScript interpreter built-in. If you open it in
> > GhostScript/GhostView you will see it because the PDF is internally
> > converted to PostScript and GhostScript is a PostScript interpreter. So
> > you cannot fix it by modifying FOP.
>
>
> Actually, I *can't* open it with GhostScript (6.53)/GhostView (3.5.8),
> because it crashes with an error, seemingly not coping with an embedded
> font ('Error: /undefined in dobeFont-1.0').
Could you check if the same happens with 0.20.5rc?
> > But you could convert the EPS file to SVG, for example, using Adobe
> > Illustrator or a similar program. The SVG will then be converted by
> > Batik and FOP to PDF drawing operations.
>
>
> Yes, we tried using SVG images, but there are a number of reasons why we
> want to use EPS:
>
> 1) The original material is EPS, and is used by other applications, so
> we'd rather not have to convert to SVG's.
> 2) FOP is *much* slower (more than twice as slow) in creating PDF's
> when we use SVG's.
The price for the format conversion.
> 3) Batik produces an error on the embedded font in the SVG saved by
> Illustrator (10):
>
> [ERROR] svg graphic could not be built: file:/tmp/logo.svg:
> The following stylesheet represents an invalid
> CSS document.
And if you tell Illustrator not to embed fonts? Or try 0.20.5rc. It
contains a more current Batik version.
>
> @font-face{font-family:'Frutiger';src:url("data:;base64,\
> T1RUTwACACAAAQAAQ0ZGIHnZbukAAAAsAAAEr2NtYXD/tgCHAAAE3AAAACwBAAQCAAEBAQlSYW5k\
<snip/>
> AAwABAAgAAAABAAEAAEAAABS//8AAABS////rwABAAAAAA==")}
>
> This data is between
>
> <style type="text/css">
> <![CDATA[
>
> and
>
> ]]>
> </style>
>
> tags in the SVG.
>
>
> >>Or can the resulting PDF from FOP be "post-processed" (from PDF to PDF),
> >>so EPS-images can be shown in Acrobat? (Possibly also shrinking the size
> >>of the PDF file?) I know the data of the EPS is in the PDF. If I "print"
> >>the FOP PDF to Acrobat Distiller, the image shows up.
> >
> >
> > Right, because the PDF is converted to PostScript (by the printer driver)
> > and
> > then back to PDF (by Distiller). This process makes an implicit
> > conversion from EPS to PDF drawing operations.
>
>
> OK, that's clear. You wouldn't happen to know of a tool or Java class
> with "full" Distiller capabilities?
There's currently no decent Java-based PostScript interpreter I know of.
That would be one of these cool projects for an IT student. :-)
If the EPS image is absolutely placed on the page you could try to
generate a PDF with one page and the EPS image already distilled at the
right position. Then you could combine the FOP-generated PDF with the
one containing the EPS image superimposing one over the other. Tools for
that are iText and Etymon PJ. But the question is whether this would
really be faster than working with SVG.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]