Re: Postscript file generation

[email protected]
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Cox Communications
Message-ID <[email protected]>
This is functionality that I am interested in as well.  Currently I am 
using a tool called HTMLDoc to render HTML to PostScript.  However, I 
would much rather prefer to use the gecko to render the layout of HTML, 
CSS, etc. since it is much more standards compliant.

I will personally do more research into XPCOM as well ( I am a mozilla 
API newbie).  I'll keep you in mind as I get more info and do some 
prototyping. Perhaps we can colaborate on this tool.

  -Misk

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.