-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
256 additions
and
36 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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