Re: Newbie question about SVG

2003-05-01 Thread Jeremias Maerki
Don't mix two things:

1. FOP supports EPS as image format (input) in the PDF and PostScript
renderers.

2. My "project underway" is a Batik Transcoder that allows to convert
SVG to EPS. It uses approximately the same code that converts inline SVG
to PostScript when an XSL:FO file is processed.

On 29.04.2003 05:45:29 Victor Mote wrote:
> Clay Leeds wrote:
> 
> > NOTE TO VICTOR: since/if EPS (Encapsulated PostSript) can be used by FOP
> > (can it?), should it be added to the list?
> 
> To my knowledge, FOP doesn't support EPS right now. I think Jeremias has a
> project underway to add that. I would think it to be pretty doable,
> especially for PDF and PostScript output. Perhaps he will comment when he
> returns.


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie question about SVG

2003-04-29 Thread Victor Mote
J.Pietschmann wrote:

> EPS is supported, in some sense. FOP will basically dump it more
> or less unchanged into the PDF, and Acrobat Reader isn't able to
> display it. However, a PS printer will happily print the PDF including
> the EPS, and IIRC ghostscript will display it correctly.
>
> > There's good information on SVG here (other graphic formats are on that
> > page as well):
> >   http://xml.apache.org/fop/graphics.html#svg
>
> Doesn't cover the question (Why SVG is not resized). It is somewhat
> FAQish, should probably be added there.

I just added (in CVS) a section on the graphics page, in the SVG section
dealing with this issue.

> > NOTE TO VICTOR: since/if EPS (Encapsulated PostSript) can be used by FOP
> > (can it?), should it be added to the list?
>
> Certainly, with the caveats explained. ("Why doesn't my EPS show up
> in Acrobat Reader?" is almost a FAQ, nearly everyone first time
> facing the problems seems to wonder).

I have added (in CVS) an "EPS" section to the graphics page documenting the
limited support and the related issues.

Victor Mote


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie question about SVG

2003-04-29 Thread Victor Mote
Clay Leeds wrote:

> NOTE TO VICTOR: since/if EPS (Encapsulated PostSript) can be used by FOP
> (can it?), should it be added to the list?

To my knowledge, FOP doesn't support EPS right now. I think Jeremias has a
project underway to add that. I would think it to be pretty doable,
especially for PDF and PostScript output. Perhaps he will comment when he
returns.

Victor Mote


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie question about SVG

2003-04-28 Thread J.Pietschmann
Olivier Imbert wrote:
This means I cannot include the same svg twice with 2 different dimensions ?
Is it a specification issue or an implementation issue ?
There is no proper specification on how SVG should be handled.
The SVG spec has a lot on how the SVG renderer and the container
negotiate windows and workspaces, but it still boils down to
"whatever the implementer chooses to do".
There are possiblities to scale SVG, but I don't have a recipe
at hand. All the SVG window/viewport stuff is black magic to
me, and the only way I could it reliable make work for me in
FOP is to use the same witdh/height in length units on the
svg:svg as on the fo:external-graphics.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Newbie question about SVG

2003-04-28 Thread Olivier Imbert
Le Lundi 28 Avril 2003 20:00, J.Pietschmann a écrit :
> Clay Leeds wrote:
> > I don't have an answer for your SVG problem, (sorry!) but EPS is not
> > listed on the supported graphics page Victor & I were discussing.
>
> EPS is supported, in some sense. FOP will basically dump it more
> or less unchanged into the PDF, and Acrobat Reader isn't able to
> display it. However, a PS printer will happily print the PDF including
> the EPS, and IIRC ghostscript will display it correctly.

Little bit surprised by Clay answer ... so I can consider EPS is supported ? 
On my side, it work fine ... I just have a performance issue (see "Rendering 
PDF with EPS graphics in it").

> > There's good information on SVG here (other graphic formats are on that
> > page as well):
> >   http://xml.apache.org/fop/graphics.html#svg
>
> Doesn't cover the question (Why SVG is not resized). It is somewhat
> FAQish, should probably be added there.
>
> > NOTE TO VICTOR: since/if EPS (Encapsulated PostSript) can be used by FOP
> > (can it?), should it be added to the list?
>
> Certainly, with the caveats explained. ("Why doesn't my EPS show up
> in Acrobat Reader?" is almost a FAQ, nearly everyone first time
> facing the problems seems to wonder).
>
> J.Pietschmann
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie question about SVG

