> On Sunday 2004-02-22 19:58 -0600, Glenn Blicharz wrote: > > When you choose Print Preview on Windows (and Mac Classic builds of > > Mozilla), a nice PostScript looking file gets displayed. I'm wondering if I > > could modify the printPreviewBindings.xml file (or another) to save this > > rendered page out to a file (postscript preferably). If not, is this file > > stored somewhere else, and then displayed in Mozilla? If so, where is it > > stored? If not, how is this page getting generated and displayed? > > I think the print preview on all platforms is just our layout engine > displaying what it would print out. I don't think there's any file > generated. (That may be different for something like Camino, but I > think we're at least mostly consistent.) > > > Ultimately, I'm hoping to modify Mozilla to generate PostScipt files, or at > > least the "print preview" type layout, where pages are separated. This > > cannot use style sheets or HTML (unless images are loaded) since we will not > > be displaying these pages within Mozilla. > > 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? Thanks, Glenn. > > -David > > -- > L. David Baron <URL: http://dbaron.org/ > _______________________________________________ mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout
