Re: image size

Thomas Radtke <[email protected]> Tue, 28 Apr 2015 13:18:22 +0200
Newsgroups gmane.text.xml.xfc.general
Message-ID <[email protected]>
Am 28.04.2015 um 12:28 schrieb Hussein Shafie:
> On 04/28/2015 10:54 AM, Thomas Radtke wrote:
>>
>> we're currently trying the fo converter and notice that SVG graphics are
>> printed approx. half in size, while bmp's display just fine (docx
>> output). The same SVG graphics render ok with Apache FOP (pdf output).
>> What am I doing wrong here?
>>
>
> Nothing wrong.
>
> My guess is that you do not specify width and height attributes in the 
> fo:external-graphic referencing the SVG file.
>
> It's strongly recommended to always specify width and height 
> attributes (in in, cm, pt, etc) in fo:external-graphic.
>
> If you cannot do that, FOP and our product, XMLmind XSL-FO Converter, 
> seem to use different intrinsic image dimensions for SVG.
>
> Passing command-line parameter (or the Java/.NET API equivalent)
>
> set.svg.resolution
>
> should allow you to change the intrinsic image dimensions for SVG.
>
> For example:
>
> -set.svg.resolution=96

Thanks! While this basically works, the images undergo terrible 
rasterization. imageRendererResolution and
imageResolution had no effect, so I guess I'll have to configure Batik 
somehow or actually state image sizes in fo (allthough they're correctly 
embedded in the SVGs).

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