You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by tk...@apache.org on 2001/10/30 16:04:15 UTC

cvs commit: xml-batik/test-resources/org/apache/batik/transcoder/image/resources - New directory

tkormann    01/10/30 07:04:14

  xml-batik/test-resources/org/apache/batik/transcoder/image/resources - New directory

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


Re: cvs commit: xml-batik/test-resources/org/apache/batik/transcoder/image/resources - New directory

Posted by Thierry Kormann <tk...@ilog.fr>.
On Tuesday 30 October 2001 16:53, cguillaume wrote:
> Batik 1.1, I'm downloading the version developper 1.3
> My problem is that I can't find a way to position by inch X,Y coordinates
> for lines, polygones, polylines,...
> It seems to be only possible using pixels, isn't it?

The problem in your following document is that the line seems out of the svg 
element bounds.

If you change the width and height attributes on your outermost svg element, 
that should work.

> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
> > > "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
> > >   <svg width="11.7in" height="2.54in"  svgNum="0">
> > >  <line x1="2" y1="24" x2="25" y2="8" stroke="red" />
> > > </svg>
> > >
> > > that should be
> > >  <line x1="2in" y1="24in" x2="25in" y2="8in" stroke="red" />
> > > but this doesn't work...



Thierry.



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


Re: cvs commit: xml-batik/test-resources/org/apache/batik/transcoder/image/resources - New directory

Posted by cguillaume <cg...@odyssey.lu>.
Hi,

I attached a kind of file that produces the problem,

I changed the width and height attributes on your outermost svg element,
that should work, but the position of the polygone doesn't seem to be in
inch,
the polygone is writen, but very small, like with positions in pixels.

I let you test it too.

Thanks!

----- Original Message -----
From: "Thierry Kormann" <tk...@ilog.fr>
To: <ba...@xml.apache.org>; "cguillaume" <cg...@odyssey.lu>
Sent: Tuesday, October 30, 2001 4:40 PM
Subject: Re: cvs commit:
xml-batik/test-resources/org/apache/batik/transcoder/image/resources - New
directory


> On Tuesday 30 October 2001 16:36, cguillaume wrote:
> > Hi all,
> >
> > Just to know how is it possible to work in inch in the application,
> > and how is it possible to work with graphic elements (such as polyline,
> > polygone, lines,..) with X, and Y positions in inch like
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
> > "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
> >   <svg width="11.7in" height="2.54in"  svgNum="0">
> >  <line x1="2" y1="24" x2="25" y2="8" stroke="red" />
> > </svg>
> >
> > that should be
> >  <line x1="2in" y1="24in" x2="25in" y2="8in" stroke="red" />
> > but this doesn't work...
>
> It should work.
>
> What's the problem ?
> Which version of batik are you using ?
>
> Thierry.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-dev-help@xml.apache.org
>
>

Re: cvs commit: xml-batik/test-resources/org/apache/batik/transcoder/image/resources - New directory

Posted by Thierry Kormann <tk...@ilog.fr>.
On Tuesday 30 October 2001 16:36, cguillaume wrote:
> Hi all,
>
> Just to know how is it possible to work in inch in the application,
> and how is it possible to work with graphic elements (such as polyline,
> polygone, lines,..) with X, and Y positions in inch like
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
> "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
>   <svg width="11.7in" height="2.54in"  svgNum="0">
>  <line x1="2" y1="24" x2="25" y2="8" stroke="red" />
> </svg>
>
> that should be
>  <line x1="2in" y1="24in" x2="25in" y2="8in" stroke="red" />
> but this doesn't work...

It should work. 

What's the problem ?
Which version of batik are you using ?

Thierry.


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


Re: cvs commit: xml-batik/test-resources/org/apache/batik/transcoder/image/resources - New directory

Posted by cguillaume <cg...@odyssey.lu>.
Hi all,

Just to know how is it possible to work in inch in the application,
and how is it possible to work with graphic elements (such as polyline,
polygone, lines,..) with X, and Y positions in inch like

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
"http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
  <svg width="11.7in" height="2.54in"  svgNum="0">
 <line x1="2" y1="24" x2="25" y2="8" stroke="red" />
</svg>

that should be
 <line x1="2in" y1="24in" x2="25in" y2="8in" stroke="red" />
but this doesn't work...

I'm reading documents with texts and graphics positionned in inch values, so
I would have just to read this values and write the SVG file.

So Can you help me
It's a little bit urgent

Thanks a lot in advance!!
Ciao

Christophe Guillaume
Luxembourg





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