Ich muss Inkscape in PHP ausführen, damit ich ein Svg-Bild in PDF konvertieren kann. Doch jedes Mal, wenn ich versuche:Run inkscape in PHP
//some PHP code system("inkscape -z --file=svg.svg --export-pdf=pdf.pdf"); //more code
bekomme ich keine neue Datei, und ich bekomme dies in dem Apache erro Protokoll.
(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
Ich bin auf Ubuntu mit Apache-Server ausgeführt. Was kann ich tun, um dieses Problem zu beheben?
Wenn sich die Inkscape-Option als zu schwierig erweist, können Sie [TCPDF] (http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf) wie in der Antwort zu [ SVG to PDF auf einem freigegebenen Linux-Server] (http://stackoverflow.com/questions/2143971/svg-to-pdf-on-a-shared-linux-server) hier auf SO. – Mike