Lines Matching defs:objnum
394 FX_BOOL Initialize(CPDF_CryptoHandler* pHandler, int objnum, FX_LPBYTE src_data, FX_DWORD src_size);
405 FX_BOOL CPDF_Encryptor::Initialize(CPDF_CryptoHandler* pHandler, int objnum, FX_LPBYTE src_data, FX_DWORD src_size)
416 m_dwSize = pHandler->EncryptGetSize(objnum, 0, src_data, src_size);
421 pHandler->EncryptContent(objnum, 0, src_data, src_size, m_pData, m_dwSize);
607 static void _AppendIndex2(CFX_ByteTextBuf& buffer, FX_DWORD objnum, FX_INT32 index)
610 buffer.AppendByte(FX_GETBYTEOFFSET24(objnum));
611 buffer.AppendByte(FX_GETBYTEOFFSET16(objnum));
612 buffer.AppendByte(FX_GETBYTEOFFSET8(objnum));
613 buffer.AppendByte(FX_GETBYTEOFFSET0(objnum));
689 FX_DWORD objnum = ++pCreator->m_dwLastObjNum;
693 AddObjectNumberToIndexArray(objnum);
706 FX_INT32 len = pFile->AppendDWord(objnum);
723 if ((len = pFile->AppendDWord(objnum + 1)) < 0) {
749 if ((len = pFile->AppendDWord(objnum + 1)) < 0) {
849 FX_BOOL CPDF_XRefStream::AddObjectNumberToIndexArray(FX_DWORD objnum)
853 m_IndexArray.Add(objnum);
859 if (objnum == startobjnum + iCount) {
862 m_IndexArray.Add(objnum);
924 FX_DWORD objnum = pObj->GetObjNum();
925 if (m_pParser && m_pParser->m_ObjVersion.GetSize() > (FX_INT32)objnum && m_pParser->m_ObjVersion[objnum] > 0) {
949 m_pXRefStream->AddObjectNumberToIndexArray(objnum);
950 if (m_pXRefStream->CompressIndirectObject(objnum, pObj, this) < 0) {
964 FX_INT32 CPDF_Creator::WriteIndirectObjectToStream(FX_DWORD objnum, FX_LPCBYTE pBuffer, FX_DWORD dwSize)
969 m_pXRefStream->AddObjectNumberToIndexArray(objnum
970 FX_INT32 iRet = m_pXRefStream->CompressIndirectObject(objnum, pBuffer, dwSize, this);
985 FX_INT32 CPDF_Creator::AppendObjectNumberToXRef(FX_DWORD objnum)
990 m_pXRefStream->AddObjectNumberToIndexArray(objnum);
1002 FX_INT32 CPDF_Creator::WriteStream(const CPDF_Object* pStream, FX_DWORD objnum, CPDF_CryptoHandler* pCrypto)
1007 if(!encryptor.Initialize(pCrypto, objnum, encoder.m_pData, encoder.m_dwSize)) {
1014 if (WriteDirectObj(objnum, encoder.m_pDict) < 0) {
1032 FX_INT32 CPDF_Creator::WriteIndirectObj(FX_DWORD objnum, const CPDF_Object* pObj)
1034 FX_INT32 len = m_File.AppendDWord(objnum);
1046 if (WriteStream(pObj, objnum, pHandler) < 0) {
1050 if (WriteDirectObj(objnum, pObj) < 0) {
1058 if (AppendObjectNumberToXRef(objnum) < 0) {
1071 FX_INT32 CPDF_Creator::WriteDirectObj(FX_DWORD objnum, const CPDF_Object* pObj, FX_BOOL bEncrypt)
1110 encryptor.Initialize(m_pCryptoHandler, objnum, (FX_LPBYTE)(FX_LPCSTR)str, str.GetLength());
1123 encryptor.Initialize(pHandler, objnum, encoder.m_pData, encoder.m_dwSize);
1128 if (WriteDirectObj(objnum, encoder.m_pDict) < 0) {
1190 if (WriteDirectObj(objnum, pElement) < 0) {
1238 if (WriteDirectObj(objnum, pValue, !bSignValue) < 0) {
1252 FX_INT32 CPDF_Creator::WriteOldIndirectObject(FX_DWORD objnum)
1254 if(m_pParser->m_V5Type[objnum] == 0 || m_pParser->m_V5Type[objnum] == 255) {
1257 m_ObjectOffset[objnum] = m_Offset;
1259 FX_BOOL bExistInMap = m_pDocument->m_IndirectObjs.Lookup((FX_LPVOID)(FX_UINTPTR)objnum, valuetemp);
1260 FX_BOOL bObjStm = (m_pParser->m_V5Type[objnum] == 2) && m_pEncryptDict && !m_pXRefStream;
1262 CPDF_Object* pObj = m_pDocument->GetIndirectObject(objnum);
1264 m_ObjectOffset[objnum] = 0;
1265 m_ObjectSize[objnum] = 0;
1272 m_pDocument->ReleaseIndirectObject(objnum);
1277 m_pParser->GetIndirectBinary(objnum, pBuffer, size);
1281 if (m_pParser->m_V5Type[objnum] == 2) {
1283 if (WriteIndirectObjectToStream(objnum, pBuffer, size) < 0) {
1288 FX_INT32 len = m_File.AppendDWord(objnum);
1310 if(AppendObjectNumberToXRef(objnum) < 0) {
1321 FX_DWORD objnum = (FX_DWORD)(FX_UINTPTR)m_Pos;
1322 for(; objnum < nOldSize; objnum ++) {
1323 FX_INT32 iRet = WriteOldIndirectObject(objnum);
1330 m_ObjectSize[objnum] = (FX_DWORD)(m_Offset - m_ObjectOffset[objnum]);
1332 m_Pos = (FX_LPVOID)(FX_UINTPTR)(objnum + 1);
1343 FX_DWORD objnum = m_NewObjNumArray.ElementAt(index);
1345 m_pDocument->m_IndirectObjs.Lookup((FX_LPVOID)(FX_UINTPTR)objnum, (FX_LPVOID&)pObj);
1350 m_ObjectOffset[objnum] = m_Offset;
1354 m_ObjectSize[objnum] = (FX_DWORD)(m_Offset - m_ObjectOffset[objnum]);
1397 FX_DWORD objnum = (FX_DWORD)key;
1406 if (objnum < nOldSize && m_pParser->m_V5Type[objnum] != 0) {
1410 AppendNewObjNum(objnum);
1550 for (FX_DWORD objnum = 0; objnum <= dwEnd; objnum++) {
1551 if (m_pParser->m_V5Type[objnum] == 0 || m_pParser->m_V5Type[objnum] == 255) {
1554 m_ObjectOffset[objnum] = m_pParser->m_CrossRef[objnum];
1556 m_pXRefStream->AddObjectNumberToIndexArray(objnum);
1692 FX_DWORD objnum = m_NewObjNumArray.ElementAt(i);
1698 if (dwCurrent - objnum > 1) {
1701 objnum = dwCurrent;
1703 objnum = m_NewObjNumArray.ElementAt(i);
1704 if (objnum == 1) {
1707 str.Format("%d %d\r\n", objnum, j - i);
1713 objnum = m_NewObjNumArray.ElementAt(i++);
1714 str.Format("%010d 00000 n\r\n", m_ObjectOffset[objnum]);
1925 FX_DWORD objnum = m_NewObjNumArray.ElementAt(i);
1926 if (m_File.AppendDWord(objnum) < 0) {
1943 FX_DWORD objnum = m_NewObjNumArray.ElementAt(i);
1944 FX_FILESIZE offset = m_ObjectOffset[objnum];