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 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