PDF Kit [PDFPage setBounds:forBox:] not working!
PDF Kit [PDFPage setBounds:forBox:] not working!
- Subject: PDF Kit [PDFPage setBounds:forBox:] not working!
- From: "A Blossom of Paradise" <email@hidden>
- Date: Tue, 17 Oct 2006 13:37:57 +1000
hi all,
i am attempting to open a .pdf file using quartz's pdf kit framework and add programatically add a page to it and resave it.
unfortunately the page does not render when i open the resulting pdf in preview (but it is in the outline). and before you ask, yes i am setting the crop box and media box to a valid rect (see below code).
pdfPage = [[PDFPage alloc] initWithDocument : pdfDocument];
[pdfPage setBounds:NSMakeRect( 0, 0, 595.2, 841.92 ) forBox:kPDFDisplayBoxCropBox];
[pdfPage setBounds:NSMakeRect( 0, 0, 595.2, 841.92 ) forBox:kPDFDisplayBoxMediaBox];
[pdfPage setDisplaysAnnotations:YES];
[pdfDocument insertPage : pdfPage atIndex : 1]; // there is a page 0
also, how do you programatically set the label?
regards,
warwick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden