3
0

2 Ревизии c1f81ce7f6 ... b8b16987af

Автор SHA1 Съобщение Дата
  chenyu b8b16987af Merge branch 'compdfkit_demo_ios' of git.kdan.cc:others/kmpdfkit_demo into compdfkit_demo_ios преди 1 година
  chenyu 33b9956a38 PDFTools(iOS) - Fixed 18033 【form】添加Push Button,页码填写3,实际跳转页码4 преди 1 година
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      compdfkit-tools/compdfkit-tools/Annotation/PDFProperties/PDFLink/CPDFFormLinkViewController.m

+ 1 - 1
compdfkit-tools/compdfkit-tools/Annotation/PDFProperties/PDFLink/CPDFFormLinkViewController.m

@@ -361,7 +361,7 @@
             CPDFURLAction * urlAction = [[CPDFURLAction alloc] initWithURL:string];
             [mAnnotation setAction:urlAction];
         }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];
             [mAnnotation setAction:goToAction];
         }