Yeah, the AOI is propably the best option. I can just loop through the pages. How would I find the rectangle for the page to print?
Thanks again Yanick -----Original Message----- From: Thomas E Deweese [mailto:[EMAIL PROTECTED]] Sent: August 19, 2002 8:44 AM To: Batik Users Subject: RE: Printing Multi-page document >>>>> "YG" == Yanick Gaudet <[EMAIL PROTECTED]> writes: YG> Hi, Since I already have the document within the App can't I just YG> modify the Document and set it to the PrintTranscoder? YG> Question: How would you set the viewBox? If you are talking directly to the transcoder the easiest way to put part of an image on the page is the AOI hint (SVGAbstractTranscoder.KEY_AOI). It takes a Rectangle2D that indicates the rectangle to print. However since there is only one AOI hint per transcoder you can use the PrintTranscoder with multiple TranscoderInputs and this feature. You might be able to get the correct behaviour by providing a fake URL that included the viewBox when you construct the TranscoderInput, but this would be a hack that might break in the future. Really the PrintTranscoder should be updated to allow users to specify '1/N up' printing. --------------------------------------------------------------------- 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]
