This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load packages | |
import subprocess | |
from os import listdir | |
# Tested on output from rm v2.4.1.30 | |
# Input: in_file : pdf file from Remarkable | |
# out_name : name of pdf file that will be produced | |
# out_dir : directory in which produced pdf file will be | |
# color_dict : dictionary of colors to use for layers. Keys are integers starting at 1. Colors are RGB (0-255) lists | |
# page_start : which page to start at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################ | |
## | |
## Code | |
## | |
################################ | |
# Load packages | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.patches as patches |