From 7bfd13f0886548dcd9a414c702144429fb117b04 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 26 Nov 2023 11:51:23 +0100 Subject: update commit --- Justfile | 2 +- index.php | 30 ++++++++++++++++++++++++++---- mtg-pdf.php | 2 +- 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/Justfile b/Justfile index b5bb857..9551f3b 100644 --- a/Justfile +++ b/Justfile @@ -1,2 +1,2 @@ generate deck: - DECKLIST="{{deck}}" docker compose run php + DECKLIST="{{deck}}" docker compose run cli diff --git a/index.php b/index.php index 4f403a3..33ccfa2 100644 --- a/index.php +++ b/index.php @@ -6,9 +6,31 @@ if (isset($_POST['decklist'])) { exit; } +$placeholder = << -
- - -
+ + + + + + + + +
+ + +
+ + diff --git a/mtg-pdf.php b/mtg-pdf.php index 9b705b0..087ae9e 100644 --- a/mtg-pdf.php +++ b/mtg-pdf.php @@ -112,7 +112,7 @@ $html = str_replace('{{imgs}}', implode('', $imgs), $template); $request = Gotenberg::chromium('gotenberg:3000') ->paperSize(8.27, 11.7) # A4 - ->margins(0, 0, 0, 0) + ->margins(0.3, 0, 0.3, 0) ->outputFilename(date("Ymd_His")) ->html(Stream::string('index.html', $html)); -- cgit v1.2.3