From e43061bf5b9daa0edd586b13a75ea1e203dffb84 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Mon, 4 Nov 2013 21:02:29 +1030 Subject: [PATCH 07/11] fix typo --- poppler/PDFDoc.cc | 16 ++++++++-------- poppler/PDFDoc.h | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index 6a497ff..89bbd53 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -975,7 +975,7 @@ void PDFDoc::saveCompleteRewrite (OutStream* outStr) delete uxref; } -void PDFDoc::writeDictionnary (Dict* dict, OutStream* outStr, XRef *xRef, Guint numOffset, Guchar *fileKey, +void PDFDoc::writeDictionary (Dict* dict, OutStream* outStr, XRef *xRef, Guint numOffset, Guchar *fileKey, CryptAlgorithm encAlgorithm, int keyLength, int objNum, int objGen) { Object obj1; @@ -1147,7 +1147,7 @@ void PDFDoc::writeObject (Object* obj, OutStream* outStr, XRef *xRef, Guint numO outStr->printf("] "); break; case objDict: - writeDictionnary (obj->getDict(), outStr, xRef, numOffset, fileKey, encAlgorithm, keyLength, objNum, objGen); + writeDictionary (obj->getDict(), outStr, xRef, numOffset, fileKey, encAlgorithm, keyLength, objNum, objGen); break; case objStream: { @@ -1219,7 +1219,7 @@ void PDFDoc::writeObject (Object* obj, OutStream* outStr, XRef *xRef, Guint numO stream->getDict()->set("Filter", &obj2); } - writeDictionnary (stream->getDict(),outStr, xRef, numOffset, fileKey, encAlgorithm, keyLength, objNum, objGen); + writeDictionary (stream->getDict(),outStr, xRef, numOffset, fileKey, encAlgorithm, keyLength, objNum, objGen); writeFlateStream (stream,outStr); delete encStream; obj1.free(); @@ -1237,7 +1237,7 @@ void PDFDoc::writeObject (Object* obj, OutStream* outStr, XRef *xRef, Guint numO } } } - writeDictionnary (stream->getDict(), outStr, xRef, numOffset, fileKey, encAlgorithm, keyLength, objNum, objGen); + writeDictionary (stream->getDict(), outStr, xRef, numOffset, fileKey, encAlgorithm, keyLength, objNum, objGen); writeRawStream (stream, outStr); } break; @@ -1372,7 +1372,7 @@ void PDFDoc::writeXRefTableTrailer(Dict *trailerDict, XRef *uxref, GBool writeAl { uxref->writeTableToFile( outStr, writeAllEntries ); outStr->printf( "trailer\r\n"); - writeDictionnary(trailerDict, outStr, xRef, 0, NULL, cryptRC4, 0, 0, 0); + writeDictionary(trailerDict, outStr, xRef, 0, NULL, cryptRC4, 0, 0, 0); outStr->printf( "\r\nstartxref\r\n"); outStr->printf( "%lli\r\n", uxrefOffset); outStr->printf( "%%%%EOF\r\n"); @@ -1426,7 +1426,7 @@ void PDFDoc::writeHeader(OutStream *outStr, int major, int minor) outStr->printf("%%\xE2\xE3\xCF\xD3\n"); } -void PDFDoc::markDictionnary (Dict* dict, XRef * xRef, XRef *countRef, Guint numOffset) +void PDFDoc::markDictionary (Dict* dict, XRef * xRef, XRef *countRef, Guint numOffset) { Object obj1; for (int i=0; igetLength(); i++) { @@ -1449,12 +1449,12 @@ void PDFDoc::markObject (Object* obj, XRef *xRef, XRef *countRef, Guint numOffse } break; case objDict: - markDictionnary (obj->getDict(), xRef, countRef, numOffset); + markDictionary (obj->getDict(), xRef, countRef, numOffset); break; case objStream: { Stream *stream = obj->getStream(); - markDictionnary (stream->getDict(), xRef, countRef, numOffset); + markDictionary (stream->getDict(), xRef, countRef, numOffset); } break; case objRef: diff --git a/poppler/PDFDoc.h b/poppler/PDFDoc.h index 0184f7e..c021a78 100644 --- a/poppler/PDFDoc.h +++ b/poppler/PDFDoc.h @@ -265,8 +265,8 @@ public: void markObject (Object *obj, XRef *xRef, XRef *countRef, Guint numOffset); private: // insert referenced objects in XRef - void markDictionnary (Dict* dict, XRef *xRef, XRef *countRef, Guint numOffset); - static void writeDictionnary (Dict* dict, OutStream* outStr, XRef *xRef, Guint numOffset, Guchar *fileKey, + void markDictionary (Dict* dict, XRef *xRef, XRef *countRef, Guint numOffset); + static void writeDictionary (Dict* dict, OutStream* outStr, XRef *xRef, Guint numOffset, Guchar *fileKey, CryptAlgorithm encAlgorithm, int keyLength, int objNum, int objGen); // Write object header to current file stream and return its offset @@ -276,9 +276,9 @@ private: void writeObject (Object *obj, OutStream* outStr, Guchar *fileKey, CryptAlgorithm encAlgorithm, int keyLength, int objNum, int objGen) { writeObject(obj, outStr, getXRef(), 0, fileKey, encAlgorithm, keyLength, objNum, objGen); } - void writeDictionnary (Dict* dict, OutStream* outStr, Guchar *fileKey, CryptAlgorithm encAlgorithm, + void writeDictionary (Dict* dict, OutStream* outStr, Guchar *fileKey, CryptAlgorithm encAlgorithm, int keyLength, int objNum, int objGen) - { writeDictionnary(dict, outStr, getXRef(), 0, fileKey, encAlgorithm, keyLength, objNum, objGen); } + { writeDictionary(dict, outStr, getXRef(), 0, fileKey, encAlgorithm, keyLength, objNum, objGen); } static Goffset getFlateStreamLength (Stream* str); static void writeFlateStream (Stream* str, OutStream* outStr); static void writeRawStream (Stream* str, OutStream* outStr); -- 1.8.3.2