| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef PUBLIC_FPDF_SAVE_H_ | 7 #ifndef PUBLIC_FPDF_SAVE_H_ |
| 8 #define PUBLIC_FPDF_SAVE_H_ | 8 #define PUBLIC_FPDF_SAVE_H_ |
| 9 | 9 |
| 10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // Parameters: | 32 // Parameters: |
| 33 // pThis - Pointer to the structure itself | 33 // pThis - Pointer to the structure itself |
| 34 // pData - Pointer to a buffer to output | 34 // pData - Pointer to a buffer to output |
| 35 // size - The size of the buffer. | 35 // size - The size of the buffer. |
| 36 // Return value: | 36 // Return value: |
| 37 // Should be non-zero if successful, zero for error. | 37 // Should be non-zero if successful, zero for error. |
| 38 // | 38 // |
| 39 int (*WriteBlock)(struct FPDF_FILEWRITE_* pThis, | 39 int (*WriteBlock)(struct FPDF_FILEWRITE_* pThis, |
| 40 const void* pData, | 40 const void* pData, |
| 41 unsigned long size); | 41 unsigned long size); |
| 42 | |
| 43 } FPDF_FILEWRITE; | 42 } FPDF_FILEWRITE; |
| 44 | 43 |
| 45 /** @brief Incremental. */ | 44 /** @brief Incremental. */ |
| 46 #define FPDF_INCREMENTAL 1 | 45 #define FPDF_INCREMENTAL 1 |
| 47 /** @brief No Incremental. */ | 46 /** @brief No Incremental. */ |
| 48 #define FPDF_NO_INCREMENTAL 2 | 47 #define FPDF_NO_INCREMENTAL 2 |
| 49 /** @brief Remove security. */ | 48 /** @brief Remove security. */ |
| 50 #define FPDF_REMOVE_SECURITY 3 | 49 #define FPDF_REMOVE_SECURITY 3 |
| 51 | 50 |
| 52 // Function: FPDF_SaveAsCopy | 51 // Function: FPDF_SaveAsCopy |
| (...skipping 25 matching lines...) Expand all Loading... |
| 78 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document, | 77 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document, |
| 79 FPDF_FILEWRITE* pFileWrite, | 78 FPDF_FILEWRITE* pFileWrite, |
| 80 FPDF_DWORD flags, | 79 FPDF_DWORD flags, |
| 81 int fileVersion); | 80 int fileVersion); |
| 82 | 81 |
| 83 #ifdef __cplusplus | 82 #ifdef __cplusplus |
| 84 } | 83 } |
| 85 #endif | 84 #endif |
| 86 | 85 |
| 87 #endif // PUBLIC_FPDF_SAVE_H_ | 86 #endif // PUBLIC_FPDF_SAVE_H_ |
| OLD | NEW |