The enclosed file replaces the one mailed earlier today.

This how far I got. If someone wants to elaborate on the subject, let the
list members know. The aim would be to supply a (non-theoretical, because
theory with FOP sometimes is different from reality) description of graphics
in FOP/Cocoon.

Best regards,


Title: Graphics with FOP

Graphics with FOP

(FOP v.0.20.1/Cocoon v.2 rc.2)

Both vector and pixel graphics are possible.

Vector format(s)

  • SVG

Pixel format(s):

  • TIF
  • BMP
  • GIF
  • JPG
  • PNG
  • TGA

The following rules apply to graphics in FO (most frequent formats):

Internal dpi rate
(to be set inside image editing program)
Any Any 96dpi per default
Rendering resolution Internal dpi rate overridden by 72dpi default rendering resolution
FOP enlarges graphics proportionally, the internal dpi rate of which is higher than 72dpi.
Rendering size If not specified using the "width" and "height" attributes, the rendering size of an image is calculated by FOP out of the 72dpi default rendering resolution
FOP skips without error message enlarged graphics, the rendering dimensions of which exceed the size of their container, e.g. <fo:block>. These graphics are not displayed in the rendered PDF document.
To ensure controlled image rendering when creating PDF's for printout with FOP, create e.g. TIF graphics in image editor with the envisaged rendering size (width, height), e.g. at 305dpi (appropriate rendering resolution). Specify rendering size in FO setting the attributes "width" and "height" accordingly.
Alternatively, create graphic in image editor with a multiple ("n") of the envisaged rendering size (width, height), setting an internal dpi rate which is a fraction ("1/n") of the envisaged rendering resolution, which might be again 305dpi. The outcome is the same as above.
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to