Re: PDFDocument and CGPDFDocument

2011-05-11 Thread Graham Cox
On 11/05/2011, at 10:34 PM, Graham Cox wrote: > On a follow-up note, I'm using PDFView and PDFThumbView in a modal dialog to > pick the page to open (since it's part of opening a file I don't yet have a > document to hang a sheet from). The main page view works fine but I notice > that the thu

Re: PDFDocument and CGPDFDocument

2011-05-11 Thread Graham Cox
On 11/05/2011, at 6:33 PM, Antonio Nunes wrote: > How about opening the document with PDFKit to start with, and then ask the > obtained PDFDocument for its documentRef when you need to get submerged. I > don't think you can go the other way. > > The 'documentRef' is in the PDFDocument header f

Re: PDFDocument and CGPDFDocument

2011-05-11 Thread Antonio Nunes
On 11 May 2011, at 03:59, Graham Cox wrote: > Are CGPDFDocument and PDFDocument toll-free bridged? If not, how can I get a > PDFDocument from a CGPDFDocumentRef? They are not toll-free bridged. > I need to use the lower level API to extract graphic entities from a PDF, but > I'd like to use P

PDFDocument and CGPDFDocument

2011-05-10 Thread Graham Cox
Are CGPDFDocument and PDFDocument toll-free bridged? If not, how can I get a PDFDocument from a CGPDFDocumentRef? I need to use the lower level API to extract graphic entities from a PDF, but I'd like to use PDFKit up-front to implement a page chooser. --Graham __