AH Formatter / XSL Formatter
Q&A



About XSL Formatter

Compatibility with old versions

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  The formatted result had pushed out of the page (A4 size) when I formatted the JPEG file (386 x 386 Pixels; 22dpi) with XSL Formatter V3.2. This phenomenon is not caused in XSL Formatter V2.5. What should I do to obtain a similar formatted result to the one generated by XSL Formatter V2.5? My code is as follows:
<fo:external-graphic src="xxx.jpg" />
[No.2005060302]
A. 

The resolution of your JPEG file is 22dpi, so when the image size is 386 x 386 Pixels, this image size becomes 445.7 x 445.7 mm by this dpi, and it can not be put into A4 size (210 x 297 mm). Because V2.5 had disregarded the resolution of this image, the formatted result was different from the one generated by V3.x. Please execute any one of three following items if you expect the formatting result similar to V2.5.

1) Specify the pixel value directly to the image as follows:

<fo:external-graphic src="xxx.jpg" scaling="uniform" content-width="386px" content-height="386px" />

2) Convert the resolution of the image into an appropriate value.

3) Specify the expected size for content-width/height with absolute values such as cm or inch.


Copyright © 1999-2011 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.