-
Notifications
You must be signed in to change notification settings - Fork 24
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
pdf page size #75
Comments
@martinetd — so sorry for the delay; have been traveling and lost track of things :) This is a great fix and renders more nicely on my device as well; would you be willing to PR this so you can collect the associated internet-points? :) |
martinetd
added a commit
to martinetd/goosepaper
that referenced
this issue
Mar 24, 2023
weasy print's css supports the @page 'size' attribute, allowing us to specify a pdf size different from the default A4 size. The remarkable is 1872 x 1404 pixels, but using that makes fonts too small without further adjusments so setting a page size of half that is easier to use. Having a proper page size, we can re-adjust the margins to better fit the new format. Also made the space between columns in FifthAvenue slightly bigger as a matter of taste. Fixes: j6k4m8#75
j6k4m8
pushed a commit
that referenced
this issue
Mar 24, 2023
weasy print's css supports the @page 'size' attribute, allowing us to specify a pdf size different from the default A4 size. The remarkable is 1872 x 1404 pixels, but using that makes fonts too small without further adjusments so setting a page size of half that is easier to use. Having a proper page size, we can re-adjust the margins to better fit the new format. Also made the space between columns in FifthAvenue slightly bigger as a matter of taste. Fixes: #75
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I've been playing with goosepaper last week, it's great -- fiddling a bit with it to read less on computer in front of kids and it looks like I'll be able to work some nice workflows.
One problem I've run into is page size; I'm not sure how it used to render on older versions but with the latest 3.0 update I find the remarkable is pretty bad at handling A4 pdf (default paper size) -- there's often some text left over at the bottom, requiring to scroll, which is horrible UX.
I'm sure we could muck up with margins, but it's just as simple to get page size right: just add
size: x y;
to the style in@page
you use and it'll come out alright (for the remarkable2, the screen size is supposed to be 188mm by 246mm, with a resolution of 1404 by 1872px (ratio doesn't match, eh).Doing full 1404x1872 px makes the font too small, but I've had good results with
size: 184.5 246mm;
andsize: 702pt 936pt;
(fits more text, mm gets converted to something in the 500s px)I've also made the middle colon slightly wider with
column-gap: 2rem;
in the last.row
of the FifhtAvenue stylesheet.css.Papers with these changes look fairly good for me (also made the header smaller as so much blank space feels weird without weather; it's probably safe to ignore that part; margins are also mostly personal taste and you might be better with the original values this is just an example you'll probably want to fiddle with hence not a PR)
The text was updated successfully, but these errors were encountered: