PDFView printing subviews
PDFView printing subviews
- Subject: PDFView printing subviews
- From: "Martin F. Carianni" <email@hidden>
- Date: Wed, 21 Jan 2009 11:03:47 +0100
I've a PDFView (built in IB) with a loaded PDFDocument containing a
form. I want to compile the form with a bunch of textfields already
populated.
PDFDocument *model = [[PDFDocument alloc] initWithData:[NSData
dataWithContentsOfFile:@"/Users/neospiez/Desktop/model.pdf"]];
NSTextField *oneText = [[NSTextField alloc]
initWithFrame:NSMakeRect(200, 555, 200, 17)];
[oneText setStringValue:[oneConstText stringValue]];
[PDFForPrinting addSubview: oneText];
[PDFForPrinting setDocument: model];
[PDFForPrinting layoutDocumentView];
[PDFForPrinting printWithInfo:[NSPrintInfo sharedPrintInfo]
autoRotate:YES];
Now, this prints the PDFVIEW without the subview, prints just the
model from the PDFDocument.
Is there any way to make it print it alongside the subviews?
Thank you.
_______________________________________________
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