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]