Gist a3437be5adb89eae6d56a2565ad9ad51
✓ Published0🌍 Public
UUtopiah
Last edited Jan 28, 2022
Created on Jan 28, 2022
This shell script demonstrates how to insert a blank page into a reMarkable tablet PDF file, using the `qpdf` command to split and reassemble pages and `jq` to manipulate the tablet’s JSON metadata. It locates the insertion point from a page title, renumbers all subsequent PDF pages, and shifts the corresponding `.rm` annotation and highlight files to new UUIDs based on the updated `.content` page array. The script relies on `xochitl-data` file paths and handles page-count calculations via `jq`.
AI-generated description