evidence-dev / evidence

Business intelligence as code: build fast, interactive data visualizations in pure SQL and markdown
https://evidence.dev
MIT License
3.38k stars 164 forks source link

Configuration to Adjust Margins for PDF #1908

Open mjbloch opened 2 weeks ago

mjbloch commented 2 weeks ago

Feature Description

Would like the ability to set margin configurations for report PDFs to minimize whitespace and better utilize the available space on each page. Could be in the form of actual dimension or percent config, or some type of "wide mode" setting for PDFs.

Goal of Feature

Currently, there is a lot of whitespace in the margins on PDFs. Simultaneously, some reports do not fit on the PDF page horizontally, with tables or charts being cutoff. A configuration to utilize margin whitespace could help to improve PDF layout, reduce data tables being cutoff, and allow for more flexible formatting.

Current Solution / Workarounds

None

Alternatives

More control over component sizing or scaling when sending to PDF could help fit more on one page and prevent issues with tables being cutoff. However, this would still leave a lot of whitespace in the margins that is under-utilized.