Thomas DeWeese <[EMAIL PROTECTED]> schrieb am 14.12.2004 14:06:58:
> [EMAIL PROTECTED] wrote:
>
> > Sorry, I mean it is important for me that the square starts 1cm from the
> > left edge and 1 cm from the top!
>
> Look at the allowed values for the "preserveAspectRatio" attribute.
> In particular 'xMinYMin meet'.
Do You mean to change the document itself or is there a parameter in the PrintTranscoder?
I changed my SVG to this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="200" height="200" preserveAspectRatio="xMinYMin meet" xml:space="preserve" viewbox="0 0 600 600" xmlns="http://www.w3.org/2000/svg">
<g>
<rect x="0" y="0" width="200" height="200" fill="darkblue"/>
</g>
</svg>
and changed the preserveAspectRatio-Parameter several times, nothing happened. To be sure my programm has no bug I also tried to print with squiggle, same result, the output does not change, even though I changed the preserveAspectRatio-Parameter.
>
> > [EMAIL PROTECTED] schrieb am 14.12.2004 09:45:41:
> >
> > >
> > > Hi,
> > > I am trying to print this little SVG:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.
> > > org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> > > <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
> > > <g>
> > > <rect x="0" y="0" width="200" height="200" fill="darkblue"/>
> > > </g>
> > > </svg>
> > >
> > > When I am telling the printdialog to use 1cm margin each side the
> > > svg gets scaled (aspect ratio is preserved) to fit to the page,
> > > which is ok. What bothers me is that the square also gets centered
> > > in the vertical axis. It is important for me that when i use 1 cm
> > > margin the square starts 1cm from the left edge and 1 cm from the
> > > right
> >
> > *** UPDATE ***
> >
> > > and not 1 cm from the left and "somewhere" from the top. Does
> > > anybody have a guess how to change the alignment from center to
> > northwest?
> > >
> > > Thanks, Bj�rn
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
- Problem with alignment when printing Bjoern . Stenersen
- Problem with alignment when printing, UPDATE to pr... Bjoern . Stenersen
- Re: Problem with alignment when printing, UPDA... Thomas DeWeese
- Re: Antwort: Re: Problem with alignment wh... Bjoern . Stenersen
- Re: Antwort: Re: Problem with alignmen... Thomas DeWeese
- Re: Problem with alignment when p... Bjoern . Stenersen
- Re: Problem with alignment wh... Thomas DeWeese
