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

Layout breaks if printer can't handle zero margins. #110

Open
MaelwysSC113 opened this issue Apr 17, 2018 · 6 comments
Open

Layout breaks if printer can't handle zero margins. #110

MaelwysSC113 opened this issue Apr 17, 2018 · 6 comments
Labels

Comments

@MaelwysSC113
Copy link

Everything looks fine in the card previewer and the generated page, but whenever you go to print them in your browser they are too wide for the card. Each card will only contain the first 4 stats (STR, DEX, CON, INT) and leave off the last 2 (WIS, CHA).

Editor Preview:
image

Generated Cards Tab:
image

Print Preview (can confirm they they actually print like this):
image

@MaelwysSC113
Copy link
Author

Only workaround I could find is to print to PDF, then open the PDF file and print from there, but then the card backs are out of alignment vertically

@crobi
Copy link
Owner

crobi commented Apr 18, 2018

I can't reproduce this. What is your page size (e.g., A4 or US Letter) in the generator and in the Print Preview?

@MaelwysSC113
Copy link
Author

MaelwysSC113 commented Apr 19, 2018

US Letter, and I'm using Chrome

Here's the input I was using:

subtitle | Medium beast, unaligned
rule
property | AC: | 13 (Natural armor) | Speed: | 40 ft
property | HP: | 11 (2d8+2) | CR: | 1/4 (50 XP)
rule
dndstats | 12 | 15 | 12 | 3 | 12 | 6
rule
property | Skills: | Perception +3, Stealth +4
property | Senses: | Psv Percptn 13
property | Traits: | Keen Hearing & Smell (ADV on WIS checks for hearing/smell), Pack Tactics (ADV on atk roll if ally w/in 5 ft)
fill | 2
section | Actions
description | Bite | Melee Atk: +4 to hit, reach 5 ft, one target. Hit: 2d4+2 (pierce). If the target is a creature, it must make a DC 11 STRsave or be knocked prone

@crobi
Copy link
Owner

crobi commented Apr 20, 2018

Still can't reproduce it. I suspect the reason is that the printer adds margins to the page*, thereby shrinking the content. Can you try changing the page margins in the printer settings?

*The page with the cards is generated such that it exactly fits the paper, and the page margins are set to zero. If the printer refuses to use zero margins, the layout will break.

@MaelwysSC113
Copy link
Author

MaelwysSC113 commented Apr 22, 2018

I may just be being dumb in a way I'm not catching for some reason, but it still happens if I set the margins to "None"

image

@crobi
Copy link
Owner

crobi commented Apr 24, 2018

I have tried to explain it above - your printer probably requires some minimal margins and silently modifies you margin setting, thereby breaking the layout.

I'm not sure how to solve this. For now, printing to PDF and then playing around with print settings when printing the PDF is probably your best option. Note also that regular printers are usually not very precise, the front and back sides may be shifted by 1-2mm even if you get the settings right.

@crobi crobi changed the title "dndstats" does not fit on the 2.5" x 3.5" (Poker) size cards when printing Layout breaks if printer can't handle zero margins. Apr 24, 2018
@crobi crobi added the bug label Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants