Hi, px unit defaults to 1/72 in, but you can specify other size: either in conf file with source-resolution, or in logic with fopFactory.setSourceResolution()
Note that px is device dependant. You should use absolute unit instead. 2014-06-17 10:46 GMT+02:00 Dridi Seifeddine <sdr...@iptech-group.com>: > Hello, > > > >>> Is that what you were trying to achieve? > > > > No. I want to leave the image as it is and prevent FOP from scaling up or > down. Using this: > > <fo:external-graphic src="300dpi.jpg" width=”1919px” height=”1272px” > content-width="scale-to-fit" content-height="scale-to-fit"/> > > > > FOP implicitly assumes that the image’s DPI is 72, so when calculating the > mpt size we get (1919000, 1272000), and the image is rendered with no > scaling applied. > > > > My question is: Is there any way to override the image’s DPI in FOP using > the config? > > > > Thanks > > > > Seifeddine > > > > > > -- pascal --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org