Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account for dimensions of background pdf #12

Merged
merged 3 commits into from
Feb 19, 2018

Conversation

florian-wagner
Copy link
Contributor

@florian-wagner florian-wagner commented Feb 12, 2018

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

  • Introduce symlinks instead of copying $ID.pdf to background.pdf, which is more performant for large pdfs (i.e. books).
  • Due to the change from pdftk arguments multibackground to multistamp (which accounts for transparency), the foreground and background were flipped (hardly noticeable due to transparent templates). This is also fixed in this PR.

@florian-wagner
Copy link
Contributor Author

P.S.: This would close #11

@florian-wagner
Copy link
Contributor Author

There was a bug for size correction in multipage PDFs, which has been fixed by 7ae5885

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants