You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Felix Knecht <fe...@otego.com> on 2010/08/13 09:01:07 UTC

Dockbook -> PDF how to size images

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all

I know that this is the wrong list, but maybe anybody has more knowledge.

Trying to generate the pdf the images look horrible size (like Figure
50k FT Architecure).

I'm using following code:
<figure
  id="50k FT Architecture">
  <title>50k FT Architecture</title>
  <mediaobject>
    <imageobject>
      <imagedata
        fileref="images/50k-ft-architecture.png" />
    </imageobject>
  </mediaobject>
</figure>

Thanks
Felix
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxk7bMACgkQ2lZVCB08qHFvlgCg27ixkA27UI7xUw1Kwrh9Is6w
C6QAnAs4mCIGH6oNoq0J9z2/hoSMUq1W
=idNr
-----END PGP SIGNATURE-----

Re: Dockbook -> PDF how to size images

Posted by Emmanuel Lecharny <el...@gmail.com>.
  On 8/13/10 9:01 AM, Felix Knecht wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all
>
> I know that this is the wrong list, but maybe anybody has more knowledge.
regardless to the image size, I have to tell you that the book looks 
just *great* !!!

Felix, Stefan, thanks so much for taking care if this !


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Re: Dockbook -> PDF how to size images

Posted by Felix Knecht <fe...@apache.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Stefan

Late thanks for workaround. I just can believe that this is the online
solution ... It's really odd and I expected a better solution from
dockbook. Maybe I can find something at the Apache FOP pages.

Late thanks and regards
Felix

On 08/13/10 09:27, Stefan Seelmann wrote:
> Hi Felix,
> 
>> Trying to generate the pdf the images look horrible size (like Figure
>> 50k FT Architecure).
>>
>> I'm using following code:
>> <figure
>>  id="50k FT Architecture">
>>  <title>50k FT Architecture</title>
>>  <mediaobject>
>>    <imageobject>
>>      <imagedata
>>        fileref="images/50k-ft-architecture.png" />
>>    </imageobject>
>>  </mediaobject>
>> </figure>
> 
> I made the same experience with the Studio documentation. In the end I
> used the 'scale' attribute, but its value must be set individually for
> each image by trial and error. The good thing is that the scale
> attribute is only used for PDF output, in HTML the image still has its
> original size. Here is an example:
> 
>   <mediaobject>
>     <imageobject>
>       <imagedata scale="75" fileref="images/fromX500toLDAP.png"></imagedata>
>     </imageobject>
>   </mediaobject>
> 
> HTH,
> Stefan
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxm7nIACgkQ2lZVCB08qHGdMgCfcIxDn1QJewfiP8EpEaDnbigJ
H78AoJtpmKTwzDjQES7iX1bxoC5k44mk
=QmCO
-----END PGP SIGNATURE-----

Re: Dockbook -> PDF how to size images

Posted by Stefan Seelmann <se...@apache.org>.
Hi Felix,

> Trying to generate the pdf the images look horrible size (like Figure
> 50k FT Architecure).
>
> I'm using following code:
> <figure
>  id="50k FT Architecture">
>  <title>50k FT Architecture</title>
>  <mediaobject>
>    <imageobject>
>      <imagedata
>        fileref="images/50k-ft-architecture.png" />
>    </imageobject>
>  </mediaobject>
> </figure>

I made the same experience with the Studio documentation. In the end I
used the 'scale' attribute, but its value must be set individually for
each image by trial and error. The good thing is that the scale
attribute is only used for PDF output, in HTML the image still has its
original size. Here is an example:

  <mediaobject>
    <imageobject>
      <imagedata scale="75" fileref="images/fromX500toLDAP.png"></imagedata>
    </imageobject>
  </mediaobject>

HTH,
Stefan