Ho bisogno di eseguire inkscape in PHP così posso convertire un'immagine in formato PDF in formato svg. Tuttavia ogni volta che provo:Esegui inkscape in PHP
//some PHP code system("inkscape -z --file=svg.svg --export-pdf=pdf.pdf"); //more code
ottengo nessun nuovo file e ottengo questo nel log di Apache erro.
(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
Sono in esecuzione su ubuntu con server Apache. Cosa posso fare per correggere questo problema?
Se l'opzione Inkscape risulta eccessivamente problematica, è possibile provare [TCPDF] (http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf) come suggerito nella risposta a [ Da SVG a PDF su un server Linux condiviso] (http://stackoverflow.com/questions/2143971/svg-to-pdf-on-a-shared-linux-server) qui su SO. – Mike