iPhone, CGPDFDocument - Ссылки PDF

Я пытаюсь записать простое средство просмотра PDF с помощью CGPDFDocument, на основе QuartzDemo.
Существует общий рендеринг:

-(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);
}

Как я понимаю, его единственный рисунок, таким образом, вся навигация структуры или исходящие ссылки должны быть обработаны вручную (напр. в сенсорном событии).

Существуют функции, которые установят URL или создадут элемент с URL.

Вопрос: как получить исходящую ссылку URL от определенного блока PDF?

Спасибо!

Подобные вопросы:
Гиперссылки PDF на iPhone/iPad
Как получить доступ к гиперссылкам в документах в формате PDF (iPhone)?

То же на
iPhone SDK Dev GGroup
Форум MacRumors
iPhone Dev SDK Forum
Форум сарая Dev
iphonedevbook.com

24
задан Community 23 May 2017 в 12:26
поделиться