krithika wrote: > Hi, > > I have embedded Gecko in my java application and Iam calling > printpreview from this application and then call > getPrintPreviewNumPages() from printEngine. > > The printpreview page count when done from the browser( it is 8) and > when obtained from nsPrintEngine (count is 10) are different for the > same page. > > I have ensured that > > 1. top, bottom, left and right margins are same in browser and my > PrintSettings. > > 2. ShrintToFit set to true. > > Iam I missing some setting that makes the difference. > > regards, > Krithika >
Given the same settings, the results should be the same. There's a lot of ways to end up with differences, though; off the top of my head, there's the page size, your default font size, your default printer (yes, this can make a difference in text measurement, although it usually won't matter), cookies (if your loading a page from a web server), differences in printer settings (i.e. the stuff you get to by clicking "properties" in the print dialog on Windows), and version differences (if you're not embedding the same version of Gecko you're comparing to). Are you using the global print settings? That's a code change that could make a difference. -Eli _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

