Am trying to convert my svg file to pdf. Following is the svg 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 :

Firefox output :

Any way out to solve this? Thanks.