Chromium Code Reviews| Index: public/fpdf_doc.h |
| diff --git a/public/fpdf_doc.h b/public/fpdf_doc.h |
| index 0b7874325931c8b1e0b8a8abe96b313677f1fe41..38f7e6958001a0db77cbf5c7667dcde15251d7be 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. |
|
Lei Zhang
2016/05/23 16:47:32
What about the zoom value?
|
| +// |
| +// 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 on success. |
| +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. |