Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Side by Side Diff: core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp

Issue 1427633010: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "../../../include/fxcrt/fx_ext.h"
8 #include "../../../include/fpdfapi/fpdf_serial.h"
9 #include "../../../include/fpdfapi/fpdf_parser.h"
10 #include "editint.h" 7 #include "editint.h"
11 8
9 #include "core/include/fxcrt/fx_ext.h"
10 #include "core/include/fpdfapi/fpdf_serial.h"
11 #include "core/include/fpdfapi/fpdf_parser.h"
12
12 #define PDF_OBJECTSTREAM_MAXLENGTH (256 * 1024) 13 #define PDF_OBJECTSTREAM_MAXLENGTH (256 * 1024)
13 #define PDF_XREFSTREAM_MAXSIZE 10000 14 #define PDF_XREFSTREAM_MAXSIZE 10000
14 15
15 int32_t PDF_CreatorAppendObject(const CPDF_Object* pObj, 16 int32_t PDF_CreatorAppendObject(const CPDF_Object* pObj,
16 CFX_FileBufferArchive* pFile, 17 CFX_FileBufferArchive* pFile,
17 FX_FILESIZE& offset) { 18 FX_FILESIZE& offset) {
18 int32_t len = 0; 19 int32_t len = 0;
19 if (pObj == NULL) { 20 if (pObj == NULL) {
20 if (pFile->AppendString(FX_BSTRC(" null")) < 0) { 21 if (pFile->AppendString(FX_BSTRC(" null")) < 0) {
21 return -1; 22 return -1;
(...skipping 2089 matching lines...) Expand 10 before | Expand all | Expand 10 after
2111 m_bNewCrypto = FALSE; 2112 m_bNewCrypto = FALSE;
2112 if (!m_bStandardSecurity) { 2113 if (!m_bStandardSecurity) {
2113 return; 2114 return;
2114 } 2115 }
2115 if (m_pEncryptDict) { 2116 if (m_pEncryptDict) {
2116 m_pEncryptDict->Release(); 2117 m_pEncryptDict->Release();
2117 m_pEncryptDict = NULL; 2118 m_pEncryptDict = NULL;
2118 } 2119 }
2119 m_bStandardSecurity = FALSE; 2120 m_bStandardSecurity = FALSE;
2120 } 2121 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp ('k') | core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698