Someone asks for pages 1–3 of a report, but opening the PDF takes you to a cover. The next page is the contents. In this file, the page with a printed 1 in its footer is the third PDF page. If you extract PDF pages 1–3, you send the cover, the contents, and only the first page that was requested.
Find the first and last pages in the viewer
Open the thumbnails. Locate the first page using its heading and printed number, then locate the last page the same way. Count their positions from the first thumbnail, including covers, unnumbered pages, and blank pages. A viewer can display custom page labels such as i or A-1. For an extraction command that takes page positions, use the thumbnail order.
| PDF position | What appears on the page |
|---|---|
| 1 | Cover |
| 2 | Contents |
| 3 | Overview, footer 1 |
| 4 | Method, footer 2 |
| 5 | Results, footer 3 |
| 6 | Appendix, footer 4 |
Extract by PDF position
In this example the range is 3–5. With qpdf installed, run the following commands from the folder containing report.pdf. The first creates a separate file with those three pages in order. The other two check the output structure and page count.
qpdf --empty --pages report.pdf 3-5 -- excerpt.pdf
qpdf --check excerpt.pdf
qpdf --show-npages excerpt.pdf
Open excerpt.pdf and confirm that the first heading is Overview and the final heading is Results. I tested this on a six-page sample with the layout above. The output contained Overview, Method, and Results in order, with their printed footer numbers and selectable text intact. --empty starts a new document. If the recipient needs the original document’s bookmarks or navigation, check those separately before sending.
Use thumbnails in the browser
Open PDF Fan and choose Extract PDF pages. Select the Overview, Method, and Results thumbnails, then download the excerpt and check both ends of the file. When printed numbers restart partway through a report, identifying the two headings gives you a reliable way to find the pages.
发表评论