Commit c1a48ec81dfd7252c7f414257c16b5bc522f97f5
1 parent
7bc52c57
Documentation fixes for set/remove page labels
Showing
4 changed files
with
43 additions
and
7 deletions
job.sums
| @@ -9,12 +9,12 @@ include/qpdf/auto_job_c_pages.hh 09ca15649cc94fdaf6d9bdae28a20723f2a66616bf15aa8 | @@ -9,12 +9,12 @@ include/qpdf/auto_job_c_pages.hh 09ca15649cc94fdaf6d9bdae28a20723f2a66616bf15aa8 | ||
| 9 | include/qpdf/auto_job_c_uo.hh 9c2f98a355858dd54d0bba444b73177a59c9e56833e02fa6406f429c07f39e62 | 9 | include/qpdf/auto_job_c_uo.hh 9c2f98a355858dd54d0bba444b73177a59c9e56833e02fa6406f429c07f39e62 |
| 10 | job.yml 53cad86659db6722e8f415aacb19fc51ab81bb1589c3cb8f65ec893bb4bf5566 | 10 | job.yml 53cad86659db6722e8f415aacb19fc51ab81bb1589c3cb8f65ec893bb4bf5566 |
| 11 | libqpdf/qpdf/auto_job_decl.hh 20d6affe1e260f5a1af4f1d82a820b933835440ff03020e877382da2e8dac6c6 | 11 | libqpdf/qpdf/auto_job_decl.hh 20d6affe1e260f5a1af4f1d82a820b933835440ff03020e877382da2e8dac6c6 |
| 12 | -libqpdf/qpdf/auto_job_help.hh e4bb9e097516f35b4dbc676e1de99f294d8f42912541c8e3844ea401e44336ef | 12 | +libqpdf/qpdf/auto_job_help.hh 74b2982771720927ce7be8f1690720ec65cb9989620493a0c154f50ba2c254e4 |
| 13 | libqpdf/qpdf/auto_job_init.hh 19d1da7c4c0c635bd1c5db8d5f17df8edad3442f8eba006adb075cec295fa158 | 13 | libqpdf/qpdf/auto_job_init.hh 19d1da7c4c0c635bd1c5db8d5f17df8edad3442f8eba006adb075cec295fa158 |
| 14 | libqpdf/qpdf/auto_job_json_decl.hh 843892c8e8652a86b7eb573893ef24050b7f36fe313f7251874be5cd4cdbe3fd | 14 | libqpdf/qpdf/auto_job_json_decl.hh 843892c8e8652a86b7eb573893ef24050b7f36fe313f7251874be5cd4cdbe3fd |
| 15 | libqpdf/qpdf/auto_job_json_init.hh a87256c082427ec0318223762472970b2eced535c0c8b0288d45c8cdaaf62f74 | 15 | libqpdf/qpdf/auto_job_json_init.hh a87256c082427ec0318223762472970b2eced535c0c8b0288d45c8cdaaf62f74 |
| 16 | libqpdf/qpdf/auto_job_schema.hh 5dac568dff39614e161a0af59a0f328f1e28edf69b96f08bb76fd592d51bb053 | 16 | libqpdf/qpdf/auto_job_schema.hh 5dac568dff39614e161a0af59a0f328f1e28edf69b96f08bb76fd592d51bb053 |
| 17 | manual/_ext/qpdf.py 6add6321666031d55ed4aedf7c00e5662bba856dfcd66ccb526563bffefbb580 | 17 | manual/_ext/qpdf.py 6add6321666031d55ed4aedf7c00e5662bba856dfcd66ccb526563bffefbb580 |
| 18 | -manual/cli.rst 98219ac9942824b78119cca7cd75691f7c98a31ed3c8b4f108d60a699087c418 | ||
| 19 | -manual/qpdf.1 2544e085c5f0f92e242944eea3bc5736e1036f67595a7a7c988f4ea8d75da901 | 18 | +manual/cli.rst 313e73730b062b52897ebbd72605d73fda3c6eb5028f4818e0da2100c75af5bc |
| 19 | +manual/qpdf.1 63d6ca1f7c41cfec3f82bc17aa4f40218635ad32a5a171d02bca62e1ddae45dd | ||
| 20 | manual/qpdf.1.in 436ecc85d45c4c9e2dbd1725fb7f0177fb627179469f114561adf3cb6cbb677b | 20 | manual/qpdf.1.in 436ecc85d45c4c9e2dbd1725fb7f0177fb627179469f114561adf3cb6cbb677b |
libqpdf/qpdf/auto_job_help.hh
| @@ -437,9 +437,18 @@ where | @@ -437,9 +437,18 @@ where | ||
| 437 | - r: Lower-case Roman numerals | 437 | - r: Lower-case Roman numerals |
| 438 | - omitted: the page number does not appear, though the prefix, | 438 | - omitted: the page number does not appear, though the prefix, |
| 439 | if specified will still appear | 439 | if specified will still appear |
| 440 | +- "start" must be a number >= 1 | ||
| 440 | - "prefix"` may be any string and is prepended to each page | 441 | - "prefix"` may be any string and is prepended to each page |
| 441 | label | 442 | label |
| 442 | 443 | ||
| 444 | +The first label spec must have a first-page value of 1, | ||
| 445 | +indicating the first page of the document. If multiple page | ||
| 446 | +label specs are specified, they must be given in increasing | ||
| 447 | +order. | ||
| 448 | + | ||
| 449 | +If multiple page label specs are specified, they must be given | ||
| 450 | +in increasing order. | ||
| 451 | + | ||
| 443 | A given page label spec causes pages to be numbered according to | 452 | A given page label spec causes pages to be numbered according to |
| 444 | that scheme starting with first-page and continuing until the | 453 | that scheme starting with first-page and continuing until the |
| 445 | next label spec or the end of the document. If you want to omit | 454 | next label spec or the end of the document. If you want to omit |
manual/cli.rst
| @@ -1779,7 +1779,8 @@ Related Options | @@ -1779,7 +1779,8 @@ Related Options | ||
| 1779 | 1779 | ||
| 1780 | Exclude page labels (explicit page numbers) from the output file. | 1780 | Exclude page labels (explicit page numbers) from the output file. |
| 1781 | 1781 | ||
| 1782 | - Exclude page labels (explicit page numbers) from the output file. | 1782 | + Exclude page labels (explicit page numbers) from the output file by |
| 1783 | + omitting the ``/PageLabels`` dictionary in the document catalog. | ||
| 1783 | See also :qpdf:ref:`--set-page-labels`. | 1784 | See also :qpdf:ref:`--set-page-labels`. |
| 1784 | 1785 | ||
| 1785 | .. qpdf:option:: --set-page-labels label-spec ... -- | 1786 | .. qpdf:option:: --set-page-labels label-spec ... -- |
| @@ -1805,9 +1806,18 @@ Related Options | @@ -1805,9 +1806,18 @@ Related Options | ||
| 1805 | - r: Lower-case Roman numerals | 1806 | - r: Lower-case Roman numerals |
| 1806 | - omitted: the page number does not appear, though the prefix, | 1807 | - omitted: the page number does not appear, though the prefix, |
| 1807 | if specified will still appear | 1808 | if specified will still appear |
| 1809 | + - "start" must be a number >= 1 | ||
| 1808 | - "prefix"` may be any string and is prepended to each page | 1810 | - "prefix"` may be any string and is prepended to each page |
| 1809 | label | 1811 | label |
| 1810 | 1812 | ||
| 1813 | + The first label spec must have a first-page value of 1, | ||
| 1814 | + indicating the first page of the document. If multiple page | ||
| 1815 | + label specs are specified, they must be given in increasing | ||
| 1816 | + order. | ||
| 1817 | + | ||
| 1818 | + If multiple page label specs are specified, they must be given | ||
| 1819 | + in increasing order. | ||
| 1820 | + | ||
| 1811 | A given page label spec causes pages to be numbered according to | 1821 | A given page label spec causes pages to be numbered according to |
| 1812 | that scheme starting with first-page and continuing until the | 1822 | that scheme starting with first-page and continuing until the |
| 1813 | next label spec or the end of the document. If you want to omit | 1823 | next label spec or the end of the document. If you want to omit |
| @@ -1819,8 +1829,9 @@ Related Options | @@ -1819,8 +1829,9 @@ Related Options | ||
| 1819 | 1 and continuing sequentially until the end of the document. For | 1829 | 1 and continuing sequentially until the end of the document. For |
| 1820 | additional examples, please consult the manual. | 1830 | additional examples, please consult the manual. |
| 1821 | 1831 | ||
| 1822 | - Set page labels (explicit page numbers) for the entire file. A PDF | ||
| 1823 | - file's pages can be explicitly numbered using page labels. Page | 1832 | + Set page labels (explicit page numbers) for the entire file. This |
| 1833 | + generates a ``/PageLabels`` dictionary in the document catalog. A | ||
| 1834 | + PDF file's pages can be explicitly numbered using page labels. Page | ||
| 1824 | labels in a PDF file have an optional type (Arabic numerals, | 1835 | labels in a PDF file have an optional type (Arabic numerals, |
| 1825 | upper/lower-case alphabetic characters, upper/lower-case Roman | 1836 | upper/lower-case alphabetic characters, upper/lower-case Roman |
| 1826 | numerals), an optional prefix, and an optional starting value, | 1837 | numerals), an optional prefix, and an optional starting value, |
| @@ -1850,16 +1861,22 @@ Related Options | @@ -1850,16 +1861,22 @@ Related Options | ||
| 1850 | - omitted: the page number does not appear, though the prefix, if | 1861 | - omitted: the page number does not appear, though the prefix, if |
| 1851 | specified will still appear | 1862 | specified will still appear |
| 1852 | 1863 | ||
| 1864 | + - :samp:`{start}` must be a number ≥ 1 | ||
| 1865 | + | ||
| 1853 | - :samp:`{prefix}` may be any string and is prepended to each page | 1866 | - :samp:`{prefix}` may be any string and is prepended to each page |
| 1854 | label | 1867 | label |
| 1855 | 1868 | ||
| 1869 | + The first label spec must have a :samp:`{first-page}` value of | ||
| 1870 | + ``1``, indicating the first page of the document. If multiple page | ||
| 1871 | + label specs are specified, they must be given in increasing order. | ||
| 1872 | + | ||
| 1856 | A given page label spec causes pages to be numbered according to | 1873 | A given page label spec causes pages to be numbered according to |
| 1857 | that scheme starting with :samp:`{first-page}` and continuing until | 1874 | that scheme starting with :samp:`{first-page}` and continuing until |
| 1858 | the next label spec or the end of the document. If you want to omit | 1875 | the next label spec or the end of the document. If you want to omit |
| 1859 | numbering starting at a certain page, you can use | 1876 | numbering starting at a certain page, you can use |
| 1860 | :samp:`{first-page}:` as the spec. | 1877 | :samp:`{first-page}:` as the spec. |
| 1861 | 1878 | ||
| 1862 | - Here are some example page labeling schemes. First these examples, | 1879 | + Here are some example page labeling schemes. For these examples, |
| 1863 | assume a 50-page document. | 1880 | assume a 50-page document. |
| 1864 | 1881 | ||
| 1865 | - ``1:a 5:D`` | 1882 | - ``1:a 5:D`` |
manual/qpdf.1
| @@ -558,9 +558,19 @@ page | @@ -558,9 +558,19 @@ page | ||
| 558 | - omitted: the page number does not appear, though the prefix, | 558 | - omitted: the page number does not appear, though the prefix, |
| 559 | if specified will still appear | 559 | if specified will still appear |
| 560 | .IP \[bu] | 560 | .IP \[bu] |
| 561 | +"start" must be a number >= 1 | ||
| 562 | +.IP \[bu] | ||
| 561 | "prefix"` may be any string and is prepended to each page | 563 | "prefix"` may be any string and is prepended to each page |
| 562 | label | 564 | label |
| 563 | 565 | ||
| 566 | +The first label spec must have a first-page value of 1, | ||
| 567 | +indicating the first page of the document. If multiple page | ||
| 568 | +label specs are specified, they must be given in increasing | ||
| 569 | +order. | ||
| 570 | + | ||
| 571 | +If multiple page label specs are specified, they must be given | ||
| 572 | +in increasing order. | ||
| 573 | + | ||
| 564 | A given page label spec causes pages to be numbered according to | 574 | A given page label spec causes pages to be numbered according to |
| 565 | that scheme starting with first-page and continuing until the | 575 | that scheme starting with first-page and continuing until the |
| 566 | next label spec or the end of the document. If you want to omit | 576 | next label spec or the end of the document. If you want to omit |