OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] images scaling problem for print output

Hi Peppo,

thanks for your help!
It was not the solution I was looking for in the beginning but finally it worked. :)
I was hoping that I only needed to change a couple of parameters in my customization layer.

Now, I played around with the size of my images and made them all as wide as my page is and then they don't get scaled anymore (as suggested in 1.).
Changing dpi made the quality acceptable.

Thanks again and have a nice weekend,

On Thu, Jan 13, 2011 at 4:56 PM, Giuseppe Bonelli <peppo.bonelli@gmail.com> wrote:
On Thu, Jan 13, 2011 at 3:31 PM, Sebastian Kaiser
> -> My problem, on the other hand, is that all  images are stretched to page
> width, no matter if they have the size of a stamp or a telephone.
> That does not seem to be a "dots per inch problem" because all images then
> should vary in size by the same factor, right?

Hi Sebastian,
I routinely produce complex pdf for print full of images from DB and I
do not have any scaling issues. Here is what I do (hope this will help

1. all images (raster or vector) for print are pdf sized in mm to the
right dimensions depending on the page size. Obviously during the pdf
generation from raster images (using GIMP or Photoshop) Ihave to chose
the right mm dimensions to guarantee the quality I want based on the
DPI of the sources.

2. in the DB source I use the following markup:
<figure float="none">
    <title>a title</title>
         <imageobject role="print">
               <imagedata fileref="foo.pdf" format="PDF"/>

3. If needed I can use <imagedata fileref="foo.pdf" format="PDF"
scale="xx"/> and the image gets scaled correctly (note that xx is NOT
followed by %).

As you can see, everything is pretty standard and works perfectly. I
have just made a quick test on one of my db file using a PNG instead
of a PDF and the scaling works as expected also in this case.

What FO processor are you using? (I use Antenna House)
What version of DB fo xslt are you using /overriding? (I use a
customization layer overriding 1.75.2 from DB 4.5 sources)



Sebastian Kaiser

Askozia - Intuitive Telephony

Salzdahlumer Strasse 46/48
D-38302 Wolfenbüttel
Tel: +49 (0)5331 900 989 202
Fax: +49 (0)5331 900 989 199

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]