Index: public/fpdf_doc.h |
diff --git a/public/fpdf_doc.h b/public/fpdf_doc.h |
index 0b7874325931c8b1e0b8a8abe96b313677f1fe41..6a6cf5f730638c0a41d1c04fb1b4ebba7f5eed32 100644 |
--- a/public/fpdf_doc.h |
+++ b/public/fpdf_doc.h |
@@ -171,6 +171,18 @@ DLLEXPORT unsigned long STDCALL FPDFAction_GetURIPath(FPDF_DOCUMENT document, |
DLLEXPORT unsigned long STDCALL FPDFDest_GetPageIndex(FPDF_DOCUMENT document, |
FPDF_DEST dest); |
+// Get the (x, y) location of |dest| in the destination page, if the |
+// destination is in [page /XYZ x y zoom] syntax. |
+// |
+// dest - handle to the destination. |
+// x - out parameter; the x coordinate, in the page coordinate system. |
+// y - out parameter; the y coordinate, in the page coordinate system. |
+// |
+// Returns TRUE in success. |
dsinclair
2016/05/16 13:56:44
nit: s/in/on
hal.canary
2016/05/21 00:40:25
Done.
|
+DLLEXPORT FPDF_BOOL STDCALL FPDFDest_GetLocationInPage(FPDF_DEST dest, |
+ FS_FLOAT* x, |
+ FS_FLOAT* y); |
+ |
// Find a link at point (|x|,|y|) on |page|. |
// |
// page - handle to the document page. |