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

Unified Diff: fpdfsdk/include/fpdfview.h

Issue 834703002: Add APIs for getting bookmarks and named destinations. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years 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: fpdfsdk/include/fpdfview.h
diff --git a/fpdfsdk/include/fpdfview.h b/fpdfsdk/include/fpdfview.h
index ddf359c127f48f46dc8d4c0527ae5440d012b991..8b7de37111d22dca641e70f196e58ebfcc6e9c85 100644
--- a/fpdfsdk/include/fpdfview.h
+++ b/fpdfsdk/include/fpdfview.h
@@ -8,6 +8,7 @@
#ifndef _FPDFVIEW_H_
#define _FPDFVIEW_H_
+#include <string>
#if defined(_WIN32) && !defined(__WINDOWS__)
#include <windows.h>
#endif
@@ -602,6 +603,14 @@ DLLEXPORT FPDF_PAGERANGE STDCALL FPDF_VIEWERREF_GetPrintPageRange(FPDF_DOCUMENT
//
DLLEXPORT FPDF_DUPLEXTYPE STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT document);
+// Function: FPDF_CountNamedDests
+// Get the count of named destinations in the PDF document.
+// Parameters:
+// document - Handle to a document
+// Return value:
+// The count of named destinations.
+DLLEXPORT FPDF_DWORD STDCALL FPDF_CountNamedDests(FPDF_DOCUMENT document);
+
// Function: FPDF_GetNamedDestByName
// get a special dest handle by the index.
// Parameters:
@@ -612,6 +621,17 @@ DLLEXPORT FPDF_DUPLEXTYPE STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT documen
//
DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_BYTESTRING name);
+// Function: FPDF_GetNamedDest
+// Get the specified named destinations of the PDF document by index.
+// Parameters:
+// document - Handle to a document
+// index - The index of named destination.
+// name - The name of the named destination.
+// Return value:
+// The destination handle of a named destination.
+DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, std::string name);
Tom Sepez 2015/01/01 01:10:07 This is inside an extern C block, so we don't get
raymes 2015/01/05 22:38:09 This seems like it is just an in-parameter, is tha
Bo Xu 2015/01/05 22:46:52 Ohh, my mistake, this should be passed by referenc
+
+
#ifdef __cplusplus
};
#endif
« no previous file with comments | « fpdfsdk/include/fpdfdoc.h ('k') | fpdfsdk/src/fpdfdoc.cpp » ('j') | fpdfsdk/src/fpdfdoc.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698