Thanks for your help. Problem solved.

NeoDoc
Maxime Bégnis
Développeur
Tél: 09.54.96.99.55 - Fax: 09.59.96.99.55
5, rue de la Touloubre
13770 Venelles

Le 01/07/2011 17:03, Hussein Shafie a écrit :
On 07/01/2011 02:14 PM, Maxime Bégnis wrote:
We sometimes have a problem with images in the XFC output : the
resolution of the image in the output is downgraded regarding the
original image. For example, an original image is 499x487px and 72dpi
and is scaled down to 10cm(as requested) in the output with a poor
quality. 

I noticed that changing the resolution of the original image
fixes the problem.
If you have specified option prescaleImages=false (see below), then the
problem comes from your image and not from XFC.



What are the image conversion rules followed by XFC?
Is there a way to fix the problem without changing the images directly?

The following command-line options, imageResolution and prescaleImages,
(these options have, of course, API equivalents) can be used to control
the way XFC renders images.

Excerpts from
http://www.xmlmind.com/foconverter/_distrib/doc/user/command_line_java.html
---
* imageResolution

    Default image resolution in DPI. A positive integer. Used to compute
the intrinsic size of an image, but only when an image file does not
contain resolution or absolute size information.

    Default value: 96.

* prescaleImages

    Image scaling policy. true or false. Default: true.

    By default images are prescaled to minimize output document size. If
the prescaleImages property is set to false the original size of images
is preserved and scaling directives are inserted in the output document.

    The prescaleImages property is honored only for true raster
graphics. Vector graphics (WMF, EMF) are never prescaled. Pre-rasterized
vector graphics (SVG, MathML) are always prescaled (by the competent
renderer, e.g. Batik or JEuclid, not by XMLmind XSL-FO Converter itself).
---

Note that when an image file contains incorrect resolution information
(which is often the case), there is currently no way to instruct XFC to
ignore this information. The only way to fix the problem is to fix the
image by changing the resolution information in the image file.

 
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to