Re: printing from command line does not work
Emile Snyder <[email protected]>
| Newsgroups | gmane.comp.graphics.sodipodi |
|---|---|
| Message-ID | <1074097939.29119.123.camel@basalt> |
Hello, I'm mostly just a lurker here, but I got curious after your email, and went digging around in the source. The print-to-a-file function contents is #ifdef'ed out. I mucked around and managed to get the printing to work by calling sodipodi_application_new(); sp_modules_init(&argc, argv, TRUE); sodipodi_unref(); at the start of the sp_main_console function in main.c, and futzing around a bit with the print.c and modules/ps.c files. I get an error message: (process:30269): Gtk-CRITICAL **: file gtkmain.c: line 1150 (gtk_main_quit): assertion `main_loops != NULL' failed however. Can any of you real sodipodi hackers give me some pointers about what might be happening, or where I might look? I'm assuming that the sodipodi_application_new() path is doing something which is initializing gtk? Any pointers welcome. thanks, -emile On Tue, 2004-01-13 at 11:44, Nicola Fankhauser wrote: > Hi > > I compiled Sodi fresh from CVS and still can't get it to print a SVG > file as PostScript file to disk. Printing from the X interface works > like a charm. > > When running Sodi like this, nothing happens at all: > # sodipodi -z -p test.ps test.svg > > However, exporting to PNG works nicely: > # sodipodi -z -b white -e test.png test.svg > > The reason we'd like to print from command line is that we want to > convert from SVG to PDF automatically. > > It would be nice if somebody could look at the issue - it does not seem > to be a nasty bug, as printing from the GUI works well. > > thanks & regards > nicola +----------------------------------------------------------------- How do I set my LaserPrinter to "Stun"?! +----------------------------------------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html