I'm using rsvg-convert to convert an SVG file to a PDF file. If I run it from SSH from the prompt it converts the file correctly.
$ ~/bin/rsvg-convert ~/example.com/designs/splitf.svg -f pdf -o ~/example.com/designs/splitf.pdf
However if I run it from within PHP with passthru or exec it doesn't convert the fonts properly.
[php]passthru("~/bin/rsvg-convert ~/example.com/designs/splitf.svg -f pdf -o ~/example.com/designs/splitf2.pdf");[/php]
I've copied the fonts used by the SVG file to ~/.fonts. As SSH is only really usefull for testing, is there anyway to get the fonts included correctly from within the PHP call (or should I place the fonts somewhere else maybe)?
Any help would be appreciated.