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

Make sure the code really generates the PAGE_SIZE specified. #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ DEPENDENCIES
pry

BUNDLED WITH
1.17.2
2.2.22
4 changes: 2 additions & 2 deletions planner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}

FILE_NAME = "time_block_pages.pdf"
PAGE_SIZE = 'LETTER'
PAGE_SIZE = 'A4'
# Order is top, right, bottom, left
LEFT_PAGE_MARGINS = [36, 72, 36, 36]
RIGHT_PAGE_MARGINS = [36, 36, 36, 72]
Expand Down Expand Up @@ -454,7 +454,7 @@ def weekend_page saturday, sunday
end
end

Prawn::Document.generate(FILE_NAME, margin: RIGHT_PAGE_MARGINS, print_scaling: :none) do
Prawn::Document.generate(FILE_NAME, margin: RIGHT_PAGE_MARGINS, page_size: PAGE_SIZE, print_scaling: :none) do
font_families.update(FONTS)
font(FONTS.keys.first)
stroke_color MEDIUM_COLOR
Expand Down