From b7cb0cbb079bbb647d1540ecc95b020fe2466459 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Mon, 4 Nov 2013 21:02:29 +1030 Subject: [PATCH 7/8] 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 7590690..0eca6fc 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; @@ -1159,7 +1159,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: { @@ -1229,7 +1229,7 @@ void PDFDoc::writeObject (Object* obj, OutStream* outStr, XRef *xRef, Guint numO obj2.initName("FlateDecode"); 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(); @@ -1247,7 +1247,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; @@ -1382,7 +1382,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"); @@ -1436,7 +1436,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++) { @@ -1459,12 +1459,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 8f576f1..958184a 100644 --- a/poppler/PDFDoc.h +++ b/poppler/PDFDoc.h @@ -264,9 +264,9 @@ public: private: // insert referenced objects in XRef - void markDictionnary (Dict* dict, XRef *xRef, XRef *countRef, Guint numOffset); + void markDictionary (Dict* dict, XRef *xRef, XRef *countRef, Guint numOffset); void markObject (Object *obj, XRef *xRef, XRef *countRef, Guint numOffset); - static void writeDictionnary (Dict* dict, OutStream* outStr, XRef *xRef, Guint numOffset, Guchar *fileKey, + 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