Planner PDF
This will generate a PDF File that can be used as a planner on the remarkable platform.
It uses the libharu library to generate the PDF and the Date library to perform calendar math.
How to compile
Make sure you have libharu development library installed. Either compiled from source or from your package manager.
sudo apt-get install libhpdf-dev
The libharu github page is at:
https://github.com/libharu/libharu
The date library is part of this repository. It has its own license and is obtained from:
https://github.com/HowardHinnant/date
Compilation
Clone the repository then create a build directory and run cmake followed by make. The below is the default usage.
git clone https://github.com/revelationnow/PlannerPDF.git
cd PlannerPDF
mkdir build
cd build
cmake ..
make create
The make create
command will generate a file called planner.pdf in the build directory which can be used as is. The file size can be large depending for the default settings. The following cmake options are available to modify:
Option | Default Value | Comment
_________________|_____________________|_______________________________________________________________
PDF_FILENAME | planner | The filename used for the generated pdf (no extension)
START_YEAR | 2021 | The starting year for the planner
NUM_YEARS | 5 | The number of years in the planner. Reduce this to reduce size
COMPRESSED_FILE | planner_compressed | The filename of a compressed version of the file
There is a make target called make compress
which will us ghostscript to try to reduce the filesize. For the 5 year planner it can bring the size down from ~43mb to ~19mb.
Below is an example of invoking the build with additional options:
git clone https://github.com/revelationnow/PlannerPDF.git
cd PlannerPDF
mkdir build
cd build
cmake -DNUM_YEARS=1 -DPDF_FILENAME=calendar -DSTART_YEAR=2020 -DCOMPRESSED_FILE=calendar_small ..
make compress
There is additionally a make target to update the samples in the samples directory. To invoke that, use make update_samples
for the default file and make update_compressed_samples
for the compressed file
Usage
To use the PDF copy it to the remarkable device.
The navigation from child page to parent page is done by clicking on the title page.
Clicking on the left or right arrows will allow navigation to previous and next pages for days, months or years.