You would think that wouldn't you?  But no.  You apparently have to take into 
consideration the margins for every page.  Otherwise the images don't align on 
the following pages.  

I know the formula in my previous email works.  What I don't know is why.  Is 
it correct or is it completely wrong and just works by some unlucky coincidence?

 -----Original Message-----
From:   Thomas DeWeese [mailto:[EMAIL PROTECTED] 
Sent:   Tuesday, November 16, 2004 6:14 PM
To:     Batik Users
Subject:        Re: printing multiple page svg image.

Litton, Tom - CEPM wrote:

> I've written a transcoder similar to the PrintTranscoder, except instead 
> of printing a single page, it breaks the image (vertically) into mult 
> iple pages and prints each one in turn.  It only handles one image and 
> the transcode method is only called once,  before print is called.
> 
> So I have an SVG file such as:
> 
>         <g id="Page2" transform="translate(0, 800)">


> My question is on the code " (pageFormat.getImageableY()+4) " (which is 
> part of the translate method call).
> 
> Without the 4, the pages drift upwards, so that the 3 ^ rd page starts 
> above the top margin (and that part of the image isn 't printed).   Why 
> is this?  Am I missing something?

    Umm, I think you want to use something like:

        pageFormat.getImageableY()-pageNumger*800

    Where 800 is the offset from page to page in your document.  This
will but the top of that group at pageFormat.getImageableY().



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

Reply via email to