Re: Postscript file generation

Richard Philips <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization University of Antwerp - UIA
Message-ID <[email protected]>
I think it would make sense to use Mozilla as a tool without GUI, 
completely driven by JavaScript.

Converting HTML + CSS + MathML  to postscript would be just one - be it 
a very spectacular - benefit.

I am good at programing in Python and there is something called pyXPCOM.

I look into that.


Richard







Jeff Putney wrote:
> I would like to write a command line utility that takes a URI as input 
> and renders to a postscript file.  I've not done any mozilla hacking, so 
> I am not quite sure how to go about doing this.  From what I gather, 
> I'll need to use XPCOM to setup a postscript rendering context and then 
> use some XPCOM object to load and render the URI.  In theory this should 
> be fairly straight forward.  Mozilla already has all the functionality I 
> want.  However I am not familiar with how to write a program that can 
> use XPCOM, nor which objects I will need to use outside of gfs/src/ps. I 
> have read some of the XPCOM introduction which gives info on writing 
> XPCOM objects, but not so much on writing a program that uses XPCOM 
> objects, especially information on linking and probably where shared 
> objects should be installed for dynamic loading.
> 
> Any insight whatsoever would be greatly appreciated.  I understand that 
> this may be a non-trivial task, but given that mozilla already does 
> this, it should be 'a simple matter of programming', or at least I hope 
> it will be.
> 
> --jeff
>
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.