I'm trying to get information about printing margins so my app can
show where the edges of the paper are correctly as well as the content
area.
I thought that's what NSPrintInfo methods such as -topMargin gave me -
the margins set by the Page Setup... dialog. But they never change no
matt
More Info. If I do this:
- (void)setPrintInfo:(NSPrintInfo*) printInfo
{
[super setPrintInfo:printInfo];
PMPageFormatpmf = (PMPageFormat)[printInfo PMPageFormat];
PMPaper paper;
OSStatuserr = PMGetPageFormatPaper( pmf, &paper );
Graham,
I'm not sure if this is exactly what you were talking about, but I did a test
in the printShowingPrintPanel of a program I'd written.
The NSPrintInfo methods setLeftMargin, setBottomMargin, setRightMargin and
setTopMargin all affect the margin values within the NSPrintInfo instance.
H
Thanks Joel, certainly setting the margins directly does work. What
I'm left wondering is what they are actually for - they are never set
by he Page Setup panel and never change with changes to paper size,
printer, etc.
My conclusion is that these fields are merely a convenience for
speci
On Jul 9, 2009, at 12:48 AM, Graham Cox wrote:
I'm trying to get information about printing margins so my app can
show where the edges of the paper are correctly as well as the
content area.
Don't you want NSPrintInfo - (NSRect)imageablePageBounds ?
Ross
___
On Jul 9, 2009, at 7:48 PM, Graham Cox wrote:
Thanks Joel, certainly setting the margins directly does work. What
I'm left wondering is what they are actually for - they are never
set by he Page Setup panel and never change with changes to paper
size, printer, etc.
The docs aren't specifi