Yes, I tested both....

Sadly whilst large images are scaled correctly (to fit) smaller images are
expanded to fit the page width :(

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.

On 11 May 2011 16:27, Geoffrey De Smet <ge0ffrey.s...@gmail.com> wrote:

>  Instead of having to do add that for every image, we should fix it on the
> styles itself.
> I created an issue for that long ago:
>   https://issues.jboss.org/browse/JDOCBOOKSTYLE-19
> 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).
>
> You didn't happen to test with both images that were to big and those that
> were to small for a page? :)
> Image to big => should be scaled down
> Image to small => should NOT be scaled up to fit the page width (looks
> awe-full).
> That might be the tricky part :/
>
> Op 11-05-11 17:04, Michael Anstis schreef:
>
> If you've ever struggled to get an image to scale correctly in the PDF form
> of our documentation I "discovered" "scalefit" this afternoon.
>
> Set it to "1" on your imagedata and it'll fit perfectly in HTML and PDF :)
>
> <mediaobject>
>   <imageobject>
>     <imagedata fileref="whatever.png" format="PNG" scalefit="1" >
>     </imagedata>
>   </imageobject>
> </mediaobject
>
>
>
> _______________________________________________
> rules-dev mailing 
> listrules-dev@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-dev
>
>
> --
> With kind regards,
> Geoffrey De Smet
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Reply via email to