Commit 1e4c1be267f579477457239ff2f8ef8e0be45248
1 parent
9e00be7f
TODO: notes about document-level work
Showing
1 changed file
with
36 additions
and
0 deletions
TODO
| 1 | +Document-level work | |
| 2 | +=================== | |
| 3 | + | |
| 4 | +* See also issues tagged with "pages" | |
| 5 | + | |
| 6 | +* There is going to be a lot of duplicated code for doc-level stuff | |
| 7 | + between pages and split pages. That should be refactored. Perhaps | |
| 8 | + some kind of general method should be added to | |
| 9 | + QPDFPageDocumentHelper for copying a page from one file to another | |
| 10 | + and preserving document-level features. I will need to think about | |
| 11 | + how to make it efficient for bulk operations. Probably making it | |
| 12 | + work from qpdf.cc will be sufficient. I also need to think about how | |
| 13 | + to selectively turn on or off specific document-level features, | |
| 14 | + perhaps using flags or something. | |
| 15 | + | |
| 16 | +* Add flags to CLI to select which document-level options to | |
| 17 | + preserve or not preserve. We will probably need a pair of mutually | |
| 18 | + exclusive, repeatable options with a way to specify all, none, only | |
| 19 | + {x,y}, or all but {x,y}. | |
| 20 | + | |
| 21 | +* If a page contains a reference a file attachment annotation, when | |
| 22 | + that page is copied, if the file attachment appears in the top-level | |
| 23 | + EmbeddedFiles tree, that entry should be preserved in the | |
| 24 | + destination file. Otherwise, we probably will require the use of | |
| 25 | + --copy-attachments-from to preserve these. What will the strategy be | |
| 26 | + for deduplicating in the automatic case? | |
| 27 | + | |
| 28 | +* When I get to tagged PDF, note that the presence of /Artifact and | |
| 29 | + /Standard (and maybe others?) causes a false positive on detection | |
| 30 | + of unresolved names. Example: form-fields-and-annotations.pdf. This | |
| 31 | + used to give a warning (never in a released version), but the | |
| 32 | + warning was removed. See comments about tagged pdf in | |
| 33 | + QPDFPageObjectHelper::removeUnreferencedResourcesHelper. Another | |
| 34 | + potential solution is to recognize names that refer to fonts and | |
| 35 | + xobjects but only looking at names used with Tf and Do operators. | |
| 36 | + | |
| 1 | 37 | Fuzz Errors |
| 2 | 38 | =========== |
| 3 | 39 | ... | ... |