blob: 6346f0613679fa0408f9680cf9a9f05496f0c419 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef _FPDF_EDITINT_
#define _FPDF_EDITINT_
class CPDF_ObjectStream : public CFX_Object
{
public:
CPDF_ObjectStream();
FX_BOOL Start();
FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object *pObj);
FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, FX_LPCBYTE pBuffer, FX_DWORD dwSize);
FX_FILESIZE End(CPDF_Creator* pCreator);
CFX_DWordArray m_ObjNumArray;
CFX_ByteTextBuf m_Buffer;
FX_DWORD m_dwObjNum;
FX_INT32 m_index;
protected:
CFX_DWordArray m_OffsetArray;
};
class CPDF_XRefStream : public CFX_Object
{
public:
CPDF_XRefStream();
FX_BOOL Start();
FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object *pObj, CPDF_Creator *pCreator);
FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, FX_LPCBYTE pBuffer, FX_DWORD dwSize, CPDF_Creator *pCreator);
FX_BOOL End(CPDF_Creator *pCreator, FX_BOOL bEOF = FALSE);
FX_BOOL AddObjectNumberToIndexArray(FX_DWORD objnum);
FX_BOOL EndXRefStream(CPDF_Creator* pCreator);
CFX_DWordArray m_IndexArray;
FX_FILESIZE m_PrevOffset;
FX_DWORD m_dwTempObjNum;
protected:
FX_INT32 EndObjectStream(CPDF_Creator *pCreator, FX_BOOL bEOF = TRUE);
FX_BOOL GenerateXRefStream(CPDF_Creator* pCreator, FX_BOOL bEOF);
FX_INT32 m_iSeg;
CPDF_ObjectStream m_ObjStream;
CFX_ByteTextBuf m_Buffer;
};
#endif
|