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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to