[css2xslfo-support] Scaling of images
Brought to you by:
wdonne
From: Andreas J. <li...@zo...> - 2007-07-06 16:50:03
|
I am currently experimenting with generating PDFs with some fixed layout containing images where different variations of the PDF might contain the images in different resolutions (either for viewing or a printing workflow). Assume I have the something like that: <table> <tr> <td width=3D"40%"> <img src=3D"img1.png" /> </td> <td width=3D"40%"> <img src=3D"img2.png" /> </td> </tr> </table> Assume img1.png is available in a small resolution of 300x200px and a large = one of 2000x1500px. In both cases the image should be scaled to 40% of the page width. I can of course specify img { content-width: 40%; } or something similar but I would like to avoid that an let XSLFO scale the image based on the dimensions of the surrounding table. Is this possible? Andreas |