Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: public/fpdf_doc.h

Issue 1960193003: pdfium_test: print out some annotations Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 2016-05-20 (Friday) 20:39:39 EDT Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « fpdfsdk/fpdfdoc.cpp ('k') | samples/pdfium_test.cc » ('j') | samples/pdfium_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698