I have parsed the pdf data using the following code.
NSString *pdfPath = [[NSBundle mainBundle] pathForResource:@"GameKit_Guide" ofType:@"pdf"];
const char *filename = [pdfPath UTF8String];
pdfDocument = GetPDFDocumentRef(filename);//user function to get pdf in pdfdocument form.
myTable = CGPDFOperatorTableCreate();
CGPDFOperatorTableSetCallback (myTable, "MP", &op_MP);
CGPDFOperatorTableSetCallback (myTable, "DP", &op_DP);
CGPDFOperatorTableSetCallback (myTable, "BMC", &op_BMC);
CGPDFOperatorTableSetCallback (myTable, "BDC", &op_BDC);
CGPDFOperatorTableSetCallback (myTable, "EMC", &op_EMC);
int k;
int numOfPages = CGPDFDocumentGetNumberOfPages (pdfDocument);
for (k = 0; k < numOfPages; k++)
{
myPage = CGPDFDocumentGetPage (pdfDocument, k + 1 );
myContentStream = CGPDFContentStreamCreateWithPage (myPage);
myScanner = CGPDFScannerCreate (myContentStream, myTable, NULL);
CGPDFScannerScan (myScanner);
}
So the code is present in myContentStream after parsing. So how should i display it back into the UIWebView? I couldnt find any function to do so. Plz help...