Thank you for your quick and clear answer.
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').
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. 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.
@font-face{font-family:'Frutiger';src:url("data:;base64,\
T1RUTwACACAAAQAAQ0ZGIHnZbukAAAAsAAAEr2NtYXD/tgCHAAAE3AAAACwBAAQCAAEBAQlSYW5k\
c3RhZAABAQEf+BsB+BcERft5HB4O+dcFHQA9CQAN8Q/0EcgcBHISAAEBASxWZXJzaWUgMy4wIENv\
cHlyaWdodCAxOTk3IEJSUyBQcmVtc2VsYSBWb25rAAAAADMAAgIAAQAEBAH6fA4cFUp/2vdGy/cU\
2j/RARwGPer3Wez3huYcBzLs94XmAxwGmxb3cgfdn8azrx60r7ySxHWK4hgrpEVsXzQIroqriake\
MoqPVIv7Poj7sRnqBvkIFoikivT3TRrXeMBlqR6pZ1uaUBtPVH1vWR+MNwWst7ycwhvCsXlonx+V\
eJBwZxr7F5YvfFVjCGNsdmRcGl2bZapvHm6qtX3AG9TFqsm1H4pzi26MawjfBjH3hhWKhYuBfhpa\
fWZvch5yb2p+ZRtrc5ObeR95m4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9vrH22wRrBmbimrx6wprCduRsOf435f5kG+3mWBx6gRUVF\
R/8MCR55oUSZfwoelKFpmY8LHnCkmAAfHopkaZVfDAwelKFpmY8eajFAA/8MDQAAAAABAAAAAwAA\
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?
Regards and thanks again, Joop Vriend.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
