reHackable / maxio

Companion daemon for the reMarkableā„¢ paper tablet
GNU Lesser General Public License v3.0
156 stars 53 forks source link

Account for dimensions of background pdf #12

Closed florian-wagner closed 6 years ago

florian-wagner commented 6 years ago

I originally thought it was due to cropping on the reMarkable, but the dimensions of the device simply differ from DIN A4 documents, such that notes on such documents are currently shifted. This PR takes into account the original pdf size and adds a corresponding margin to the right hand side, such that background.pdf and foreground.pdf have the same dimensions and notes are properly aligned.

Note: This is not affected by cropping, yet currently only tested with Din A4 portrait documents

Example

Additional minor changes

florian-wagner commented 6 years ago

P.S.: This would close #11

florian-wagner commented 6 years ago

There was a bug for size correction in multipage PDFs, which has been fixed by https://github.com/reHackable/maxio/pull/12/commits/7ae588580500f0c68716796101feb345fd54c0a0