Commit 0c705a882bd12b90d08a11ea6d40152f95b8aa96

Authored by m-holger
Committed by Jay Berkenbilt
1 parent b4fc9eb7

Minor documentation updates

include/qpdf/QPDF.hh
... ... @@ -595,7 +595,7 @@ class QPDF
595 595 // duplicated. For efficiency, this method returns a const
596 596 // reference to an internal vector of pages. Calls to addPage,
597 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 599 // to the page level may invalidate it. See comments for
600 600 // updateAllPagesCache() for additional notes. Newer code should
601 601 // use QPDFPageDocumentHelper::getAllPages instead. The decision
... ...
include/qpdf/QPDFObjectHandle.hh
... ... @@ -320,7 +320,7 @@ class QPDFObjectHandle
320 320 QPDF_DLL
321 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 324 // and InlineImage are only allowed in content streams.
325 325 QPDF_DLL
326 326 bool isBool();
... ... @@ -594,7 +594,7 @@ class QPDFObjectHandle
594 594 static QPDFObjectHandle newReserved(QPDF* qpdf);
595 595  
596 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 598 // input PDF and with objects that are created programmatically
599 599 // and inserted into the QPDF by adding them to an array or a
600 600 // dictionary or creating a new indirect object. Most end user
... ... @@ -648,7 +648,7 @@ class QPDFObjectHandle
648 648 // with PDF Doc Encoding. PDF Doc Encoding is identical to
649 649 // ISO-8859-1 except in the range from 0200 through 0240, where
650 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 652 // unmapped.
653 653 QPDF_DLL
654 654 std::string getUTF8Value();
... ... @@ -684,13 +684,13 @@ class QPDFObjectHandle
684 684 std::vector<QPDFObjectHandle> getArrayAsVector();
685 685 QPDF_DLL
686 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 688 // rectangle. Otherwise, return the rectangle [0, 0, 0, 0]
689 689 QPDF_DLL
690 690 Rectangle getArrayAsRectangle();
691 691 QPDF_DLL
692 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 694 // matrix. Otherwise, return the matrix [1, 0, 0, 1, 0, 0]
695 695 QPDF_DLL
696 696 Matrix getArrayAsMatrix();
... ...
include/qpdf/QPDFPageDocumentHelper.hh
... ... @@ -46,11 +46,11 @@ class QPDFPageDocumentHelper: public QPDFDocumentHelper
46 46  
47 47 // Traverse page tree, and return all /Page objects wrapped in
48 48 // QPDFPageObjectHelper objects. Unlike with
49   - // QPDFObjectHandle::getAllPages, the vector of pages returned by
  49 + // QPDF::getAllPages, the vector of pages returned by
50 50 // this call is not affected by additions or removals of pages. If
51 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 54 QPDF_DLL
55 55 std::vector<QPDFPageObjectHelper> getAllPages();
56 56  
... ...
include/qpdf/qpdf-c.h
... ... @@ -502,7 +502,7 @@ extern &quot;C&quot; {
502 502 * specific method of QPDFObjectHandler. For example,
503 503 * qpdf_oh_is_bool corresponds to QPDFObjectHandle::isBool. If the
504 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 506 * function will have required arguments in those positions. For
507 507 * details about the method, please see comments in
508 508 * QPDFObjectHandle.hh. Comments here only explain things that are
... ... @@ -527,7 +527,7 @@ extern &quot;C&quot; {
527 527 * expected to be valid after the next qpdf call.
528 528 *
529 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 531 * optionally release it. Releasing handles is optional since they
532 532 * will all get released by qpdf_cleanup, but it can help to
533 533 * reduce the memory footprint of the qpdf_data object to release
... ... @@ -538,8 +538,8 @@ extern &quot;C&quot; {
538 538 * add it to an existing dictionary or array, and then release it's
539 539 * handle, the object is safely part of the dictionary or array.
540 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 545 /* For examples of using this API, see examples/pdf-c-objects.c */
... ...
manual/qpdf-manual.xml
... ... @@ -556,7 +556,7 @@ make
556 556 <para>
557 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 560 </programlisting>
561 561 This converts PDF file <option>infilename</option> to PDF file
562 562 <option>outfilename</option>. The output file is functionally
... ... @@ -1551,7 +1551,7 @@ make
1551 1551 </para>
1552 1552 <para>
1553 1553 Starting with qpf 8.4, the special input file name
1554   - &ldquo;<filename>.</filename>&rdquo; can be used shortcut for the
  1554 + &ldquo;<filename>.</filename>&rdquo; can be used as a shortcut for the
1555 1555 primary input filename.
1556 1556 </para>
1557 1557 <para>
... ...
qpdf/qpdf.cc
... ... @@ -1300,7 +1300,7 @@ ArgParser::argCopyright()
1300 1300 << std::endl
1301 1301 << "QPDF is licensed under the Apache License, Version 2.0 (the \"License\");"
1302 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 1304 << std::endl
1305 1305 << "You may obtain a copy of the License at"
1306 1306 << std::endl
... ... @@ -1334,7 +1334,7 @@ ArgParser::argHelp()
1334 1334 {
1335 1335 std::cout
1336 1336 // 12345678901234567890123456789012345678901234567890123456789012345678901234567890
1337   - << "Usage: qpdf [ options ] { infilename | --empty } [ outfilename ]\n"
  1337 + << "Usage: qpdf [options] {infile | --empty} [page_selection_options] outfile\n"
1338 1338 << "\n"
1339 1339 << "An option summary appears below. Please see the documentation for details.\n"
1340 1340 << "\n"
... ... @@ -3114,7 +3114,7 @@ void usageExit(std::string const&amp; msg)
3114 3114 << std::endl
3115 3115 << whoami << ": " << msg << std::endl
3116 3116 << std::endl
3117   - << "Usage: " << whoami << " [options] infile outfile" << std::endl
  3117 + << "Usage: " << whoami << " [options] {infile | --empty} [page_selection_options] outfile" << std::endl
3118 3118 << "For detailed help, run " << whoami << " --help" << std::endl
3119 3119 << std::endl;
3120 3120 exit(EXIT_ERROR);
... ...
qpdf/qtest/qpdf/split-pages-stdout.out
1 1  
2 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 5 For detailed help, run qpdf --help
6 6  
... ...