Apache Batik Conversion SVG To PDF Not Formatting Text Style

368 views Asked by At

Am trying to convert my svg file to pdf. Following is the svg code :

SVG XML Code

The text formatting is working perfect on Firefox and just fine on chrome browser. But the text format code : style="text-anchor :middle; dominant-baseline: middle; font-family:Arial;" doesn't work with apache batik at all.

Although, giving fixed coordinates works fine.

PDF output :

PDF output

Firefox output :

Firefox output

Any way out to solve this? Thanks.

0

There are 0 answers