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 _FPDF_SERIAL_ | 7 #ifndef _FPDF_SERIAL_ |
8 #define _FPDF_SERIAL_ | 8 #define _FPDF_SERIAL_ |
9 #ifndef _FPDF_PAGE_ | 9 #ifndef _FPDF_PAGE_ |
10 #include "fpdf_page.h" | 10 #include "fpdf_page.h" |
11 #endif | 11 #endif |
12 #ifndef _FPDF_PAGEOBJ_H_ | 12 #ifndef _FPDF_PAGEOBJ_H_ |
13 #include "fpdf_pageobj.h" | 13 #include "fpdf_pageobj.h" |
14 #endif | 14 #endif |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 #define FPDFCREATE_PROGRESSIVE 4 | 114 #define FPDFCREATE_PROGRESSIVE 4 |
115 #define FPDFCREATE_OBJECTSTREAM 8 | 115 #define FPDFCREATE_OBJECTSTREAM 8 |
116 class CPDF_Creator : public CFX_Object | 116 class CPDF_Creator : public CFX_Object |
117 { | 117 { |
118 public: | 118 public: |
119 | 119 |
120 CPDF_Creator(CPDF_Document* pDoc); | 120 CPDF_Creator(CPDF_Document* pDoc); |
121 | 121 |
122 ~CPDF_Creator(); | 122 ~CPDF_Creator(); |
123 | 123 |
| 124 void RemoveSecurity(); |
| 125 |
124 FX_BOOL Create(FX_LPCWSTR filename, FX_DWORD fla
gs = 0); | 126 FX_BOOL Create(FX_LPCWSTR filename, FX_DWORD fla
gs = 0); |
125 | 127 |
126 FX_BOOL Create(FX_LPCSTR filename, FX_DWORD flag
s = 0); | 128 FX_BOOL Create(FX_LPCSTR filename, FX_DWORD flag
s = 0); |
127 | 129 |
128 FX_BOOL Create(IFX_StreamWrite* pFile, FX_DWORD
flags = 0); | 130 FX_BOOL Create(IFX_StreamWrite* pFile, FX_DWORD
flags = 0); |
129 | 131 |
130 FX_INT32 Continue(IFX_Pause *pPause = NULL); | 132 FX_INT32 Continue(IFX_Pause *pPause = NULL); |
131 | 133 |
132 FX_BOOL SetFileVersion(FX_INT32 fileVersion = 17
); | 134 FX_BOOL SetFileVersion(FX_INT32 fileVersion = 17
); |
133 protected: | 135 protected: |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 CFX_DWordListArray m_ObjectSize; | 196 CFX_DWordListArray m_ObjectSize; |
195 CFX_DWordArray m_NewObjNumArray; | 197 CFX_DWordArray m_NewObjNumArray; |
196 | 198 |
197 CPDF_Array* m_pIDArray; | 199 CPDF_Array* m_pIDArray; |
198 | 200 |
199 FX_INT32 m_FileVersion; | 201 FX_INT32 m_FileVersion; |
200 friend class CPDF_ObjectStream; | 202 friend class CPDF_ObjectStream; |
201 friend class CPDF_XRefStream; | 203 friend class CPDF_XRefStream; |
202 }; | 204 }; |
203 #endif | 205 #endif |
OLD | NEW |