- Add a feature to add a Page (or a series of pages) with the table of contents in the beginning.
- write a small script to convert all your xournal files to pdf: xournalpp/xournalpp#681, and then concatenate this alltogether. But this does not seem a good idea: my notes in xopp files do have an index in the beginnning, and this needs to be extrapolated and followed to create an outline following the personalised and written by hand content with
pdftoc.gen - Make the generation of the outline an optional feature
- flag to convert automatically the
xoppfiles encountered in pdf and merge them in the process - If an error is returned because of a pdf file, the tool should collect all errors encountered, and print a the filesystem tree with the faulty entries colored in red and with the error message under them.
- In case of success the app should also remind at the user that the tool to invert the process is
pdf-toc-split(or how is it called) - Add support to treat the
Nameschild of Catalog - Add support to ignore spcific features (non-supported catalog children) input by the user
-
for
pdfunite-treeit would be more optimal to be maybepdfunite3, but this could be ambigous, even if shorter. Otherwise -
for commands create by me would be maybe good if they would be prefixed always with the pronoun
my-. This would make much easier to modify them, and eventually erase them, without risking tomisunderstand them with builtin commands
On a new branch (based on this one) develop this:
- transform the gen_rand_pdf in a more general pdf-util-by-me or some other adapted name, where the generation of random pdfs is a subcommand (update: this idea is not good, there is already a tool called pdfalyzer which can output the whole PDF tree in colors, my tool would just be a toy version of it)
- on this branch you might want to develop a couple of programs more to:
* visualise which children does catalog have. Example: does catalog have the subtree /Names? let us use the cmd line utility to print all those children there
* visualise specific subtree of the PDF document as the command tree does. For example if we would like to visualise the subtree Outlines we would like to see the subtree of all objects Outline with dereferenced locations, title etc.. This might be interesting for the key Pages or similar.
- the programs developed should possibly have most of the running capabilities in `utils.rs`, and use in the bin only the functinos defined in `lib.rs`
With these instrument in place I should be able to tackle my most important challenges:
- debug my program (understanding what is wrong in the way I build the outline)
- Immediately understand which children does catalog have in my notes, or most of them, so to learn which are the most commmon children that my program should be able to treat (as for examplee `/Names`)
How to implement the tests? I need a way to validate the PDFs and also to check what the outline is, but automatically. In which way to do it? I found a series of instrumens and candidates.
-
Validate the pdf:
- pdfinfo
- qpdf
- pdftotext
-
Extract the Outline
- pdftk
- pdfoutliner
Any of these, if added, must be declared as a requirement for the tests on the README.md