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 #include "public/fpdf_save.h" | 7 #include "public/fpdf_save.h" |
8 | 8 |
9 #include "../include/fpdfxfa/fpdfxfa_app.h" | 9 #include "../include/fpdfxfa/fpdfxfa_app.h" |
10 #include "../include/fpdfxfa/fpdfxfa_doc.h" | 10 #include "../include/fpdfxfa/fpdfxfa_doc.h" |
11 #include "../include/fpdfxfa/fpdfxfa_util.h" | 11 #include "../include/fpdfxfa/fpdfxfa_util.h" |
12 #include "../include/fsdk_define.h" | 12 #include "fpdfsdk/include/fsdk_define.h" |
13 #include "public/fpdf_edit.h" | 13 #include "public/fpdf_edit.h" |
14 #include "public/fpdf_formfill.h" | 14 #include "public/fpdf_formfill.h" |
15 | 15 |
16 #if _FX_OS_ == _FX_ANDROID_ | 16 #if _FX_OS_ == _FX_ANDROID_ |
17 #include "time.h" | 17 #include "time.h" |
18 #else | 18 #else |
19 #include <ctime> | 19 #include <ctime> |
20 #endif | 20 #endif |
21 | 21 |
22 class CFX_IFileWrite final : public IFX_StreamWrite { | 22 class CFX_IFileWrite final : public IFX_StreamWrite { |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 FPDF_DWORD flags) { | 328 FPDF_DWORD flags) { |
329 return _FPDF_Doc_Save(document, pFileWrite, flags, FALSE, 0); | 329 return _FPDF_Doc_Save(document, pFileWrite, flags, FALSE, 0); |
330 } | 330 } |
331 | 331 |
332 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document, | 332 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document, |
333 FPDF_FILEWRITE* pFileWrite, | 333 FPDF_FILEWRITE* pFileWrite, |
334 FPDF_DWORD flags, | 334 FPDF_DWORD flags, |
335 int fileVersion) { | 335 int fileVersion) { |
336 return _FPDF_Doc_Save(document, pFileWrite, flags, TRUE, fileVersion); | 336 return _FPDF_Doc_Save(document, pFileWrite, flags, TRUE, fileVersion); |
337 } | 337 } |
OLD | NEW |