Maven 2.x PDF Plugin

Resize images to fit into the page

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Image can go way beyond the page width/height.

Reference: http://continuum.apache.org/docs/1.3.2-SNAPSHOT/apache-continuum.pdf page 3.

Issue Links

Activity

Hide
Lukas Theussl added a comment -

I don't know if it is possible to auto-determine the size of an arbitrary image. The real problem is that there is no way to specify image sizes in apt, and the width/height parameters of an <img> tag in xdoc are not recognized yet. Will open a separate issue.

Show
Lukas Theussl added a comment - I don't know if it is possible to auto-determine the size of an arbitrary image. The real problem is that there is no way to specify image sizes in apt, and the width/height parameters of an <img> tag in xdoc are not recognized yet. Will open a separate issue.
Hide
Vincent Siveton added a comment -

It is a resolution problem and NOT a size problem. The image [1] was saved using a 72dpi resolution, which is the default in fop [2].
If you change the resolution to 96 dpi (more modern), the pdf should be correctly displayed.

[1] http://continuum.apache.org/docs/1.3.2/images/configuration.png
[2] http://xmlgraphics.apache.org/fop/0.95/graphics.html#resolution

Show
Vincent Siveton added a comment - It is a resolution problem and NOT a size problem. The image [1] was saved using a 72dpi resolution, which is the default in fop [2]. If you change the resolution to 96 dpi (more modern), the pdf should be correctly displayed. [1] http://continuum.apache.org/docs/1.3.2/images/configuration.png [2] http://xmlgraphics.apache.org/fop/0.95/graphics.html#resolution
Hide
Lukas Theussl added a comment -

You are right, increasing the image resolution will make the image smaller inside the pdf. (I don't know why it works so badly with 72dpi which is supposed to be the fop default.) So this is the only fix of the problem for images in apt files, for xdoc and in general, we have to recognize the size attributes of the img tag.

Show
Lukas Theussl added a comment - You are right, increasing the image resolution will make the image smaller inside the pdf. (I don't know why it works so badly with 72dpi which is supposed to be the fop default.) So this is the only fix of the problem for images in apt files, for xdoc and in general, we have to recognize the size attributes of the img tag.
Hide
Lukas Theussl added a comment -

Fixed with DOXIA-304.

Show
Lukas Theussl added a comment - Fixed with DOXIA-304.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: