aboutsummaryrefslogtreecommitdiff
path: root/pyproject.toml
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-07-05 17:20:12 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-07-05 17:20:12 +0100
commit4cb3af830a9c9e0612cd48feaec44490c345d5a3 (patch)
tree88543f97d2af6f94ba003000881cc0b6fcdf3395 /pyproject.toml
parentGive the temporary directory a prefix (diff)
downloadpaper2remarkable-4cb3af830a9c9e0612cd48feaec44490c345d5a3.tar.gz
paper2remarkable-4cb3af830a9c9e0612cd48feaec44490c345d5a3.zip
Add our own method for determining the bounding box
I found some pdfs where pdfcrop/ghostscript determined the bounding box incorrectly. With this commit we introduce a simple way to determine the bounding box by finding the smallest rectangle that is completely surrounded by white pixels. This will work well for most PDFs. The centering functionality is also improved, and now correctly centers the PDF on the reMarkable both vertically and horizontally.
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 2c28224..a211300 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -9,6 +9,7 @@ license = "MIT"
python = "^3.5"
bs4 = "^0.0.1"
requests = "^2.21"
+pdfplumber = "^0.5.12"
[tool.poetry.dev-dependencies]