Index: fpdfsdk/include/fpdfsave.h |
diff --git a/fpdfsdk/include/fpdfsave.h b/fpdfsdk/include/fpdfsave.h |
index 0909d5a44703a2524ebd4f3e00d740fbc2b9d6dd..43235aad352999de463c7a69e2a0be3b0393817f 100644 |
--- a/fpdfsdk/include/fpdfsave.h |
+++ b/fpdfsdk/include/fpdfsave.h |
@@ -1,7 +1,7 @@ |
// Copyright 2014 PDFium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
- |
+ |
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
#ifndef _FPDFSAVE_H_ |
@@ -13,70 +13,76 @@ |
extern "C" { |
#endif |
- |
// Structure for custom file write |
-struct FPDF_FILEWRITE{ |
- |
- // |
- //Version number of the interface. Currently must be 1. |
- // |
- int version; |
- |
- // |
- // Method: WriteBlock |
- // Output a block of data in your custom way. |
- // Interface Version: |
- // 1 |
- // Implementation Required: |
- // Yes |
- // Comments: |
- // Called by function FPDF_SaveDocument |
- // Parameters: |
- // pThis - Pointer to the structure itself |
- // pData - Pointer to a buffer to output |
- // size - The size of the buffer. |
- // Return value: |
- // Should be non-zero if successful, zero for error. |
- // |
- int (*WriteBlock)( FPDF_FILEWRITE* pThis, const void* pData, unsigned long size); |
+struct FPDF_FILEWRITE { |
+ // |
+ // Version number of the interface. Currently must be 1. |
+ // |
+ int version; |
+ // |
+ // Method: WriteBlock |
+ // Output a block of data in your custom way. |
+ // Interface Version: |
+ // 1 |
+ // Implementation Required: |
+ // Yes |
+ // Comments: |
+ // Called by function FPDF_SaveDocument |
+ // Parameters: |
+ // pThis - Pointer to the structure itself |
+ // pData - Pointer to a buffer to output |
+ // size - The size of the buffer. |
+ // Return value: |
+ // Should be non-zero if successful, zero for error. |
+ // |
+ int (*WriteBlock)(FPDF_FILEWRITE* pThis, |
+ const void* pData, |
+ unsigned long size); |
}; |
- |
/** @brief Incremental. */ |
-#define FPDF_INCREMENTAL 1 |
+#define FPDF_INCREMENTAL 1 |
/** @brief No Incremental. */ |
-#define FPDF_NO_INCREMENTAL 2 |
+#define FPDF_NO_INCREMENTAL 2 |
/** @brief Remove security. */ |
-#define FPDF_REMOVE_SECURITY 3 |
+#define FPDF_REMOVE_SECURITY 3 |
// Function: FPDF_SaveAsCopy |
// Saves the copy of specified document in custom way. |
-// Parameters: |
-// document - Handle to document. Returned by FPDF_LoadDocument and FPDF_CreateNewDocument. |
-// pFileWrite - A pointer to a custom file write structure. |
+// Parameters: |
+// document - Handle to document. Returned by |
+//FPDF_LoadDocument and FPDF_CreateNewDocument. |
+// pFileWrite - A pointer to a custom file |
+//write structure. |
// flags - The creating flags. |
// Return value: |
// TRUE for succeed, FALSE for failed. |
// |
-DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveAsCopy( FPDF_DOCUMENT document,FPDF_FILEWRITE * pFileWrite, |
- FPDF_DWORD flags ); |
+DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveAsCopy(FPDF_DOCUMENT document, |
+ FPDF_FILEWRITE* pFileWrite, |
+ FPDF_DWORD flags); |
// Function: FPDF_SaveWithVersion |
-// Same as function ::FPDF_SaveAsCopy, except the file version of the saved document could be specified by user. |
-// Parameters: |
+// Same as function ::FPDF_SaveAsCopy, except the file version |
+//of the saved document could be specified by user. |
+// Parameters: |
// document - Handle to document. |
-// pFileWrite - A pointer to a custom file write structure. |
+// pFileWrite - A pointer to a custom file |
+//write structure. |
// flags - The creating flags. |
-// fileVersion - The PDF file version. File version: 14 for 1.4, 15 for 1.5, ... |
+// fileVersion - The PDF file version. File |
+//version: 14 for 1.4, 15 for 1.5, ... |
// Return value: |
// TRUE if succeed, FALSE if failed. |
// |
-DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document,FPDF_FILEWRITE * pFileWrite, |
- FPDF_DWORD flags, int fileVersion); |
+DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document, |
+ FPDF_FILEWRITE* pFileWrite, |
+ FPDF_DWORD flags, |
+ int fileVersion); |
#ifdef __cplusplus |
}; |
#endif |
-#endif //_FPDFSAVE_H_ |
+#endif //_FPDFSAVE_H_ |