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