Commit 0c705a882bd12b90d08a11ea6d40152f95b8aa96
Committed by
Jay Berkenbilt
1 parent
b4fc9eb7
Minor documentation updates
Showing
7 changed files
with
19 additions
and
19 deletions
include/qpdf/QPDF.hh
| @@ -595,7 +595,7 @@ class QPDF | @@ -595,7 +595,7 @@ class QPDF | ||
| 595 | // duplicated. For efficiency, this method returns a const | 595 | // duplicated. For efficiency, this method returns a const |
| 596 | // reference to an internal vector of pages. Calls to addPage, | 596 | // reference to an internal vector of pages. Calls to addPage, |
| 597 | // addPageAt, and removePage safely update this, but directly | 597 | // addPageAt, and removePage safely update this, but directly |
| 598 | - // manipulation of the pages three or pushing inheritable objects | 598 | + // manipulation of the pages tree or pushing inheritable objects |
| 599 | // to the page level may invalidate it. See comments for | 599 | // to the page level may invalidate it. See comments for |
| 600 | // updateAllPagesCache() for additional notes. Newer code should | 600 | // updateAllPagesCache() for additional notes. Newer code should |
| 601 | // use QPDFPageDocumentHelper::getAllPages instead. The decision | 601 | // use QPDFPageDocumentHelper::getAllPages instead. The decision |
include/qpdf/QPDFObjectHandle.hh
| @@ -320,7 +320,7 @@ class QPDFObjectHandle | @@ -320,7 +320,7 @@ class QPDFObjectHandle | ||
| 320 | QPDF_DLL | 320 | QPDF_DLL |
| 321 | char const* getTypeName(); | 321 | char const* getTypeName(); |
| 322 | 322 | ||
| 323 | - // Exactly one of these will return true for any object. Operator | 323 | + // Exactly one of these will return true for any initialized object. Operator |
| 324 | // and InlineImage are only allowed in content streams. | 324 | // and InlineImage are only allowed in content streams. |
| 325 | QPDF_DLL | 325 | QPDF_DLL |
| 326 | bool isBool(); | 326 | bool isBool(); |
| @@ -594,7 +594,7 @@ class QPDFObjectHandle | @@ -594,7 +594,7 @@ class QPDFObjectHandle | ||
| 594 | static QPDFObjectHandle newReserved(QPDF* qpdf); | 594 | static QPDFObjectHandle newReserved(QPDF* qpdf); |
| 595 | 595 | ||
| 596 | // Provide an owning qpdf and object description. The library does | 596 | // Provide an owning qpdf and object description. The library does |
| 597 | - // this automatically with objects that are read from from the | 597 | + // this automatically with objects that are read from the |
| 598 | // input PDF and with objects that are created programmatically | 598 | // input PDF and with objects that are created programmatically |
| 599 | // and inserted into the QPDF by adding them to an array or a | 599 | // and inserted into the QPDF by adding them to an array or a |
| 600 | // dictionary or creating a new indirect object. Most end user | 600 | // dictionary or creating a new indirect object. Most end user |
| @@ -648,7 +648,7 @@ class QPDFObjectHandle | @@ -648,7 +648,7 @@ class QPDFObjectHandle | ||
| 648 | // with PDF Doc Encoding. PDF Doc Encoding is identical to | 648 | // with PDF Doc Encoding. PDF Doc Encoding is identical to |
| 649 | // ISO-8859-1 except in the range from 0200 through 0240, where | 649 | // ISO-8859-1 except in the range from 0200 through 0240, where |
| 650 | // there is a mapping of characters to Unicode. QPDF versions | 650 | // there is a mapping of characters to Unicode. QPDF versions |
| 651 | - // prior to version erroneously left characters in that range | 651 | + // prior to version 8.0.0 erroneously left characters in that range |
| 652 | // unmapped. | 652 | // unmapped. |
| 653 | QPDF_DLL | 653 | QPDF_DLL |
| 654 | std::string getUTF8Value(); | 654 | std::string getUTF8Value(); |
| @@ -684,13 +684,13 @@ class QPDFObjectHandle | @@ -684,13 +684,13 @@ class QPDFObjectHandle | ||
| 684 | std::vector<QPDFObjectHandle> getArrayAsVector(); | 684 | std::vector<QPDFObjectHandle> getArrayAsVector(); |
| 685 | QPDF_DLL | 685 | QPDF_DLL |
| 686 | bool isRectangle(); | 686 | bool isRectangle(); |
| 687 | - // If the array an array of four numeric values, return as a | 687 | + // If the array is an array of four numeric values, return as a |
| 688 | // rectangle. Otherwise, return the rectangle [0, 0, 0, 0] | 688 | // rectangle. Otherwise, return the rectangle [0, 0, 0, 0] |
| 689 | QPDF_DLL | 689 | QPDF_DLL |
| 690 | Rectangle getArrayAsRectangle(); | 690 | Rectangle getArrayAsRectangle(); |
| 691 | QPDF_DLL | 691 | QPDF_DLL |
| 692 | bool isMatrix(); | 692 | bool isMatrix(); |
| 693 | - // If the array an array of six numeric values, return as a | 693 | + // If the array is an array of six numeric values, return as a |
| 694 | // matrix. Otherwise, return the matrix [1, 0, 0, 1, 0, 0] | 694 | // matrix. Otherwise, return the matrix [1, 0, 0, 1, 0, 0] |
| 695 | QPDF_DLL | 695 | QPDF_DLL |
| 696 | Matrix getArrayAsMatrix(); | 696 | Matrix getArrayAsMatrix(); |
include/qpdf/QPDFPageDocumentHelper.hh
| @@ -46,11 +46,11 @@ class QPDFPageDocumentHelper: public QPDFDocumentHelper | @@ -46,11 +46,11 @@ class QPDFPageDocumentHelper: public QPDFDocumentHelper | ||
| 46 | 46 | ||
| 47 | // Traverse page tree, and return all /Page objects wrapped in | 47 | // Traverse page tree, and return all /Page objects wrapped in |
| 48 | // QPDFPageObjectHelper objects. Unlike with | 48 | // QPDFPageObjectHelper objects. Unlike with |
| 49 | - // QPDFObjectHandle::getAllPages, the vector of pages returned by | 49 | + // QPDF::getAllPages, the vector of pages returned by |
| 50 | // this call is not affected by additions or removals of pages. If | 50 | // this call is not affected by additions or removals of pages. If |
| 51 | // you manipulate pages, you will have to call this again to get a | 51 | // you manipulate pages, you will have to call this again to get a |
| 52 | - // new copy. Please comments in QPDFObjectHandle.hh for | ||
| 53 | - // getAllPages() for additional details. | 52 | + // new copy. Please see comments in QPDF.hh for getAllPages() for |
| 53 | + // additional details. | ||
| 54 | QPDF_DLL | 54 | QPDF_DLL |
| 55 | std::vector<QPDFPageObjectHelper> getAllPages(); | 55 | std::vector<QPDFPageObjectHelper> getAllPages(); |
| 56 | 56 |
include/qpdf/qpdf-c.h
| @@ -502,7 +502,7 @@ extern "C" { | @@ -502,7 +502,7 @@ extern "C" { | ||
| 502 | * specific method of QPDFObjectHandler. For example, | 502 | * specific method of QPDFObjectHandler. For example, |
| 503 | * qpdf_oh_is_bool corresponds to QPDFObjectHandle::isBool. If the | 503 | * qpdf_oh_is_bool corresponds to QPDFObjectHandle::isBool. If the |
| 504 | * C++ method is overloaded, the C function's name will be | 504 | * C++ method is overloaded, the C function's name will be |
| 505 | - * disambiguated. If the C++ method takes optional argumens, the C | 505 | + * disambiguated. If the C++ method takes optional arguments, the C |
| 506 | * function will have required arguments in those positions. For | 506 | * function will have required arguments in those positions. For |
| 507 | * details about the method, please see comments in | 507 | * details about the method, please see comments in |
| 508 | * QPDFObjectHandle.hh. Comments here only explain things that are | 508 | * QPDFObjectHandle.hh. Comments here only explain things that are |
| @@ -527,7 +527,7 @@ extern "C" { | @@ -527,7 +527,7 @@ extern "C" { | ||
| 527 | * expected to be valid after the next qpdf call. | 527 | * expected to be valid after the next qpdf call. |
| 528 | * | 528 | * |
| 529 | * The qpdf_data object keeps a cache of handles returned by these | 529 | * The qpdf_data object keeps a cache of handles returned by these |
| 530 | - * functions. Once you are finished referencing an handle, you can | 530 | + * functions. Once you are finished referencing a handle, you can |
| 531 | * optionally release it. Releasing handles is optional since they | 531 | * optionally release it. Releasing handles is optional since they |
| 532 | * will all get released by qpdf_cleanup, but it can help to | 532 | * will all get released by qpdf_cleanup, but it can help to |
| 533 | * reduce the memory footprint of the qpdf_data object to release | 533 | * reduce the memory footprint of the qpdf_data object to release |
| @@ -538,8 +538,8 @@ extern "C" { | @@ -538,8 +538,8 @@ extern "C" { | ||
| 538 | * add it to an existing dictionary or array, and then release it's | 538 | * add it to an existing dictionary or array, and then release it's |
| 539 | * handle, the object is safely part of the dictionary or array. | 539 | * handle, the object is safely part of the dictionary or array. |
| 540 | * Similarly, any other object handle refering to the object remains | 540 | * Similarly, any other object handle refering to the object remains |
| 541 | - * valid. Explicitly releasing an object is essentially the same as | ||
| 542 | - * letting a QPDFObjectHandle go out of scope in the C++ API. | 541 | + * valid. Explicitly releasing an object handle is essentially the |
| 542 | + * same as letting a QPDFObjectHandle go out of scope in the C++ API. | ||
| 543 | */ | 543 | */ |
| 544 | 544 | ||
| 545 | /* For examples of using this API, see examples/pdf-c-objects.c */ | 545 | /* For examples of using this API, see examples/pdf-c-objects.c */ |
manual/qpdf-manual.xml
| @@ -556,7 +556,7 @@ make | @@ -556,7 +556,7 @@ make | ||
| 556 | <para> | 556 | <para> |
| 557 | When running qpdf, the basic invocation is as follows: | 557 | When running qpdf, the basic invocation is as follows: |
| 558 | 558 | ||
| 559 | - <programlisting><command>qpdf</command><option> [ <replaceable>options</replaceable> ] <replaceable>infilename</replaceable> [ <replaceable>outfilename</replaceable> ]</option> | 559 | + <programlisting><command>qpdf</command><option> [ <replaceable>options</replaceable> ] { <replaceable>infilename</replaceable> | <option>--empty</option> } [ <replaceable>page_selection_options</replaceable> ] <replaceable>outfilename</replaceable></option> |
| 560 | </programlisting> | 560 | </programlisting> |
| 561 | This converts PDF file <option>infilename</option> to PDF file | 561 | This converts PDF file <option>infilename</option> to PDF file |
| 562 | <option>outfilename</option>. The output file is functionally | 562 | <option>outfilename</option>. The output file is functionally |
| @@ -1551,7 +1551,7 @@ make | @@ -1551,7 +1551,7 @@ make | ||
| 1551 | </para> | 1551 | </para> |
| 1552 | <para> | 1552 | <para> |
| 1553 | Starting with qpf 8.4, the special input file name | 1553 | Starting with qpf 8.4, the special input file name |
| 1554 | - “<filename>.</filename>” can be used shortcut for the | 1554 | + “<filename>.</filename>” can be used as a shortcut for the |
| 1555 | primary input filename. | 1555 | primary input filename. |
| 1556 | </para> | 1556 | </para> |
| 1557 | <para> | 1557 | <para> |
qpdf/qpdf.cc
| @@ -1300,7 +1300,7 @@ ArgParser::argCopyright() | @@ -1300,7 +1300,7 @@ ArgParser::argCopyright() | ||
| 1300 | << std::endl | 1300 | << std::endl |
| 1301 | << "QPDF is licensed under the Apache License, Version 2.0 (the \"License\");" | 1301 | << "QPDF is licensed under the Apache License, Version 2.0 (the \"License\");" |
| 1302 | << std::endl | 1302 | << std::endl |
| 1303 | - << "not use this file except in compliance with the License." | 1303 | + << "you may not use this file except in compliance with the License." |
| 1304 | << std::endl | 1304 | << std::endl |
| 1305 | << "You may obtain a copy of the License at" | 1305 | << "You may obtain a copy of the License at" |
| 1306 | << std::endl | 1306 | << std::endl |
| @@ -1334,7 +1334,7 @@ ArgParser::argHelp() | @@ -1334,7 +1334,7 @@ ArgParser::argHelp() | ||
| 1334 | { | 1334 | { |
| 1335 | std::cout | 1335 | std::cout |
| 1336 | // 12345678901234567890123456789012345678901234567890123456789012345678901234567890 | 1336 | // 12345678901234567890123456789012345678901234567890123456789012345678901234567890 |
| 1337 | - << "Usage: qpdf [ options ] { infilename | --empty } [ outfilename ]\n" | 1337 | + << "Usage: qpdf [options] {infile | --empty} [page_selection_options] outfile\n" |
| 1338 | << "\n" | 1338 | << "\n" |
| 1339 | << "An option summary appears below. Please see the documentation for details.\n" | 1339 | << "An option summary appears below. Please see the documentation for details.\n" |
| 1340 | << "\n" | 1340 | << "\n" |
| @@ -3114,7 +3114,7 @@ void usageExit(std::string const& msg) | @@ -3114,7 +3114,7 @@ void usageExit(std::string const& msg) | ||
| 3114 | << std::endl | 3114 | << std::endl |
| 3115 | << whoami << ": " << msg << std::endl | 3115 | << whoami << ": " << msg << std::endl |
| 3116 | << std::endl | 3116 | << std::endl |
| 3117 | - << "Usage: " << whoami << " [options] infile outfile" << std::endl | 3117 | + << "Usage: " << whoami << " [options] {infile | --empty} [page_selection_options] outfile" << std::endl |
| 3118 | << "For detailed help, run " << whoami << " --help" << std::endl | 3118 | << "For detailed help, run " << whoami << " --help" << std::endl |
| 3119 | << std::endl; | 3119 | << std::endl; |
| 3120 | exit(EXIT_ERROR); | 3120 | exit(EXIT_ERROR); |
qpdf/qtest/qpdf/split-pages-stdout.out
| 1 | 1 | ||
| 2 | qpdf: --split-pages may not be used when writing to standard output | 2 | qpdf: --split-pages may not be used when writing to standard output |
| 3 | 3 | ||
| 4 | -Usage: qpdf [options] infile outfile | 4 | +Usage: qpdf [options] {infile | --empty} [page_selection_options] outfile |
| 5 | For detailed help, run qpdf --help | 5 | For detailed help, run qpdf --help |
| 6 | 6 |