You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Joop Vriend <jo...@ddnh.nl> on 2003/02/13 22:06:32 UTC

EPS images not shown in Acrobat

Hi there,

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?

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.

Kind regards, Joop Vriend.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Batik error opening SVG (Was: Re: EPS images not shown in Acrobat)

Posted by Joop Vriend <jo...@ddnh.nl>.
Jeremias Maerki wrote:

<snip/>

>>When we used outlines instead of an embedded font, the result in the PDF 
>>was rather ugly, not smooth. While the SVG looks perfect in Internet 
>>Explorer (Adobe SVG Viewer) and in Squiggle.
> 
> 
> There's a setting in Acrobat Reader (Preferences/Display) where you can
> turn on Smoothing for line art. The SVG should then look like in SVG
> Viewer and Squiggle.

That works! Thanks. Strange that's an option - or at least, that it's 
not turned on by default.

<snip/>

>>Squiggle can't open the generated SVG either when the font is embedded, 
>>it generates the same CSS stylesheet document error.
> 
> 
> So I guess you know now whom to address for this one. Isn't there a
> setting in Illustrator not to use a CSS stylesheet? I know there is one
> in CorelDraw. Maybe that could help.

No, can't find such an option I'm afraid.

<snip/>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Batik error opening SVG (Was: Re: EPS images not shown in Acrobat)

Posted by Jeremias Maerki <de...@greenmail.ch>.
On 18.02.2003 15:47:52 Joop Vriend wrote:
> Jeremias Maerki wrote:
> > I haven't used Illustrator myself before but have you tried playing
> > around with the export setting such as convert text to graphics or not
> > embedding but only referencing the fonts?
> 
> When we used outlines instead of an embedded font, the result in the PDF 
> was rather ugly, not smooth. While the SVG looks perfect in Internet 
> Explorer (Adobe SVG Viewer) and in Squiggle.

There's a setting in Acrobat Reader (Preferences/Display) where you can
turn on Smoothing for line art. The SVG should then look like in SVG
Viewer and Squiggle.

> And with linked fonts FOP (Batik) doesn't include the font in the 
> resulting PDF, and that's not acceptable because we can't expect all 
> users to have the font installed. Ofcourse that's the reason we want to 
> embed the font in the first place.

I see.

> > If you download Batik standalone and start Squiggle (the SVG browser)
> > can it display the generated SVG? If no, then it's a Batik problem and
> > the Batik team should be contacted.
> 
> Squiggle can't open the generated SVG either when the font is embedded, 
> it generates the same CSS stylesheet document error.

So I guess you know now whom to address for this one. Isn't there a
setting in Illustrator not to use a CSS stylesheet? I know there is one
in CorelDraw. Maybe that could help.

> > On 14.02.2003 22:39:43 Joop Vriend wrote:
> > 
> >>>>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.
> >>
> >>We (already) tried it with the latest version of Batik. Still no luck.
> 
> Joop Vriend.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Batik error opening SVG (Was: Re: EPS images not shown in Acrobat)

Posted by Joop Vriend <jo...@ddnh.nl>.
Jeremias Maerki wrote:
> I haven't used Illustrator myself before but have you tried playing
> around with the export setting such as convert text to graphics or not
> embedding but only referencing the fonts?

When we used outlines instead of an embedded font, the result in the PDF 
was rather ugly, not smooth. While the SVG looks perfect in Internet 
Explorer (Adobe SVG Viewer) and in Squiggle.

And with linked fonts FOP (Batik) doesn't include the font in the 
resulting PDF, and that's not acceptable because we can't expect all 
users to have the font installed. Ofcourse that's the reason we want to 
embed the font in the first place.

> If you download Batik standalone and start Squiggle (the SVG browser)
> can it display the generated SVG? If no, then it's a Batik problem and
> the Batik team should be contacted.

Squiggle can't open the generated SVG either when the font is embedded, 
it generates the same CSS stylesheet document error.

> On 14.02.2003 22:39:43 Joop Vriend wrote:
> 
>>>>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.
>>
>>We (already) tried it with the latest version of Batik. Still no luck.

Joop Vriend.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: EPS images not shown in Acrobat

Posted by Jeremias Maerki <de...@greenmail.ch>.
I haven't used Illustrator myself before but have you tried playing
around with the export setting such as convert text to graphics or not
embedding but only referencing the fonts?

