내 응용 프로그램에서 PDF 문서를 여는 데 FoxitRDK 프레임 워크를 사용하고 있습니다. 데모에서 모든 것은 한 가지를 제외하고는 잘 작동합니다. 하이퍼 링크를 클릭 할 수 없습니다. SDK 문서와 프레임 워크의 클래스를 살펴 보았지만 해결책을 찾을 수는 없습니다.FoxitIOSRDK : 하이퍼 링크를 클릭 할 수 없습니다.
http://www.foxitsdk.com/docs/mobile-pdf-sdk/developer_guide_ios.pdf
여기 내 코드는
NSString* pdfPath = [[NSBundle mainBundle] pathForResource:@"getting_started_ios1" ofType:@"pdf"];
// Initialize a PDFDoc object with the path to the PDF file
FSPDFDoc* pdfdoc = [FSPDFDoc createFromFilePath:pdfPath];
// Initialize a FSPDFViewCtrl object with the size of the entire screen
pdfViewCtrl = [[FSPDFViewCtrl alloc] initWithFrame: CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height-60)];
[pdfViewCtrl registerDocEventListener:self];
[pdfViewCtrl registerPageEventListener:self];
[pdfViewCtrl registerGestureEventListener:self];
// Set the document to display
[pdfViewCtrl setDoc:pdfdoc];
// Add the pdfViewCtrl to the root view
[self.view addSubview:pdfViewCtrl];
extensionsManager= [[UIExtensionsManager alloc]initWithPDFViewControl:pdfViewCtrl];
pdfViewCtrl.extensionsManager = extensionsManager;
[extensionsManager registerAnnotEventListener:self];
[extensionsManager registerAnnotHandler:self];
//Search button
searchButton = [[UIButton alloc] initWithFrame:CGRectMake(280, 80, 80, 40)];
[searchButton setBackgroundColor:[UIColor grayColor]];
[searchButton setTitle: @"Search" forState: UIControlStateNormal];
[searchButton addTarget:self action:@selector(showSearchBar)
forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:searchButton];
가 어떻게이 문제를 해결할 수 있습니다 :
문서 링크
은 다음과 같습니다?
내 질문을 편집했습니다. 데모 코드에서도 작동하지 않습니다. – guru
[pdfViewCtrl gotoPage : 3 animated : true]; onDocOpened 이벤트를 호출해야합니다. –
고마워요 에이미하지만 내 문제는 다릅니 다. 하이퍼 링크 관련 – guru