Hello! I need to run inkscape in PHP so I can convert an svg image to PDF. However every time I try:
//some PHP code system("inkscape -z --file=svg.svg --export-pdf=pdf.pdf"); //more code
I get no new file and I get this in the apache erro log.
(inkscape:28607): libgnomevfs-WARNING **: Unable to create ~/.gnome2 directory: Permission > denied
Emergency save activated! Emergency save completed. Inkscape will close now. If you can reproduce this crash, please file a bug at www.inkscape.org with a detailed description of the steps leading to the crash, so we can fix it. ** Message: Error: Inkscape encountered an internal error and will close now.
Segmentation fault
I am running on ubuntu with apache server. What can I do to correct this problem?