Glenn Blicharz wrote:
David Baron wrote:
Mozilla can generate postscript -- there's code in gfx/src/ps/.  It's
used as the default way of printing on Unix.  Is there something about
that code that doesn't meet your needs?

I was told that the Macintosh builds of Mozilla do not use the Mozilla routines to generate postscript, but they use Apple's. I'm not sure what's happening on Windows, but it appears to work the same way.

We're using REALbasic to build an application that relys on Mozilla's
HTMLarea abilities to edit HTML pages. We cannot embed Mozilla into
REALbasic, and the other HTML rendering engines aren't as nice as Mozilla.
We're hoping to modify the version of Mozilla that we bundle with our
application so that when the user Saves their changes, we write out both an
HTML version of the page, and a PostScript version. We can embed the
PostScript page into REALbasic, so the user sees an accurate rendering of
their final output.

I've tried modifying some of the XUL pages, messing around with the printer
settings and the printtofile options, but they seem to be ignored on the
Mac. If the scripts that you mention can be called from an XUL file, could
you shed some light as to wich ones would do the job?

It should be possible to script Mozilla from XUL to print for you. You would need to study the way printing is implemented in our XUL+Javascript UI.


Rob
_______________________________________________
mozilla-layout mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to