While I was going thru the pdf document in quartz 2D, they were saying about getting a page from the CGPDFDocument object. Then the draw the page in a CGContextRef object.
CGPDFDocumentRef document = MyGetPDFDocumentRef (filename);
CGPDFPageRef page = CGPDFDocumentGetPage (document, pageNumber);
CGContextDrawPDFPage (myContext, page);
CGPDFDocumentRelease (document);
Everything is done into this context. I dont understand how these things done to a context can be viewed in a view OR Am i missing something? I am viewing the pdf in a webView.