Re: PDFView printing subviews
Re: PDFView printing subviews
- Subject: Re: PDFView printing subviews
- From: John Calhoun <email@hidden>
- Date: Wed, 21 Jan 2009 11:49:27 -0800
On Jan 21, 2009, at 2:03 AM, Martin F. Carianni wrote:
Now, this prints the PDFVIEW without the subview, prints just the
model from the PDFDocument.
As you observe, calling the print method in PDFView renders the PDF
document ... not the PDFView content.
If the PDF is a single page you can get the -[PDFView documentView]
and print just that (using NSView methods not PDFKit).
Otherwise it gets trickier than that....
One alternative might be to subclass the PDFView and override the -
[drawPage:] method and, during the print, draw your subviews by hand
for each page. It seems doable to me, just unfortunately more
complicated than you would like.
John Calhoun—_______________________________________________
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