From 18340b883564386c6e8e5d3126698a023033a548 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 4 Jan 2021 16:09:33 -0500 Subject: [PATCH] Spell check --- ChangeLog | 2 +- examples/pdf-custom-filter.cc | 6 ++-- include/qpdf/QPDFStreamFilter.hh | 2 +- ispell-words | 48 ++++++++++++++++++++++++++++++++ libqpdf/QPDFPageObjectHelper.cc | 2 +- 5 files changed, 54 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 40eb1014..9cc2d94f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 2021-01-04 Jay Berkenbilt * When qpdf CLI extracts pages, it now only attempts to remove - unreferenced resourecs from the pages that it is keeping. This + unreferenced resources from the pages that it is keeping. This change dramatically reduces the time it takes to extract a small number of pages from a large, complex file. diff --git a/examples/pdf-custom-filter.cc b/examples/pdf-custom-filter.cc index 35f0ee38..1426e5fc 100644 --- a/examples/pdf-custom-filter.cc +++ b/examples/pdf-custom-filter.cc @@ -23,7 +23,7 @@ // is no such filter in PDF, so the streams created by the example // would not be usable by any PDF reader. However, the techniques here // would work if you were going to implement support for a filter that -// qpdf does not support natively. For example, using the techinques +// qpdf does not support natively. For example, using the techniques // shown here, it would be possible to create an application that // downsampled or re-encoded images or that re-compressed streams // using a more efficient "deflate" implementation than zlib. @@ -85,7 +85,7 @@ class SF_XORDecode: public QPDFStreamFilter // validate and interpret decode parameters (/DecodeParms) for the // made-up /XORDecode stream filter. Since this is not a real // stream filter, no actual PDF reader would know how to interpret - // it. This is just to illlustrate how to create a stream filter. + // it. This is just to illustrate how to create a stream filter. // In main(), we call QPDF::registerStreamFilter to tell the // library about the filter. See comments in QPDFStreamFilter.hh // for details on how to implement the methods. For purposes of @@ -260,7 +260,7 @@ StreamReplacer::maybeReplace(QPDFObjGen const& og, // necessary setup. When we are actually ready to supply the data, // this method is called again with pipeline populated and // dict_updates as a nullptr. In this mode, we are not allowed to - // change anything, sincing writing is already in progress. We + // change anything, since writing is already in progress. We // must simply provide the stream data. // The return value indicates whether or not we should replace the diff --git a/include/qpdf/QPDFStreamFilter.hh b/include/qpdf/QPDFStreamFilter.hh index 5e16a0b2..0dcd7c58 100644 --- a/include/qpdf/QPDFStreamFilter.hh +++ b/include/qpdf/QPDFStreamFilter.hh @@ -39,7 +39,7 @@ class QPDF_DLL_CLASS QPDFStreamFilter // setDecodeParms() and getDecodePipeline(). QPDF will always call // setDecodeParms() before calling getDecodePipeline(). It is // expected that you will store any needed information from - // decode_parms (or the decode_parms object iself) in your + // decode_parms (or the decode_parms object itself) in your // instance so that it can be used to construct the decode // pipeline. diff --git a/ispell-words b/ispell-words index 58805cde..48e76a01 100644 --- a/ispell-words +++ b/ispell-words @@ -119,6 +119,7 @@ argExternalizeInlineImages argfile argFilteredStreamData argFlattenAnnotations +argFlattenRotation argForceVersion argGenerateAppearances argHelp @@ -277,6 +278,7 @@ bookinfo bool BoringSSL BORLANDC +boxkey bp BPC bpp @@ -397,6 +399,7 @@ commandline COMP compareVersions compatbility +completionCommon CompressConfig computeDeterministicIDData concat @@ -428,6 +431,7 @@ CreateFile createPageContents createWhat CreationDate +cred cregex CRNL CropBox @@ -558,8 +562,11 @@ doFinalChecks Dohnal DOTLESS doubleBoxSize +downsampled +downsampler doWrite doWriteSetup +DoXOR Doxygen dp DQPDF @@ -707,6 +714,7 @@ filetrailer filterability filterAsContents filterCompressedObjects +filterContents filterp filterPageContents findAndSkipNextEOL @@ -732,6 +740,7 @@ flarp flate Flate's FlateDecode +FlateLzwDecode flattenAnnotations flattenAnnotationsForPage flattenPagesTree @@ -750,6 +759,10 @@ forcePDFVersion ForceR ForceV foreach +forEachFormXObject +forEachImage +ForEachImage +forEachXObject ForeignStreamData FormatMessageA fp @@ -826,6 +839,7 @@ getCount getCropBox getDA getDataChecksum +getDecodePipeline getDefaultAppearance getDefaultProvider getDefaultValue @@ -850,6 +864,7 @@ getFileChecksum GetFileInformationByHandle getFilename getFilePosition +getFilterOnWrite getFinalVersion getFirstChar getFlags @@ -857,6 +872,7 @@ getFontFromResource getFontName getFormFields getFormXObjectForPage +getFormXObjects getFullyQualifiedName getGen getGeneration @@ -864,6 +880,7 @@ getHeight getHexDigest getId getIdentifier +getImages getImpl getInheritableFieldValue getInheritableFieldValueAsName @@ -1091,6 +1108,7 @@ ImageC ImageChecker ImageInverter ImageMask +imagemask ImageOptimizer ImageProvider img @@ -1163,12 +1181,15 @@ isDictionary isdigit isDirectNull isEncrypted +isFormXObject isIgnorable +isImage isIndirect isInitialized isInlineImage isInteger isLinearized +isLossyCompression isMatrix isName isNull @@ -1189,6 +1210,7 @@ isReserved isScalar isspace isSpace +isSpecializedCompression isStream isString isText @@ -1202,6 +1224,7 @@ iter ith iz jarr +JBIG JCS JDIMENSION jdouble @@ -1233,6 +1256,7 @@ keybits keylen KEYLENGTH keyset +KeyStream kgdl LARGEFILE LastChar @@ -1334,6 +1358,7 @@ makeNumber makePipeline makeReal makeString +Mal malloc manualFinish mappingname @@ -1342,6 +1367,7 @@ Mateusz maxEnd maxlen maxval +maybeReplace md mdash MDd @@ -1439,6 +1465,7 @@ nitems nkids nl nlines +nlohmann nmatches nMatches NoBackref @@ -1535,6 +1562,7 @@ OptionEntry ord org orig +OrigLength orred os oss @@ -1582,7 +1610,9 @@ param params parms parseable +parseAsContents parsecontent +parseContents parseContentStream parsedoffset ParseGuard @@ -1614,6 +1644,7 @@ pdfdoc PDFDoc PDFDocEncoding pdfDumpInfoDict +PDFEx PDFs pdfs pdh @@ -1630,6 +1661,7 @@ phe php pikepdf pikepdf's +pipeContents pipeContentStreams pipeForeignStreamData PipelineAccessor @@ -1694,6 +1726,7 @@ programlisting programmatically ProgressReporter Projet +ProtectXOR prov provideRandomData provideStreamData @@ -1722,6 +1755,7 @@ pytest qarray QArray qbilt +qdata qdf qdf's QdfFixer @@ -1735,6 +1769,7 @@ QIntC ql qnumbers QNumbers +qoh qp qpdf qpdf's @@ -1773,6 +1808,7 @@ qpdfs QPDFSomethingDocumentHelper QPDFSomethingObjectHelper QPDFStream +QPDFStreamFilter QPDFSystemError QPDFTokenizer QPDFTYPES @@ -1848,6 +1884,8 @@ registerForeignStream registerImage registerImpl registerProgressReporter +registerStream +registerStreamFilter Regsvr releaseResolved ReleaseResolver @@ -1872,6 +1910,7 @@ reportProgress repos requiredChoices requiredParameter +resampler resave reserveObjects resetBits @@ -1928,6 +1967,7 @@ saphir sarray SASLprep savable +sc scanline scanlines Scarff @@ -1956,6 +1996,7 @@ setCompressStreams setContentNormalization setDataKey setDecodeLevel +setDecodeParms setDefaultProvider setDescription setDeterministicID @@ -1967,6 +2008,7 @@ setExtraHeaderText setFieldAttribute setFile setFilename +setFilterOnWrite setFromVector setIgnoreXRefStreams setImmediateCopyFrom @@ -2047,6 +2089,7 @@ src srdp sregex ss +ssp sstream stampfile stamppdf @@ -2080,6 +2123,7 @@ strcpy streamDataChoices StreamDataProvider streammethod +StreamReplacer strerror StrF stricmp @@ -2144,6 +2188,7 @@ Te TerminateParsing terminateParsing testcase +TestDriver testOutlines testPages TESTSUITE @@ -2320,6 +2365,7 @@ wfilenamep WFLAGS wfopen whoami +willFilterStream WinAnsi winansi WinAnsiEncoding @@ -2411,6 +2457,8 @@ XObject XObject's XObjects xor +XORDecode +XORs xp xpacket xpdf diff --git a/libqpdf/QPDFPageObjectHelper.cc b/libqpdf/QPDFPageObjectHelper.cc index f8f5e5a7..07700a66 100644 --- a/libqpdf/QPDFPageObjectHelper.cc +++ b/libqpdf/QPDFPageObjectHelper.cc @@ -1084,7 +1084,7 @@ QPDFPageObjectHelper::flattenRotation() // When we rotate the page, pivot about the point 0, 0 and then // translate so the page is visible with the origin point being // the same offset from the lower left corner of the media box. - // These calculations have been verified emperically with various + // These calculations have been verified empirically with various // PDF readers. QPDFObjectHandle::Matrix cm; cm.e = 0.0;