[rules-dev] docbook - ensuring images fit correctly in PDF

Michael Anstis michael.anstis at gmail.com
Wed May 11 11:33:41 EDT 2011


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.spam at 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 at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-dev
>
>
> --
> With kind regards,
> Geoffrey De Smet
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20110511/d4efc938/attachment.html 


More information about the rules-dev mailing list