From: Steinar B. <sb...@do...> - 2003-04-27 21:54:43
|
I would like db2latex to make use of any depth and/or width attributes found on <imageobject> elements, to do scaling on the included image. Some of my documents contain images that are shown full size in HTML, but have been scaled down in PDF, eg.: <mediaobject> <imageobject role="html"> <imagedata fileref="img/test.png" format="PNG"/> </imageobject> <imageobject role="fo"> <imagedata fileref="img/test.png" format="PNG" depth="6cm" scalefit="1"/> </imageobject> </mediaobject> The db2latex XSL style sheets does not make use of the depth and width attributes of <imagedata>, so it isn't enough to make db2latex use the fo <imageobject>. I have to create an extra <imageobject> for use by db2latex, in each <mediaobject>, eg.: <mediaobject> <imageobject role="html"> <imagedata fileref="img/test.png" format="PNG"/> </imageobject> <imageobject role="fo"> <imagedata fileref="img/test.png" format="PNG" depth="6cm" scalefit="1"/> </imageobject> <imageobject role="latex"> <imagedata scale="25" fileref="img/test.png" format="PNG"/> </imageobject> </mediaobject> I also have to figure out a suitable scaling factor for each image, by trial and error, instead of scaling the image to the expected size. - Steinar |