I have a large number of XML documents that are created in a docbook, and through maven are published both in html for format and in pdf format. Generations work great and html looks great. The question I have is the size of the images in the pdf version. Images are a collection of screenshots, some of them are full-screen, about 2 / 3rds width and height, and others are small search boxes. Obviously, I need to do massive refactoring of imagedata attributes. I was wondering, why should I reorganize it? I am looking for a way to create up to 4 types of images and to force them to use their own size. An example image is as follows:
<section><title>Screenshot</title>
<mediaobject>
<imageobject>
<imagedata fileref="./views/screenshots/editNote.png" scalefit="0" width="100%"/>
</imageobject>
</mediaobject>
</section>
And it only works for some of my screen shot sizes.
I played with scalefit, width and contentwidth / contentheight and they seem to solve different parts of the problem. Should I also look into viewports?
NOTE. There is no fear of breaking the html generation, since I can include “exclude properties” in XSL.
source
share