PDFOperationWithView:insideRect:toData:printInfo:
ビューと矩形と印刷情報でプリントオペレーションオブジェクトを返します
+(NSPrintOperation *)PDFOperationWithView:(NSView *)aView:
insideRect:(NSRect)rect:
toData:(NSMutableData *)data:
printInfo:(NSPrintInfo *)aPrintInfo:
解説
ビューと矩形と印刷情報でPDFグラフィックスを印刷するプリントオペレーションオブジェクトを返します。
返り値
( NSPrintOperation * )
プリント操作
引数
( NSView * )aView
ビュー
( NSRect )rect
矩形
( NSMutableData * )data
データ
( NSPrintInfo * )aPrintInfo
印刷情報
フレームワーク
ApplicationKit
クラス
NSPrintOperation
Class Methods
使用可能
10.0
参照
+ PDFOperationWithView:insideRect:toData:
+ PDFOperationWithView:insideRect:toPath:printInfo:
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSMutableData *mData = [NSMutableData dataWithCapacity:1]; NSPrintOperation *pOp = [NSPrintOperation PDFOperationWithView:[[sender window] contentView] insideRect:NSMakeRect(0,0,100,100) toData:mData printInfo:nil ]; NSLog([mData description]); } @end