diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-07-05 17:20:12 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-07-05 17:20:12 +0100 |
| commit | 4cb3af830a9c9e0612cd48feaec44490c345d5a3 (patch) | |
| tree | 88543f97d2af6f94ba003000881cc0b6fcdf3395 /pyproject.toml | |
| parent | Give the temporary directory a prefix (diff) | |
| download | paper2remarkable-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.toml | 1 |
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] |
