- Note taken on [2022-09-18 Sun 23:32]
If new pages are added to PDF before the page annotated in xournalpp, this creates discrepancy as the pages in pdf increase and the annotations remain on the original page no so they do not correspond to new pages. This script can change page no of the page containing annotation and of subsequent pages.
-
CANCELED
Add entry for pg no 103-106 before pg entry 103.- State "CANCELED" from "TODO" [2022-09-18 Sun 23:34]
Not to be done as there will be two entry for same page.
- State "CANCELED" from "TODO" [2022-09-18 Sun 23:34]
-
DONE check the last pg no in the file i.e. pg 498 save it as a variable;
- State "DONE" from "TODO" [2022-09-18 Sun 23:36]
-
TODO Obstacles:
[2/3]
- start changing pg entry 103 to 104 and then do likewise with all subsequent page entries till last page (pg no 498).
- a problem arises as now pg 103 is there twice and both will be changed.
- Append a text sequence to differentiate from previous page entries.
- But how to account for missisng pages?
- Break the file in two, a line before the from page no and add missing pages to file no 1, and join the two files later on.
- start changing pg entry 103 to 104 and then do likewise with all subsequent page entries till last page (pg no 498).
-
TODO Check if everything works and add exit codes and ability to make backups.
-
TODO In case new page no is less than original page no delete pages in the middle first, otherwise there will be 2 pages with the same page.