Index: public/fpdfview.h |
diff --git a/public/fpdfview.h b/public/fpdfview.h |
index fb514864a25d1c424d3a1ae6d39f6cb9cbdc924f..18a6b2a6c6b8dfa1235bf79919418d617c4bc2e3 100644 |
--- a/public/fpdfview.h |
+++ b/public/fpdfview.h |
@@ -180,8 +180,8 @@ typedef struct FPDF_LIBRARY_CONFIG_ { |
// Comments: |
// You have to call this function before you can call any PDF |
// processing functions. |
-DLLEXPORT void STDCALL |
-FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* config); |
+DLLEXPORT void STDCALL FPDF_InitLibraryWithConfig( |
+ const FPDF_LIBRARY_CONFIG* config); |
// Function: FPDF_DestroyLibary |
// Release all resources allocated by the FPDFSDK library. |
@@ -222,9 +222,9 @@ DLLEXPORT void STDCALL FPDF_SetSandBoxPolicy(FPDF_DWORD policy, |
// Loaded document can be closed by FPDF_CloseDocument(). |
// If this function fails, you can use FPDF_GetLastError() to retrieve |
// the reason why it failed. |
-// The application should call ::FPDF_LoadXFA function after PDF |
-// document loaded |
-// to support XFA fields in fpdfformfill.h file. |
+// Notes: |
+// The application should call FPDF_LoadXFA function after PDF |
+// document loaded to support XFA fields in fpdfformfill.h file. |
DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_LoadDocument(FPDF_STRING file_path, |
FPDF_BYTESTRING password); |
@@ -381,15 +381,15 @@ FPDF_LoadCustomDocument(FPDF_FILEACCESS* pFileAccess, FPDF_BYTESTRING password); |
DLLEXPORT FPDF_BOOL STDCALL FPDF_GetFileVersion(FPDF_DOCUMENT doc, |
int* fileVersion); |
-#define FPDF_ERR_SUCCESS 0 // No error. |
Lei Zhang
2015/11/20 01:57:43
This is better, we prefer 2 spaces
|
-#define FPDF_ERR_UNKNOWN 1 // Unknown error. |
-#define FPDF_ERR_FILE 2 // File not found or could not be opened. |
-#define FPDF_ERR_FORMAT 3 // File not in PDF format or corrupted. |
-#define FPDF_ERR_PASSWORD 4 // Password required or incorrect password. |
-#define FPDF_ERR_SECURITY 5 // Unsupported security scheme. |
-#define FPDF_ERR_PAGE 6 // Page not found or content error. |
-#define FPDF_ERR_XFALOAD 7 // Load XFA error. |
-#define FPDF_ERR_XFALAYOUT 8 // Layout XFA error. |
+#define FPDF_ERR_SUCCESS 0 // No error. |
+#define FPDF_ERR_UNKNOWN 1 // Unknown error. |
+#define FPDF_ERR_FILE 2 // File not found or could not be opened. |
+#define FPDF_ERR_FORMAT 3 // File not in PDF format or corrupted. |
+#define FPDF_ERR_PASSWORD 4 // Password required or incorrect password. |
+#define FPDF_ERR_SECURITY 5 // Unsupported security scheme. |
+#define FPDF_ERR_PAGE 6 // Page not found or content error. |
+#define FPDF_ERR_XFALOAD 7 // Load XFA error. |
+#define FPDF_ERR_XFALAYOUT 8 // Layout XFA error. |
// Function: FPDF_GetLastError |
// Get last error code when a function fails. |
@@ -529,9 +529,6 @@ DLLEXPORT int STDCALL FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document, |
// defined above. |
// Return value: |
// None. |
-// Notes: |
-// FPDF_RenderPage can not be used if the document contains dynamic |
-// form fields. |
DLLEXPORT void STDCALL FPDF_RenderPage(HDC dc, |
FPDF_PAGE page, |
int start_x, |
@@ -564,9 +561,6 @@ DLLEXPORT void STDCALL FPDF_RenderPage(HDC dc, |
// defined above. |
// Return value: |
// None. |
-// Notes: |
-// FPDF_RenderPageBitmap can not be used if the document contains |
-// dynamic form fields. |
DLLEXPORT void STDCALL FPDF_RenderPageBitmap(FPDF_BITMAP bitmap, |
FPDF_PAGE page, |
int start_x, |