PrintInfo and page margins
PrintInfo and page margins
- Subject: PrintInfo and page margins
- From: Pat Homelvig <email@hidden>
- Date: Wed, 21 Apr 2004 09:57:06 -0600
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hello,
I am displaying an image in my view (the image & view is 8 1/2" x 11",
612 by 792 points), and when I print out the view, I have found that a
little bit of the image is cut off.
However if I select "Preview" from the print panel, and then print the
file from the Preview app, the page prints correctly without any
clipping.
In looking at PrintInfo, it reports the following margins:
Left Margin = 72 pts (1 in)
Right Margin = 72 pts (1 in)
Top Margin = 90 pts (1.25 in)
Bottom Margin = 90 pts (1,25 in)
If I reduce the original page by the margins shown, the image is scaled
much smaller than printed out in Preview.
When I bring up the NSPrintPanel in the app, and select the Summary
under the Settings: popup, it reports a printer margin of the following:
Left Margin = .12 in
Right Margin = .12 in
Top Margin = .12 in
Bottom Margin = .56 in
(These are the values when my specific printer is selected. The left,
right & top values were doubled when "Any Printer" was selected).
So I manually scaled my image using the above margins (from the summary
panel), and the image prints out exactly as it did in Preview.
However I have been unable to programmatically get the (true) printer
margins shown above.
Any suggestions? What am I missing?
This is on 10.2.8, however the same app running on 10.3.3 exhibits the
same problems.
Thanks in advance.
Pat Homelvig
White Wolf Software, Inc.
303-906-6104
mailto:email@hidden
http://www.whitewolf.com
_______________________________________________
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.