Re: Issue with NSPrintInfo values being weird...
Re: Issue with NSPrintInfo values being weird...
- Subject: Re: Issue with NSPrintInfo values being weird...
- From: Pierre-Olivier Latour <email@hidden>
- Date: Thu, 05 Sep 2002 18:30:23 +0200
>
On Thursday, September 5, 2002, at 05:40 PM, Scout wrote:
>
>
> The one inch margin issue does continue, and filing the bug again would
>
> not be a bad thing.
Already done a few months ago. Here's the official answer from
email@hidden:
********* MAIL #1
>
The "margins" that appear in the Page Setup dialog aren't margins, at least
>
not in the typical application sense. They don't have much to do with the
>
margin you can set in a Microsoft Office app, for instance. They're really
>
the bounds of the imageable area of the paper, usually defined by the
>
printing hardware.
Then if these margins specify the printing area of the paper, they are
totally incorrect in my case. I'm using an LaserWriter 630 with A4 paper.
Printing area is only a few millimeters less than the A4 surface, definitely
not around 0.25 inch on each side.
Should I report a bug for it?
>
So, they don't have much to do with the margins that you get out of an
>
NSPrinInfo.
Thank you for the details. However, since I could not find this information
in the docs, would you mind telling me exactly what the margins returned by
NSPrintInfo mean?
>
<GMT15-Jul-2002 12:44:08GMT> Pierre-Olivier Latour:
>
* SUMMARY
>
When going into the Page setup dialog and displaying the summary panel, you
>
can see that the margins for A4 paper are set as follow:
>
Left = 0.25''
>
Top = 0.25''
>
Bottom = 0.57''
>
Right = 0.25''
>
>
However, when fetching this info the Cocoa object [NSPrintInfo
>
sharedPrintInfo] and the methods leftMargin, rightMargin and so on, you get
>
the following:
>
Left = 1.00''
>
Top = 1.25''
>
Bottom = 1.25''
>
Right = 1.00''
*********** MAIL #2
>
Thank you for the details. However, since I could not find this information
>
in the docs, would you mind telling me exactly what the margins returned by
>
NSPrintInfo mean?"
Margins in the NSPrintInfo sense are the amounts of blank space that should
be left on the left, top, right, or bottom edge of each page when
automatically paginating a view. They're typically larger than the blank
spaces that are dictated by hardware limitations. Margins in an NSPrintInfo
are used during automatic pagination unless the printing view returns YES
when sent a -knowsPageRange: method (see the docs for a description of the
-knowsPageRange: business). See the TextEdit and Sketch sample projects for
some manipulations of NSPrintInfo margins. There's no standard Cocoa UI for
letting users set the margins in a document's NSPrintInfo.
***********
Hope this helps :)
_____________________________________________________________
Pierre-Olivier Latour email@hidden
Lausanne, Switzerland
http://www.pol-online.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.