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 &quot;scalefit&quot; attribute to any images that don&#39;t fit. <br>
<br><div class="gmail_quote">On 11 May 2011 16:27, Geoffrey De Smet <span dir="ltr">&lt;<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;</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&#39;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&#39;s).<br>
    <br>
    You didn&#39;t happen to test with both images that were to big and
    those that were to small for a page? :)<br>
    Image to big =&gt; should be scaled down<br>
    Image to small =&gt; 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&#39;ve ever struggled to get an image to scale
      correctly in the PDF form of our documentation I &quot;discovered&quot;
      &quot;scalefit&quot; this afternoon.<br>
      <br>
      Set it to &quot;1&quot; on your imagedata and it&#39;ll fit perfectly in HTML
      and PDF :)<br>
      <br>
      <span style="font-family: courier new,monospace;">&lt;mediaobject&gt;</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;"> 
        &lt;imageobject&gt;</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">   
        &lt;imagedata fileref=&quot;whatever.png&quot; format=&quot;PNG&quot; scalefit=&quot;1&quot;
        &gt;</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">   
        &lt;/imagedata&gt;</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;"> 
        &lt;/imageobject&gt;</span><br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">&lt;/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>