Hi, There is a fop extension on fo:block-container that allows to resize its content (or any other transformation). This works in the same way as its homonym in SVG. See http://xmlgraphics.apache.org/fop/0.95/extensions.html#transform
Perhaps that could help you. Pascal > -----Message d'origine----- > De : Peter Coppens [mailto:[email protected]] > Envoyé : mardi 13 janvier 2009 22:56 > > Apologies for not being sufficiently clear. > What i need is resized page but also scaled content (images and text). > Thanks > > Peter > > Griffin,Sean wrote: > > > > Peter, > > By "scale" do you mean a different page size? As you > probably know, this > > isn't exactly a difference scale (where the page size would > be the same > > but the image zoom would be different). If you want to use > the same XSLT > > to generate similar XSL-FO with just different page sizes, > you can easily > > pass the page dimensions in as XSLT parameters. If you're actually > > generating images from the PDF and want the images to be scaled at > > different dimensions, some sort of post processor would be required. > > > > Sean > > > > -----Original Message----- > > From: Peter Coppens [mailto:[email protected]] > > Sent: Tuesday, January 13, 2009 3:39 PM > > > > Hello, > > > > I guess this is somewhat off topic.... > > > > Assume existing code to create an XSL FO. Sometimes I need > to render that > > exact same content (to pdf) but with a different scale > > One approach is to create a second stylesheet that refers to the > > originally > > generated pdf but uses the scaled page size. > > Now I wonder whether I can take any shortcuts here. I have > been looking > > into > > some pdf lib's (PDFBox being one of them) but I can not > immediately figure > > out how I would be able to rescale the pages. > > > > Many thanks for guidance or tips! > > > > Peter --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
