I wonder if anyone can help clarify some concepts in the chapter on printing in Hillegass. There have been very few questions about this that I can find.
Specifically, what "imageablePageBounds" actually means.
So, from the docs, it says this, amongst other things.
When I look at the code generated by Hillegass, specifically:
output for pageRect is:{{18, 40}, {576, 734}}
and pageSize, as expected is:{612, 792}
So, I am trying to synthesize conceptually exactly what the docs and my code means...specifically, why , for example , output for pageRect is not {{0,0}, {...,...} Any insight?
Thanks.
Thanks
Specifically, what "imageablePageBounds" actually means.
So, from the docs, it says this, amongst other things.
Imageable area is the maximum area that can possibly be marked on by the printer hardware, not the area defined by the current margin settings.
The origin (0, 0) of the returned rectangle is in the lower-left corner of the oriented sheet.
When I look at the code generated by Hillegass, specifically:
Code:
-(BOOL)knowsPageRange:(NSRangePointer)range
{
NSPrintOperation *po = [NSPrintOperation currentOperation];
NSPrintInfo *printInfo = [po printInfo];
pageRect = [printInfo imageablePageBounds];
NSRect newFrame;
newFrame.origin = NSZeroPoint;
newFrame.size = [printInfo paperSize];
[self setFrame:newFrame];
......other code to determine range
}
output for pageRect is:{{18, 40}, {576, 734}}
and pageSize, as expected is:{612, 792}
So, I am trying to synthesize conceptually exactly what the docs and my code means...specifically, why , for example , output for pageRect is not {{0,0}, {...,...} Any insight?
Thanks.
Thanks