This could be done using a similar approach as I've taken with my
PDF-in-PDF plug-in for FOP. Each page could be converted to a PDF Form
and then painted from a newly set-up page with the new dimensions. That
could lead to a nice new function for PDFBox. They're also always
looking for contributors. ;-)

Also you might want to take a look at Multivalent. It has a good impose
function. Maybe it can be mistreated for your purposes.

Another possibility is to use the new intermediate format I'm currently
writing for FOP. It allows arbitrary transformation matrices which could
be used to do something like you need. No guarantee that it'll work. I
haven't done any tests in that direction. And it can only work for
formats like PDF, PS and Java2D. For PCL and AFP this will definitely
not work due to the format limitations. But I assume that won't bother
you.

On 13.01.2009 22:39:04 Peter Coppens wrote:
> 
> 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
> -- 
> View this message in context: 
> http://www.nabble.com/Scale-fop-created-pages-for-pdf-output-tp21445071p21445071.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to