2003-04-28 Thread Olivier Imbert
This means I cannot include the same svg twice with 2 different dimensions ?
Is it a specification issue or an implementation issue ?

Le Lundi 28 Avril 2003 19:47, J.Pietschmann a écrit :
> Olivier Imbert wrote:
> > I use to got external graphics in my fo document.
> > When I use a BMP, PNG or EPS graphics, it is correct :
> >  > height="auto" src="url(img/gms1.eps)" width="8.7cm"/>
> > This will work correctly (whatever the size of the graphic, it will be
> > shrink to the specified width/height. For SVG, it will not !
> > How shoud I do ?
>
> Define the same with/height on the svg element in the SVG file.
>
> J.Pietschmann
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie question about SVG

2003-04-28 Thread J.Pietschmann
Clay Leeds wrote:
I don't have an answer for your SVG problem, (sorry!) but EPS is not
listed on the supported graphics page Victor & I were discussing.
EPS is supported, in some sense. FOP will basically dump it more
or less unchanged into the PDF, and Acrobat Reader isn't able to
display it. However, a PS printer will happily print the PDF including
the EPS, and IIRC ghostscript will display it correctly.
There's good information on SVG here (other graphic formats are on that
page as well):
  http://xml.apache.org/fop/graphics.html#svg
Doesn't cover the question (Why SVG is not resized). It is somewhat
FAQish, should probably be added there.
NOTE TO VICTOR: since/if EPS (Encapsulated PostSript) can be used by FOP
(can it?), should it be added to the list?
Certainly, with the caveats explained. ("Why doesn't my EPS show up
in Acrobat Reader?" is almost a FAQ, nearly everyone first time
facing the problems seems to wonder).
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Newbie question about SVG

2003-04-28 Thread J.Pietschmann
Olivier Imbert wrote:
I use to got external graphics in my fo document.
When I use a BMP, PNG or EPS graphics, it is correct :

This will work correctly (whatever the size of the graphic, it will be shrink 
to the specified width/height. For SVG, it will not !
How shoud I do ?
Define the same with/height on the svg element in the SVG file.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Newbie question about SVG

2003-04-28 Thread Adam Shelley
This is probably not the definitive answer but if you specify the proper
width and height in the actual svg document it should be sized correctly in
the resulting pdf document.  FOP handles svg documents differently than
other images.  It internally maps these images to pdf graphic objects.  For
this reason i think (keywords: i think) it doesn't even try to scale it.

-Adam

-Original Message-
From: Olivier Imbert [mailto:[EMAIL PROTECTED]
Sent: April 28, 2003 10:21 AM
To: [EMAIL PROTECTED]
Subject: Newbie question about SVG


I use to got external graphics in my fo document.
When I use a BMP, PNG or EPS graphics, it is correct :

This will work correctly (whatever the size of the graphic, it will be
shrink
to the specified width/height. For SVG, it will not !
How shoud I do ?

Olivier.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie question about SVG

2003-04-28 Thread Clay Leeds
Olivier,

I don't have an answer for your SVG problem, (sorry!) but EPS is not
listed on the supported graphics page Victor & I were discussing.
There's good information on SVG here (other graphic formats are on that
page as well):

  http://xml.apache.org/fop/graphics.html#svg

NOTE TO VICTOR: since/if EPS (Encapsulated PostSript) can be used by FOP
(can it?), should it be added to the list?

;-p

Olivier Imbert wrote:
> I use to got external graphics in my fo document.
> When I use a BMP, PNG or EPS graphics, it is correct :
>  src="url(img/gms1.eps)" width="8.7cm"/>
> This will work correctly (whatever the size of the graphic, it will be shrink 
> to the specified width/height. For SVG, it will not !
-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie question about SVG

2003-04-28 Thread Olivier Imbert
I use to got external graphics in my fo document.
When I use a BMP, PNG or EPS graphics, it is correct :

This will work correctly (whatever the size of the graphic, it will be shrink 
to the specified width/height. For SVG, it will not !
How shoud I do ?

Olivier.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]