Index: fpdfsdk/include/fpdfview.h |
diff --git a/fpdfsdk/include/fpdfview.h b/fpdfsdk/include/fpdfview.h |
index ddf359c127f48f46dc8d4c0527ae5440d012b991..b40f901c176d95198bfeb76bd5b26d2ecd0c47ed 100644 |
--- a/fpdfsdk/include/fpdfview.h |
+++ b/fpdfsdk/include/fpdfview.h |
@@ -8,6 +8,7 @@ |
#ifndef _FPDFVIEW_H_ |
#define _FPDFVIEW_H_ |
+#include <string> |
raymes
2015/01/08 03:55:44
nit: we don't need this now
Bo Xu
2015/01/09 19:35:21
Done.
|
#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,23 @@ 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. |
+// len - The length of name. |
+// Return value: |
+// The destination handle of a named destination, NULL when retrieving the length. |
+// Comments: |
+// Call this function twice to get the name of the named destination: |
+// 1) First time pass in |name| as NULL and retrieve length of |name|, including the trailing '\0'. |
+// 2) Second time pass in allocated |name| and its length to retrieve |name|. |
+// |
+DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, char* name, unsigned int& len); |
+ |
+ |
#ifdef __cplusplus |
}; |
#endif |