Yes, I tested both....<br><br>Sadly whilst large images are scaled correctly (to fit) smaller images are expanded to fit the page width :(<br><br>So, I try to stick the attribute on large images; but ultimately I still generate the PDF and apply the "scalefit" attribute to any images that don't fit. <br>
<br><div class="gmail_quote">On 11 May 2011 16:27, Geoffrey De Smet <span dir="ltr"><<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
Instead of having to do add that for every image, we should fix it
on the styles itself.<br>
I created an issue for that long ago:<br>
<a href="https://issues.jboss.org/browse/JDOCBOOKSTYLE-19" target="_blank">https://issues.jboss.org/browse/JDOCBOOKSTYLE-19</a><br>
If there's a patch, I can fix and release those styles (I did a
release of them last week to stop hudson crashing downloading from
eclipse repo's).<br>
<br>
You didn't happen to test with both images that were to big and
those that were to small for a page? :)<br>
Image to big => should be scaled down<br>
Image to small => should NOT be scaled up to fit the page width
(looks awe-full).<br>
That might be the tricky part :/<br>
<br>
Op 11-05-11 17:04, Michael Anstis schreef:
<blockquote type="cite"><div><div></div><div class="h5">If you've ever struggled to get an image to scale
correctly in the PDF form of our documentation I "discovered"
"scalefit" this afternoon.<br>
<br>
Set it to "1" on your imagedata and it'll fit perfectly in HTML
and PDF :)<br>
<br>
<span style="font-family: courier new,monospace;"><mediaobject></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
<imageobject></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
<imagedata fileref="whatever.png" format="PNG" scalefit="1"
></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
</imagedata></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
</imageobject></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></mediaobject</span><br style="font-family: courier new,monospace;">
<br>
<br>
</div></div><pre><fieldset></fieldset>
_______________________________________________
rules-dev mailing list
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
With kind regards,
Geoffrey De Smet</pre>
</div>
<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>