Re: printing from command line does not work

Lauris Kaplinski <[email protected]>
Newsgroups gmane.comp.graphics.sodipodi
Message-ID <[email protected]>
Hello!

Yes, unfotunately print-to-file got out of sync while moving printing
to module.
To enable it properly, ::setup_file or some similar method should
be added to SPModulePrint, that sets printing module up to send
output to file.
Modules have also to be set up in main_console. It may require minor
tweaking to work proiperly.

I'll try to look into it before next release.

Best wishes,
Lauris Kaplinski

Emile Snyder kirjutas K, 14.01.2004 kell 08:43:
> 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"?!
> +-----------------------------------------------------------------
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Sodipodi-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sodipodi-list



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.