From c59fa8895fa6fa8428b9b278eee6f05478ab8f56 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Tue, 8 Nov 2016 06:55:40 -0800 Subject: Add FPDFDest_GetLocationInPage API Add an API to get the value of the /XYZ destination parameter. This CL was originally from https://codereview.chromium.org/1960193003/ by halcanary@. Review-Url: https://codereview.chromium.org/2481743004 --- core/fpdfdoc/cpdf_dest.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/fpdfdoc/cpdf_dest.h') diff --git a/core/fpdfdoc/cpdf_dest.h b/core/fpdfdoc/cpdf_dest.h index 8f38192fd8..527d1dcf8b 100644 --- a/core/fpdfdoc/cpdf_dest.h +++ b/core/fpdfdoc/cpdf_dest.h @@ -25,6 +25,13 @@ class CPDF_Dest { int GetZoomMode(); FX_FLOAT GetParam(int index); + bool GetXYZ(bool* pHasX, + bool* pHasY, + bool* pHasZoom, + float* pX, + float* pY, + float* pZoom) const; + private: CPDF_Object* m_pObj; }; -- cgit v1.2.3