我想寫一個簡單的PDF閱讀器,使用基於QuartzDemo的CGPDFDocument。
有共同的描繪:(EX在觸摸事件)iPhone,CGPDFDocument - PDF鏈接
-(void)drawInContext:(CGContextRef)context
{
// PDF page drawing expects a Lower-Left coordinate system,
// so we flip the coordinate system before we start drawing.
CGContextTranslateCTM(context, 0.0, self.bounds.size.height);
CGContextScaleCTM(context, 1.0, -1.0);
// Grab the first PDF page
CGPDFPageRef page = CGPDFDocumentGetPage(pdf, pageNumber);
// We're about to modify the context CTM to draw the PDF page
// where we want it, so save the graphics state
// in case we want to do more drawing
CGContextSaveGState(context);
// CGPDFPageGetDrawingTransform provides an easy way
// to get the transform for a PDF page. It will scale down to fit,
// including any base rotations necessary to display the PDF page correctly.
CGAffineTransform pdfTransform =
CGPDFPageGetDrawingTransform(page,
kCGPDFCropBox, self.bounds, 0, true);
// And apply the transform.
CGContextConcatCTM(context, pdfTransform);
// Finally, we draw the page
// and restore the graphics state for further manipulations!
CGContextDrawPDFPage(context, page);
CGContextRestoreGState(context);
}
據我瞭解,它唯一的圖紙,所以所有的結構導航或外向鏈接,應手工處理。有功能which will set URL或create element with URL。
問題是:如何從某個PDF塊中獲取傳出鏈接URL?
謝謝!
類似的問題:
PDF hyperlinks on iPhone/iPad
How to access hyperlinks in PDF documents (iPhone)?
相同的
iPhone SDK Dev GGroup
macRumors Forum
iPhone Dev SDK Forum
Dev Shed Forum
iphonedevbook.com
對於任何地方都沒有答案的問題+1。 *擦頭,不斷挖掘* – Kalle 2010-08-27 08:56:12
+1,50點賞金 - 我很想知道答案,我們一直在尋找幾個星期,不管我們已經嘗試過什麼沒有結果 – 2010-09-27 23:45:19
+100分爲工作樣品! – 2010-10-05 05:12:07