Closed
Bug 187465
Opened 22 years ago
Closed 2 years ago
Margins from PMPageFormat are ignored.
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ccarlen, Unassigned)
References
Details
The printing margins in mozilla are not adjusted from their default of 0.5
inches on the Mac. They should be calculated from the PMPageFormat record (page
setup info).
Comment 1•22 years ago
|
||
Conrad Carlen:
Do you mean that MacOSX's print API has methods to query the margin sizes for a
specific printer (if "yes" we may hook-up a common API for all platforms since
at least Xprint on Unix/Linux has a similar feature...).
Reporter | ||
Comment 2•22 years ago
|
||
Yes. The Carbon Printing Mgr has:
PMGetAdjustedPageRect - Obtains the page size, taking into account orientation,
application drawing resolution, and scaling settings.
PMGetAdjustedPaperRect - Obtains the paper size, taking into account
orientation, application drawing resolution, and scaling settings.
PMGetUnadjustedPageRect - Obtains the size of the imageable area in points,
unaffected by orientation, resolution, or scaling.
PMGetUnadjustedPaperRect - Obtains a rectangle that specifies the size of the
paper in points, unaffected by rotation, resolution, or scaling.
The difference in the "page" rect and the "paper" rect gives us the margins. I'm
not sure if it's needed to determine this for a specific printer. These routines
pertain to the printer chosen for the current job which is all we need, right?
Currently, all we ever use is PMGetAdjustedPageRect, which is why our margins
are too big on OS X - they're the physical margin + 0.5 inch.
Updated•15 years ago
|
QA Contact: sujay → printing
Comment 3•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:jwatt, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: ccarlen → nobody
Flags: needinfo?(jwatt)
Updated•2 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(jwatt)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•