If you download Batik standalone and start Squiggle (the SVG browser)
can it display the generated SVG? If no, then it's a Batik problem and
the Batik team should be contacted.

On 14.02.2003 22:39:43 Joop Vriend wrote:
> >>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.
> 
> We (already) tried it with the latest version of Batik. Still no luck.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: EPS images not shown in Acrobat

Posted by Joop Vriend <jo...@ddnh.nl>.
<snip/>

>>>>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?

I tried it with FOP 0.20.5rc - still got an error, though different:

'Error: /syntaxerror in stream'

Also found out that it's not an EPS that's causing this error, but 
simply an text-block which uses a Type 1 font we added/registered in 
userconfig.xml. This font we converted from Mac Type1 Printer Font to PC 
Type1 Printer Font (.pfb) using CrossFont.

<snip/>

>>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.

We (already) tried it with the latest version of Batik. Still no luck.

<snip/>

>>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. :-)

Yep! Couldn't agree more... Was actually rather surprised I couldn't 
find something on the internet.

> 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.

Thanks for the tip, but the images aren't always absolutely positioned.

Joop Vriend.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: EPS images not shown in Acrobat

Posted by Jeremias Maerki <de...@greenmail.ch>.
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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: EPS images not shown in Acrobat

Posted by Joop Vriend <jo...@ddnh.nl>.
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+ZRtrc5ObeR95m4KeohqilJ+enB6vq9KX9oQIHAk5+4YViaSK9PdNGtd4wGWpHqlm\
W5pQG1BUfW9ZHzcHrLe8nMIbwrF5aJ8flXiQcGca+xeWL3xVYwhjbHZkXBpdm2Wqbx5uqrV9wBvV\
xarJtR+Kc4tujGsI3gYx94YVioWLgX4aWn1mb3Iecm9qfmUba3OTm3kfeZuCnqIajKKUn56crqvS\
l/aECBzucfegFfsFB4v3pouoqaKDepwem3qTdG5ui1hBGkCKWopyHrKMsouyigiKpIrp9zkamYaZ\
gJYe+z73PgWWgH6Rexv7sAb6yhb7rwZ7foWAgB/7P/s+BYCAhn57Gvs4ii2Kch6yjLKLsooIiqSK\
vNXVi76oGqmTopycHpucopOoG6iM96aLixr3BQccBR78khXn94UG0pq+qKoeqqmsmrAbsIynfp9y\
CJ9ylWFRGvuq6PeoB+d5ymiuHq5oYJxYG2aMaoRtfG18cnZ4b4jYGDIGjW6Mb3EajPw/BRwEmdMV\
ZmOXpGEfhjcFdrW5gL4bvraZp64frqadsr0awW22UKkePLQFaZx6oaQam5KZmZgemZqikqobqq2C\
ebAfk9kFm15kk2obUIpefmxwCGxwe2ZbGoxzknWZdpl3oXipe+JbGKd9mXh1GnSCeXl+Hn95dIVv\
G/dj+AQV9wn7rAZQmGClcR5yprB+uxukp4+UqR/aB4B2eIZ6G3F3k5x8H3ucg6eyGveZ9x3R+x33\
KgcvagX7CfsJRQf8EvxMFYenifeO+GwaLvvUBnyldaBtmgibbWuTaBtFUnRcYB9gW3VLORo5n0uz\
XB5btMR01BuurJObqx+qnKShnqgIeIxwjWke5Ab7jfhJFbiweWinH6dnmV9XGld9X29nHmhuZnle\
G15nnKxwH2+sfbbBGsGZuKavHrCmsJ25GxwHz/xJFYanifeO+GwaL/vUBnyldaBtmgibbWuTaBtF\
UnRcYB9fW3VLORqMOZ9Ls1wIW7TEdNQbrqyTm6sfqpykoZ6oCHiMcI1pHuQG+474SRW5sHlopx+n\
Z5lfVxpXfV9vZx5obmZ5XhteZ5yscB9vrH22wRrBmbimrx6wprCduRsOf435f5kG+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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: EPS images not shown in Acrobat

Posted by Jeremias Maerki <de...@greenmail.ch>.
On 13.02.2003 22:06:32 Joop Vriend 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.

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.

> 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.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org