Hi, Andreas, > Try 396 (= 5.5in at 72dpi), unless you're overriding the > default resolution of course...
Yup. I caught that right after I posted that message. I used to use 96 dpi screen captures (at a previous job), but I use 72 dpi these days. > See above: If you're not overriding the default resolution, > this is caused by the fact that 528px is 7.33in in the > default resolution. I don't think that's the issue. The algorithm in that template is "if the image is more than 396 pixels wide, scale the image". It doesn't try to scale the image to 396 pixels. So, the line in the FO file is <fo:external-graphic src="someimage.gif" content-width="scale-to-fit"/> When FOP hits that line, whether the image's actual width is 2 pixels or 2000 pixels, it should be scaled to fit the available space, right? (Of course, I'd have a bug somewhere on my side if I thought an image with two pixels was more than 396 pixels wide, but that's a separate problem.) Also, I have tried simply setting all the images to content-width="scale-to-fit" with the following line: <fo:external-graphic src="[EMAIL PROTECTED]" content-width="scale-to-fit"/> It still goes boom. I have done some additional testing by setting content-width="scale-to-fit" on images that are much smaller than the available area. In those cases, FOP doesn't produce the error and does produce a working PDF file, but it also does NOT scale the image to fill the area. It's my understanding that content-width="scale-to-fit" should shrink larger images and expand smaller images to fill the width of the content area. At this point, I suspect that content-width="scale-to-fit" is not working correctly. If you or any of the other developers would like to look into this issue, I can provide test files (both FO files and images that cause problems). Thanks. Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
