1

Hello,

I'm trying to add SVG TEXT support the library but i've run into a small problem.

I've started off by using

protected function _tag_open_TEXT($param, $other = 'text')
{

$this->parsingCss->save();
$this->parsingCss->analyse($other, $param);

if (!$this->_isInDraw) throw new HTML2PDF_exception(8, 'TEXT');

$this->pdf->doTransform(isset($param['transform']) ? $this->_prepareTransform($param['transform']) : null);
$this->parsingCss->save();
$styles = $this->parsingCss->getSvgStyle('path', $param);
$styles['fill'] = null;
$style = $this->pdf->svgSetStyle($styles);

$x1 = isset($param['x']) ? $this->parsingCss->ConvertToMM($param['x'], $this->_isInDraw['w']) : 0.;
$y1 = isset($param['y']) ? $this->parsingCss->ConvertToMM($param['y'], $this->_isInDraw['h']) : 0.;

$this->pdf->setXY( $x1, $y1 );

$this->pdf->undoTransform();
$this->parsingCss->load();

return true;

}

This positions the text in roughly the right place but it looks as if something is throwing things out. Could you point me the right direction.