|
@@ -361,7 +361,7 @@
|
|
CPDFURLAction * urlAction = [[CPDFURLAction alloc] initWithURL:string];
|
|
CPDFURLAction * urlAction = [[CPDFURLAction alloc] initWithURL:string];
|
|
[mAnnotation setAction:urlAction];
|
|
[mAnnotation setAction:urlAction];
|
|
}else if(self.linkType == CPDFFormLinkTypePage){
|
|
}else if(self.linkType == CPDFFormLinkTypePage){
|
|
- CPDFDestination * destination = [[CPDFDestination alloc] initWithDocument:mAnnotation.page.document pageIndex:[string intValue]];
|
|
|
|
|
|
+ CPDFDestination * destination = [[CPDFDestination alloc] initWithDocument:mAnnotation.page.document pageIndex:[string intValue] - 1];
|
|
CPDFGoToAction * goToAction = [[CPDFGoToAction alloc] initWithDestination:destination];
|
|
CPDFGoToAction * goToAction = [[CPDFGoToAction alloc] initWithDestination:destination];
|
|
[mAnnotation setAction:goToAction];
|
|
[mAnnotation setAction:goToAction];
|
|
}
|
|
}
|