Re: [css2xslfo-support] Scaling of images
Brought to you by:
wdonne
From: <wer...@re...> - 2007-07-08 21:52:42
|
Hi Andreas, The solution should be to set content-width to "scale-to-fit" and the width property to "100%". This seems to work only with Antenna House, however. I tried it also with XEP and Xinc, but there the height is reduced to almost one line. The image doesn't fit in it. I'll have to ask around why the behaviour is different. Best regards, Werner. Andreas Jung wrote: > 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="40%"> > <img src="img1.png" /> > </td> > <td width="40%"> > <img src="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 > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support -- Werner Donné -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |