From c74acef5395e5706e11f7593766a369e64b111d3 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Fri, 24 Feb 2023 15:56:51 +0000 Subject: [PATCH] Add help text for paper size of PDF output Useful to know if you live in a country which uses A4 paper :-) --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 2368623..c2f457c 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,19 @@ Installing To enable PDF output, install with the PDF extra (installs ReportLab): pip install 'screenplain[PDF]' + + +Using +===== + +Screenplain defaults to using US Letter paper for PDF output. To set a different +paper size, you can adjust the value of `page_size` in `screenplain/export/pdf.py` + +ReportLab supports many common paper sizes in its [pagesizes module](https://pyng.tech/docs/reportlab/lib/pagesizes.m.html). +For example, to use A4 paper set the value of `page_size` like this: + + page_size=pagesizes.A4, + Credits =======