diff --git a/PdfiumViewer/NativeMethods.Pdfium.cs b/PdfiumViewer/NativeMethods.Pdfium.cs index 33c245a..8f6bcfb 100644 --- a/PdfiumViewer/NativeMethods.Pdfium.cs +++ b/PdfiumViewer/NativeMethods.Pdfium.cs @@ -330,11 +330,11 @@ public static IntPtr FPDFLink_GetDest(IntPtr document, IntPtr link) } } - public static uint FPDFDest_GetPageIndex(IntPtr document, IntPtr dest) + public static uint FPDFDest_GetDestPageIndex(IntPtr document, IntPtr dest) { lock (LockString) { - return Imports.FPDFDest_GetPageIndex(document, dest); + return Imports.FPDFDest_GetDestPageIndex(document, dest); } } @@ -712,7 +712,7 @@ private static class Imports public static extern IntPtr FPDFLink_GetDest(IntPtr document, IntPtr link); [DllImport("pdfium.dll")] - public static extern uint FPDFDest_GetPageIndex(IntPtr document, IntPtr dest); + public static extern uint FPDFDest_GetDestPageIndex(IntPtr document, IntPtr dest); [DllImport("pdfium.dll")] public static extern bool FPDFLink_GetAnnotRect(IntPtr linkAnnot, FS_RECTF rect); diff --git a/PdfiumViewer/PdfFile.cs b/PdfiumViewer/PdfFile.cs index 298e819..225db37 100644 --- a/PdfiumViewer/PdfFile.cs +++ b/PdfiumViewer/PdfFile.cs @@ -91,7 +91,7 @@ public PdfPageLinks GetPageLinks(int pageNumber, Size pageSize) string uri = null; if (destination != IntPtr.Zero) - target = (int)NativeMethods.FPDFDest_GetPageIndex(_document, destination); + target = (int)NativeMethods.FPDFDest_GetDestPageIndex(_document, destination); var action = NativeMethods.FPDFLink_GetAction(annotation); if (action != IntPtr.Zero) @@ -227,7 +227,7 @@ private uint GetBookmarkPageIndex(IntPtr bookmark) { IntPtr dest = NativeMethods.FPDF_BookmarkGetDest(_document, bookmark); if (dest != IntPtr.Zero) - return NativeMethods.FPDFDest_GetPageIndex(_document, dest); + return NativeMethods.FPDFDest_GetDestPageIndex(_document, dest); return 0; }