Commit ce6cee357025dfae7276adcc7471a2672649e92a
1 parent
c996f4ac
Spell check
Showing
4 changed files
with
50 additions
and
4 deletions
ChangeLog
| @@ -108,7 +108,7 @@ | @@ -108,7 +108,7 @@ | ||
| 108 | 108 | ||
| 109 | * If QPDF_EXECUTABLE is set, use it as the path to qpdf for | 109 | * If QPDF_EXECUTABLE is set, use it as the path to qpdf for |
| 110 | purposes of completion. This variable is only read during the | 110 | purposes of completion. This variable is only read during the |
| 111 | - executation of `qpdf --completion-zsh` and `qpdf | 111 | + execution of `qpdf --completion-zsh` and `qpdf |
| 112 | --completion-bash`. It is not used during the actual evaluation of | 112 | --completion-bash`. It is not used during the actual evaluation of |
| 113 | completions. | 113 | completions. |
| 114 | 114 |
README.md
| @@ -78,7 +78,7 @@ Packagers may set DESTDIR, in which case make install will install inside of DES | @@ -78,7 +78,7 @@ Packagers may set DESTDIR, in which case make install will install inside of DES | ||
| 78 | 78 | ||
| 79 | Executive summary: manually define -DQPDF_NO_WCHAR_T in your build if you are building on a system without wchar_t. For details, read the rest of this section. | 79 | Executive summary: manually define -DQPDF_NO_WCHAR_T in your build if you are building on a system without wchar_t. For details, read the rest of this section. |
| 80 | 80 | ||
| 81 | -While wchar_t is part of the C++ standard library and should be present on virtually every system, there are some stripped down systems, such as those targetting certain embedded environments, that lack wchar_t. Internally, qpdf uses UTF-8 encoding for everything, so there is nothing important in qpdf's API that uses wchar_t. However, there is a helper method for converting between wchar_t* and char* that uses wchar_t. | 81 | +While wchar_t is part of the C++ standard library and should be present on virtually every system, there are some stripped down systems, such as those targeting certain embedded environments, that lack wchar_t. Internally, qpdf uses UTF-8 encoding for everything, so there is nothing important in qpdf's API that uses wchar_t. However, there is a helper method for converting between wchar_t* and char* that uses wchar_t. |
| 82 | 82 | ||
| 83 | If you are building in an environment that does not support wchar_t, you can define the preprocessor symbol QPDF_NO_WCHAR_T in your build. This will work whether you are building qpdf and need to avoid compiling the code that uses wchar_t or whether you are building client code that uses qpdf. | 83 | If you are building in an environment that does not support wchar_t, you can define the preprocessor symbol QPDF_NO_WCHAR_T in your build. This will work whether you are building qpdf and need to avoid compiling the code that uses wchar_t or whether you are building client code that uses qpdf. |
| 84 | 84 |
ispell-words
| @@ -30,6 +30,7 @@ addArrayElement | @@ -30,6 +30,7 @@ addArrayElement | ||
| 30 | addChoicesToCompletions | 30 | addChoicesToCompletions |
| 31 | addContentTokenFilter | 31 | addContentTokenFilter |
| 32 | addDictionaryMember | 32 | addDictionaryMember |
| 33 | +adde | ||
| 33 | addExplicitElementsToList | 34 | addExplicitElementsToList |
| 34 | addOptionsToCompletions | 35 | addOptionsToCompletions |
| 35 | addPage | 36 | addPage |
| @@ -44,6 +45,7 @@ admon | @@ -44,6 +45,7 @@ admon | ||
| 44 | Adobeâ | 45 | Adobeâ |
| 45 | ae | 46 | ae |
| 46 | aeadb | 47 | aeadb |
| 48 | +aefd | ||
| 47 | AEP | 49 | AEP |
| 48 | aes | 50 | aes |
| 49 | AESv | 51 | AESv |
| @@ -157,6 +159,7 @@ argQdf | @@ -157,6 +159,7 @@ argQdf | ||
| 157 | argRawStreamData | 159 | argRawStreamData |
| 158 | argRecompressFlate | 160 | argRecompressFlate |
| 159 | argRemovePageLabels | 161 | argRemovePageLabels |
| 162 | +argRemoveUnreferencedResources | ||
| 160 | argReplaceInput | 163 | argReplaceInput |
| 161 | argRequiresPassword | 164 | argRequiresPassword |
| 162 | argRotate | 165 | argRotate |
| @@ -196,6 +199,7 @@ ascii | @@ -196,6 +199,7 @@ ascii | ||
| 196 | asciiHex | 199 | asciiHex |
| 197 | ASCIIHexDecode | 200 | ASCIIHexDecode |
| 198 | ASCIIHexDecoder | 201 | ASCIIHexDecoder |
| 202 | +asdf | ||
| 199 | asMap | 203 | asMap |
| 200 | assertArray | 204 | assertArray |
| 201 | assertBool | 205 | assertBool |
| @@ -245,6 +249,7 @@ BaseVersion | @@ -245,6 +249,7 @@ BaseVersion | ||
| 245 | bashcompinit | 249 | bashcompinit |
| 246 | bashdefault | 250 | bashdefault |
| 247 | bb | 251 | bb |
| 252 | +bbb | ||
| 248 | BBox | 253 | BBox |
| 249 | bbox | 254 | bbox |
| 250 | bc | 255 | bc |
| @@ -269,6 +274,7 @@ BogusRandomDataProvider | @@ -269,6 +274,7 @@ BogusRandomDataProvider | ||
| 269 | boldseq | 274 | boldseq |
| 270 | bookinfo | 275 | bookinfo |
| 271 | bool | 276 | bool |
| 277 | +BoringSSL | ||
| 272 | BORLANDC | 278 | BORLANDC |
| 273 | bp | 279 | bp |
| 274 | BPC | 280 | BPC |
| @@ -355,7 +361,9 @@ CHSomething | @@ -355,7 +361,9 @@ CHSomething | ||
| 355 | ci | 361 | ci |
| 356 | cin | 362 | cin |
| 357 | cinfo | 363 | cinfo |
| 364 | +CipherInit | ||
| 358 | ciphertext | 365 | ciphertext |
| 366 | +CipherUpdate | ||
| 359 | cis | 367 | cis |
| 360 | cl | 368 | cl |
| 361 | classname | 369 | classname |
| @@ -426,6 +434,7 @@ CryptFilterDecodeParms | @@ -426,6 +434,7 @@ CryptFilterDecodeParms | ||
| 426 | CryptGenRandom | 434 | CryptGenRandom |
| 427 | crypto | 435 | crypto |
| 428 | cryptolog | 436 | cryptolog |
| 437 | +CryptoRandomDataProvider | ||
| 429 | CryptReleaseContext | 438 | CryptReleaseContext |
| 430 | cso | 439 | cso |
| 431 | csoe | 440 | csoe |
| @@ -440,6 +449,7 @@ ctest | @@ -440,6 +449,7 @@ ctest | ||
| 440 | ctx | 449 | ctx |
| 441 | ctype | 450 | ctype |
| 442 | CVE | 451 | CVE |
| 452 | +cwchar | ||
| 443 | cx | 453 | cx |
| 444 | cxx | 454 | cxx |
| 445 | CXXFLAGS | 455 | CXXFLAGS |
| @@ -447,6 +457,7 @@ cy | @@ -447,6 +457,7 @@ cy | ||
| 447 | cygwin | 457 | cygwin |
| 448 | da | 458 | da |
| 449 | daae | 459 | daae |
| 460 | +dac | ||
| 450 | dae | 461 | dae |
| 451 | db | 462 | db |
| 452 | dc | 463 | dc |
| @@ -510,7 +521,11 @@ didierstevens | @@ -510,7 +521,11 @@ didierstevens | ||
| 510 | diff | 521 | diff |
| 511 | diffs | 522 | diffs |
| 512 | diffutils | 523 | diffutils |
| 524 | +DigestFinal | ||
| 525 | +DigestInit | ||
| 526 | +DigestUpdate | ||
| 513 | DIR | 527 | DIR |
| 528 | +directpagerefcount | ||
| 514 | dirname | 529 | dirname |
| 515 | disableCBC | 530 | disableCBC |
| 516 | disableIncompatibleEncryption | 531 | disableIncompatibleEncryption |
| @@ -542,6 +557,7 @@ doWrite | @@ -542,6 +557,7 @@ doWrite | ||
| 542 | doWriteSetup | 557 | doWriteSetup |
| 543 | Doxygen | 558 | Doxygen |
| 544 | dp | 559 | dp |
| 560 | +DQPDF | ||
| 545 | dquote | 561 | dquote |
| 546 | dr | 562 | dr |
| 547 | driverless | 563 | driverless |
| @@ -569,7 +585,9 @@ EarlyChange | @@ -569,7 +585,9 @@ EarlyChange | ||
| 569 | eb | 585 | eb |
| 570 | EBADF | 586 | EBADF |
| 571 | ebae | 587 | ebae |
| 572 | -ECB | 588 | +ebde |
| 589 | +ebra | ||
| 590 | +ecb | ||
| 573 | ecc | 591 | ecc |
| 574 | ecedd | 592 | ecedd |
| 575 | ecks | 593 | ecks |
| @@ -595,9 +613,11 @@ encodeFile | @@ -595,9 +613,11 @@ encodeFile | ||
| 595 | encodeRow | 613 | encodeRow |
| 596 | encodeString | 614 | encodeString |
| 597 | encp | 615 | encp |
| 616 | +EncryptInit | ||
| 598 | EncryptionData | 617 | EncryptionData |
| 599 | EncryptionParameters | 618 | EncryptionParameters |
| 600 | EncryptMetadata | 619 | EncryptMetadata |
| 620 | +EncryptUpdate | ||
| 601 | endian | 621 | endian |
| 602 | endianness | 622 | endianness |
| 603 | endif | 623 | endif |
| @@ -624,6 +644,7 @@ ep | @@ -624,6 +644,7 @@ ep | ||
| 624 | epub | 644 | epub |
| 625 | eq | 645 | eq |
| 626 | ERANGE | 646 | ERANGE |
| 647 | +erasdf | ||
| 627 | eraseItem | 648 | eraseItem |
| 628 | Erdelsky's | 649 | Erdelsky's |
| 629 | errno | 650 | errno |
| @@ -633,6 +654,7 @@ errptr | @@ -633,6 +654,7 @@ errptr | ||
| 633 | esize | 654 | esize |
| 634 | esses | 655 | esses |
| 635 | eval | 656 | eval |
| 657 | +evp | ||
| 636 | exc | 658 | exc |
| 637 | exe | 659 | exe |
| 638 | exp | 660 | exp |
| @@ -678,7 +700,9 @@ Filespec | @@ -678,7 +700,9 @@ Filespec | ||
| 678 | FILETIME | 700 | FILETIME |
| 679 | filetrailer | 701 | filetrailer |
| 680 | filterability | 702 | filterability |
| 703 | +filterAsContents | ||
| 681 | filterCompressedObjects | 704 | filterCompressedObjects |
| 705 | +filterp | ||
| 682 | filterPageContents | 706 | filterPageContents |
| 683 | findAndSkipNextEOL | 707 | findAndSkipNextEOL |
| 684 | findAttachmentStreams | 708 | findAttachmentStreams |
| @@ -899,11 +923,14 @@ getPartialName | @@ -899,11 +923,14 @@ getPartialName | ||
| 899 | getPDFVersion | 923 | getPDFVersion |
| 900 | getPerms | 924 | getPerms |
| 901 | getPointer | 925 | getPointer |
| 926 | +getProvider | ||
| 902 | getQPDF | 927 | getQPDF |
| 903 | getQpdf | 928 | getQpdf |
| 904 | getQuadding | 929 | getQuadding |
| 905 | getR | 930 | getR |
| 906 | getRandomDataProvider | 931 | getRandomDataProvider |
| 932 | +getRandomDataProviderProvider | ||
| 933 | +getRandomProvider | ||
| 907 | getRawDigest | 934 | getRawDigest |
| 908 | getRawStreamData | 935 | getRawStreamData |
| 909 | getRawValue | 936 | getRawValue |
| @@ -1058,6 +1085,7 @@ ImageInverter | @@ -1058,6 +1085,7 @@ ImageInverter | ||
| 1058 | ImageMask | 1085 | ImageMask |
| 1059 | ImageOptimizer | 1086 | ImageOptimizer |
| 1060 | ImageProvider | 1087 | ImageProvider |
| 1088 | +immediateCopyFrom | ||
| 1061 | inbuf | 1089 | inbuf |
| 1062 | includeIgnorable | 1090 | includeIgnorable |
| 1063 | incr | 1091 | incr |
| @@ -1072,6 +1100,7 @@ inflateInit | @@ -1072,6 +1100,7 @@ inflateInit | ||
| 1072 | inflateReset | 1100 | inflateReset |
| 1073 | infs | 1101 | infs |
| 1074 | ing | 1102 | ing |
| 1103 | +inheritsresources | ||
| 1075 | init | 1104 | init |
| 1076 | initializeByPage | 1105 | initializeByPage |
| 1077 | initializeEncryption | 1106 | initializeEncryption |
| @@ -1194,6 +1223,7 @@ keybits | @@ -1194,6 +1223,7 @@ keybits | ||
| 1194 | keylen | 1223 | keylen |
| 1195 | KEYLENGTH | 1224 | KEYLENGTH |
| 1196 | keyset | 1225 | keyset |
| 1226 | +kgdl | ||
| 1197 | LARGEFILE | 1227 | LARGEFILE |
| 1198 | lastnum | 1228 | lastnum |
| 1199 | lastreleased | 1229 | lastreleased |
| @@ -1445,6 +1475,7 @@ OBJDIR | @@ -1445,6 +1475,7 @@ OBJDIR | ||
| 1445 | objdump | 1475 | objdump |
| 1446 | ObjectHelper | 1476 | ObjectHelper |
| 1447 | ObjectHolder | 1477 | ObjectHolder |
| 1478 | +objectinfo | ||
| 1448 | objectStreamsChoices | 1479 | objectStreamsChoices |
| 1449 | objectWarning | 1480 | objectWarning |
| 1450 | ObjGen | 1481 | ObjGen |
| @@ -1483,6 +1514,7 @@ OpenAction | @@ -1483,6 +1514,7 @@ OpenAction | ||
| 1483 | openObject | 1514 | openObject |
| 1484 | opensource | 1515 | opensource |
| 1485 | openssl | 1516 | openssl |
| 1517 | +OpenSSL | ||
| 1486 | optionalParameter | 1518 | optionalParameter |
| 1487 | OptionEntry | 1519 | OptionEntry |
| 1488 | ord | 1520 | ord |
| @@ -1571,6 +1603,7 @@ pdfs | @@ -1571,6 +1603,7 @@ pdfs | ||
| 1571 | pdh | 1603 | pdh |
| 1572 | pdlin | 1604 | pdlin |
| 1573 | pe | 1605 | pe |
| 1606 | +perf | ||
| 1574 | performant | 1607 | performant |
| 1575 | perl | 1608 | perl |
| 1576 | persistAcrossFinish | 1609 | persistAcrossFinish |
| @@ -1751,6 +1784,7 @@ qwert | @@ -1751,6 +1784,7 @@ qwert | ||
| 1751 | qwww | 1784 | qwww |
| 1752 | rand | 1785 | rand |
| 1753 | RandomDataProvider | 1786 | RandomDataProvider |
| 1787 | +RandomDataProviderProvider | ||
| 1754 | randoms | 1788 | randoms |
| 1755 | rb | 1789 | rb |
| 1756 | rbegin | 1790 | rbegin |
| @@ -1758,6 +1792,7 @@ rc | @@ -1758,6 +1792,7 @@ rc | ||
| 1758 | rcon | 1792 | rcon |
| 1759 | RDONLY | 1793 | RDONLY |
| 1760 | rdp | 1794 | rdp |
| 1795 | +rdpp | ||
| 1761 | rdquo | 1796 | rdquo |
| 1762 | readArgsFromFile | 1797 | readArgsFromFile |
| 1763 | readHGeneric | 1798 | readHGeneric |
| @@ -1798,6 +1833,7 @@ removeKey | @@ -1798,6 +1833,7 @@ removeKey | ||
| 1798 | removePage | 1833 | removePage |
| 1799 | removereplace | 1834 | removereplace |
| 1800 | removeUnreferencedResources | 1835 | removeUnreferencedResources |
| 1836 | +removeUnreferencedResourcesHelper | ||
| 1801 | ren | 1837 | ren |
| 1802 | repl | 1838 | repl |
| 1803 | replaceDict | 1839 | replaceDict |
| @@ -1841,6 +1877,7 @@ Rkey | @@ -1841,6 +1877,7 @@ Rkey | ||
| 1841 | RKLENGTH | 1877 | RKLENGTH |
| 1842 | rl | 1878 | rl |
| 1843 | rm | 1879 | rm |
| 1880 | +rnd | ||
| 1844 | RNRT | 1881 | RNRT |
| 1845 | rollover | 1882 | rollover |
| 1846 | rotatePage | 1883 | rotatePage |
| @@ -1869,6 +1906,7 @@ SASLprep | @@ -1869,6 +1906,7 @@ SASLprep | ||
| 1869 | savable | 1906 | savable |
| 1870 | scanline | 1907 | scanline |
| 1871 | scanlines | 1908 | scanlines |
| 1909 | +Scarff | ||
| 1872 | sch | 1910 | sch |
| 1873 | scp | 1911 | scp |
| 1874 | sdk | 1912 | sdk |
| @@ -1936,6 +1974,7 @@ setPipeline | @@ -1936,6 +1974,7 @@ setPipeline | ||
| 1936 | setprecision | 1974 | setprecision |
| 1937 | setPreserveEncryption | 1975 | setPreserveEncryption |
| 1938 | setPreserveUnreferencedObjects | 1976 | setPreserveUnreferencedObjects |
| 1977 | +setProvider | ||
| 1939 | setQDFMode | 1978 | setQDFMode |
| 1940 | setR | 1979 | setR |
| 1941 | setRadioButtonValue | 1980 | setRadioButtonValue |
| @@ -1956,7 +1995,9 @@ sev | @@ -1956,7 +1995,9 @@ sev | ||
| 1956 | sf | 1995 | sf |
| 1957 | sha | 1996 | sha |
| 1958 | shallowCopy | 1997 | shallowCopy |
| 1998 | +shallowCopyInternal | ||
| 1959 | shallowCopyPage | 1999 | shallowCopyPage |
| 2000 | +sharedresources | ||
| 1960 | showLinearizationData | 2001 | showLinearizationData |
| 1961 | showXRefTable | 2002 | showXRefTable |
| 1962 | sig | 2003 | sig |
| @@ -2044,6 +2085,7 @@ subdictionaries | @@ -2044,6 +2085,7 @@ subdictionaries | ||
| 2044 | subdictionary | 2085 | subdictionary |
| 2045 | SubFilter | 2086 | SubFilter |
| 2046 | SubFilters | 2087 | SubFilters |
| 2088 | +subkeys | ||
| 2047 | SUBLANG | 2089 | SUBLANG |
| 2048 | sublicense | 2090 | sublicense |
| 2049 | Submatches | 2091 | Submatches |
| @@ -2054,6 +2096,7 @@ substring | @@ -2054,6 +2096,7 @@ substring | ||
| 2054 | Subtype | 2096 | Subtype |
| 2055 | sudo | 2097 | sudo |
| 2056 | supp | 2098 | supp |
| 2099 | +supportsRetry | ||
| 2057 | suppressions | 2100 | suppressions |
| 2058 | svg | 2101 | svg |
| 2059 | swapObjects | 2102 | swapObjects |
| @@ -2180,9 +2223,11 @@ unparseObject | @@ -2180,9 +2223,11 @@ unparseObject | ||
| 2180 | unparseResolved | 2223 | unparseResolved |
| 2181 | unparsing | 2224 | unparsing |
| 2182 | unreadCh | 2225 | unreadCh |
| 2226 | +unref | ||
| 2183 | unreferenced | 2227 | unreferenced |
| 2184 | unresolvable | 2228 | unresolvable |
| 2185 | unretrieved | 2229 | unretrieved |
| 2230 | +unsafeShallowCopy | ||
| 2186 | uo | 2231 | uo |
| 2187 | upages | 2232 | upages |
| 2188 | upass | 2233 | upass |
| @@ -2358,6 +2403,7 @@ yn | @@ -2358,6 +2403,7 @@ yn | ||
| 2358 | yp | 2403 | yp |
| 2359 | yscale | 2404 | yscale |
| 2360 | yuiop | 2405 | yuiop |
| 2406 | +YYYY | ||
| 2361 | yyyymmdd | 2407 | yyyymmdd |
| 2362 | z's | 2408 | z's |
| 2363 | zalloc | 2409 | zalloc |
qpdf/qpdf.cc
| @@ -4827,7 +4827,7 @@ static bool should_remove_unreferenced_resources(QPDF& pdf, Options& o) | @@ -4827,7 +4827,7 @@ static bool should_remove_unreferenced_resources(QPDF& pdf, Options& o) | ||
| 4827 | // in the file for shared resources dictionaries or shared XObject | 4827 | // in the file for shared resources dictionaries or shared XObject |
| 4828 | // subkeys of resources dictionaries either on pages or on form | 4828 | // subkeys of resources dictionaries either on pages or on form |
| 4829 | // XObjects in pages. If we find any, then there is a higher | 4829 | // XObjects in pages. If we find any, then there is a higher |
| 4830 | - // likeilihood that the expensive process of finding unreferenced | 4830 | + // likelihood that the expensive process of finding unreferenced |
| 4831 | // resources is worth it. | 4831 | // resources is worth it. |
| 4832 | 4832 | ||
| 4833 | // Return true as soon as we find any shared resources. | 4833 | // Return true as soon as we find any shared resources. |