> Is it possible to make Gecko to print the document > layout exactly as > it's displayed on the screen? As far as I > understand, normally Firefox > re-render layout to make it more printer-friendly > (e.g. removes > backgrounds, rearranges objects, etc.), but I > doesn't need this stuff.
Well, I'd say try it out on your documents and see if you like the results. If you want to keep the backgrounds, there's an option in the page setup to do that. Stylesheets tagged with media "screen" won't be applied, though. The advantage to this approach is that the pagination will likely be better quality (e.g. text won't be split vertically in half). > It seems there's a problem with resolution. As far > as I understand, by > default the engine assumes the output resolution is > rather low (72 dpi), > but I need to prepare layout image to be printable > in 300 dpi. E.g. if I > have a picture 2000x3000, the engine need to > downscale it to show on the > screen (and this downscale information is normally > written to <img> tag, > like <img width=600...>), but on print I doesn't > need this downscaling. > Is it possible to specify the resolution of the > canvas or something like > this? You should be able to change the resolution of the output by changing the transform of the canvas. Take a look at http://weblogs.mozillazine.org/roc/archives/2005/05/rendering_web_p.html for a code example. > And does I need to have some really visible canvas > to dump the image, or > it can be done on invisible canvas? The page itself needs to be visible, but the canvas doesn't need to be visible. -Eli __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

