You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Harmen van Keimpema <h....@mediaspring.nl> on 2002/06/13 16:55:33 UTC

conversion of FO to PDF results in rectangles instead of whitespaces

Hi all,

I'm having a weird problem with converting a FO to PDF.
The FO serves as a place holder for an SVG file like this:
<fo:block><fo:external-graphic src="file:temp1.svg"/></fo:block>

The SVG file contains text with ARIAL font.
I'm using real text in the PDF and my font metrics file is OK (i think).

The resulting PDF looks fine accept for the spaces. Instead of normal
whitespaces, little rectangles are placed...

Does anyone have any idea how i can solve this problem?

Thanks,
Harmen


Harmen van Keimpema
MediaSpring
Nieuwe Gouw 1b
1121 GW LANDSMEER
THE NETHERLANDS
T +31 205 709 140
F +31 205 709 141
M +31 627 053 366
E h.vankeimpema@mediaspring.nl
W www.mediaspring.nl

Re: conversion of FO to PDF results in rectangles instead of whitespaces

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Harmen van Keimpema wrote:
> I'm having a weird problem with converting a FO to PDF.
> The FO serves as a place holder for an SVG file like this:
> <fo:block><fo:external-graphic src="file:temp1.svg"/></fo:block>
> 
> The SVG file contains text with ARIAL font.
> I'm using real text in the PDF and my font metrics file is OK (i think).
> 
> The resulting PDF looks fine accept for the spaces. Instead of normal
> whitespaces, little rectangles are placed...

The referenced SVG is rendered with Batik. Batik does not
use the fonts used for FO formatting, it uses Java fonts.
The symptom described appears to indicate that there is no
Arial font available for the JVM/AWT.

Check whether your SVG renders with one of the Batik
command line applications. Use something like
  java -classpath "lib/batik.jar;xerces-1.2.3.jar"
     org.apache.batik.apps.rasterizer.Main temp1.svg
(some options will have to be added according to
instructions)
There is a property for the JVM which allows you to
specify a directory where fonts are searched.

J.Pietschmann