Hi Paul.

Paul Carr:
> Has anyone got an example portrait A4 SVG file that will print to all
> extremities of the page from squiggle ?

This does:

  <svg xmlns="http://www.w3.org/2000/svg";
       version="1.1" width="210mm" height="297mm" viewBox="0 0 210 297">
    <rect width="100%" height="100%"
          stroke="black" stroke-width="1" fill="none"/>
    <circle cx="0" cy="0" r="20"/>
    <circle cx="210" cy="0" r="20"/>
    <circle cx="0" cy="297" r="20"/>
    <circle cx="210" cy="297" r="20"/>
  </svg>

Note how the viewBox defines the area of the coordinate system that is
mapped into the 210mm x 297mm space.  In this case, one user unit is the
same as 1mm.

If you convert this file to a PDF you should see that it displays
properly on the A4 page, and that the rect and the mid-points of the
circles are right on the corners of the page:

  java -jar batik-rasterizer.jar a4.svg -m application/pdf -d a4.pdf

-- 
 Cameron McCormack                      ICQ: 26955922
 cam (at) mcc.id.au                     MSN: cam (at) mcc.id.au
 http://mcc.id.au/                      JBR: heycam (at) jabber.org

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

Reply via email to