• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Printing to edge of paper
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing to edge of paper


  • Subject: Re: Printing to edge of paper
  • From: Emma Whan <email@hidden>
  • Date: Wed, 5 Mar 2003 18:23:00 +1100

Can't you just adjust the margins? Try this:

NSPrintInfo *printInfo = [NSPrintInfo sharedPrintInfo];

[printInfo setLeftMargin:18.0];
[printInfo setRightMargin:18.0];
[printInfo setTopMargin:18.0];
[printInfo setBottomMargin:18.0];
[printInfo setHorizontallyCentered:NO]; //assuming you don't want it
centered
[printInfo setVerticallyCentered:NO];

NSPrintOperation *op = [NSPrintOperation
printOperationWithView:yourView];
[op runOperation];

You might not be able make the top and bottom margins so small though.
Many printers can't print that close to the top and bottom edge.

> From: email@hidden
> Date: Tue, 4 Mar 2003 23:25:19 EST
> Subject: Printing to edge of paper
> To: email@hidden
>
> Help!
>
> I am trying to print out to the near edge of a page of paper using the
> Cocoa
> printing APIs. Unfortunately, I seem to be limited on how large a
> print area
> I have on a normal page of paper. Cocoa pagination limits me to print
> within
> 1 inch margins on all sides of the print page.
>
> I am using the NSPrintInfo sharedPrintInfo call to return the correct
> Print
> Info object. Then I use the paperSize call to return the size of my
> paper
> page. This is NOT the physical size of the paper, nor the size of the
> printable area, but the size of that Cocoa's pagination allows me to
> draw in.
>
> I know this, but can not seem to figure out how to expand the
> pagination area
> to within 1/4 inch of the physical page edge. I tried to search the
> Cocoa
> list for similar problems/answers, but have only found people asking
> the same
> question, without the correct replies.
>
> HELP!
>
> How do you set the pagination to within 1/4 of the edge of the paper?
>
> Thanks,
>
> Steve Sheets
> email@hidden
_______________________________________________
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.

  • Prev by Date: Re: Printing to edge of paper
  • Next by Date: Really small check box
  • Previous by thread: Re: Printing to edge of paper
  • Next by thread: Really small check box
  • Index(es):
    • Date
    • Thread