Margin Size Inconsistencies FYI
Margin Size Inconsistencies FYI
- Subject: Margin Size Inconsistencies FYI
- From: John MacMullin <email@hidden>
- Date: Wed, 2 Nov 2005 14:12:01 -0700
I have the following elemental code in my test printing application:
NSPrintInfo * printInfo = [self printInfo];
[printInfo setUpPrintOperationDefaultValues];
NSSize selectedPaperPrintSize = [printInfo paperSize];
NSLog(@"%@ paperName", [printInfo paperName]);
NSLog(@"%f selectedPaperPrintSize.height",
selectedPaperPrintSize.height);
NSLog(@"%f selectedPaperPrintSize.width",
selectedPaperPrintSize.width);
NSLog(@"%f topMargin", [printInfo topMargin]);
NSLog(@"%f bottomMargin", [printInfo bottomMargin]);
NSLog(@"%f leftMargin", [printInfo leftMargin]);
NSLog(@"%f rightMargin", [printInfo rightMargin]);
This code produces the following ordinary and expected information:
2005-11-02 13:40:26.733 TextPrintingStuff[17404] Letter paperName
2005-11-02 13:40:26.734 TextPrintingStuff[17404] 792.000000
selectedPaperPrintSize.height
2005-11-02 13:40:26.734 TextPrintingStuff[17404] 612.000000
selectedPaperPrintSize.width
2005-11-02 13:40:26.734 TextPrintingStuff[17404] 90.000000 topMargin
2005-11-02 13:40:26.734 TextPrintingStuff[17404] 90.000000 bottomMargin
2005-11-02 13:40:26.734 TextPrintingStuff[17404] 72.000000 leftMargin
2005-11-02 13:40:26.734 TextPrintingStuff[17404] 72.000000 rightMargin
However, after selecting the Page Setup menu item, the Page Setup
Settings Summary provides that the top, left and right margins are .25
inch and the bottom margin is .56 inch. The Settings Summary shows
similar inconsistencies for the other paper sizes selected.
The paper name for "B5" is blank. The paper name for "JB5" is "B5".
The information does not alter the character of the printing tho, just
looks inconsistent.
I am using 10.2.8 for this.
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden