• 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: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?


  • Subject: Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
  • From: Wilhelm Phillips <email@hidden>
  • Date: Fri, 13 Jun 2008 21:28:58 -0700

Hi Joel,

Thanks for responding.

I have experimented with drawPagePost:, but in this case I'm drawing certificate numbers on the page that need to print and the numbering is managed by my app.

Notification that the print job has gone through successfully would tell my app to increment those numbers for the next printing.

In order to achieve the desired result I subclassed PDFPage from PDFKit to draw the appropriate numbers and PDFDocument to apply that pageClass to any pages that I add to myPDFDocument.

I was hoping there was some sort of NSNotification coming from PDFView for a successful print job or perhaps some way to properly manage NSPrintInfo and drawing to roll a NSPrintOperation that could be used to replace PDFView's printWithInfo:autoRotate: method or a way to access PDFViews NSPrintPanel / NSPrintOperation.



P.S. Can you point me to a download URL for PDFView Subclasser? I've heard it mentioned in discussions, but haven't been able to locate it.


Thanks,

Will

On Jun 13, 2008, at 8:43 PM, Joel Norvell wrote:

Hi Will,

I'm not sure what you mean by "adjust custom PDFPage drawing after the page has
printed." And this may be no help at all, but if you could factor that drawing
into "drawPagePost" (in 10.5 PDF Kit), then it wouldn't be printed, but it
would be drawn on the screen.


You could look at John Calhoun's "PDFView Subclasser" sample program for a code
example if this is pertinent to your situation.


Best regards,
Joel







_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
      • From: Antonio Nunes <email@hidden>
  • Prev by Date: Re: How does an instance variable in the ObjC code get connected to an interface element in the NIB file?
  • Next by Date: looking for a crc code
  • Previous by thread: Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
  • Next by thread: Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?
  • Index(es):
    • Date
    • Thread