From b8bafdc837df7e761bfcbb53e312928bd87c744e Mon Sep 17 00:00:00 2001 From: Lucas Cimon <925560+Lucas-C@users.noreply.github.com> Date: Tue, 10 Dec 2024 22:03:08 +0100 Subject: [PATCH] Documentation on how to render spreadsheets as PDF tables --- .gitattributes | 2 ++ CHANGELOG.md | 1 + docs/RenderingSpreadsheetsAsPDFTables.md | 21 +++++++++++++++++++++ docs/table-from-spreadsheet.png | Bin 0 -> 72847 bytes mkdocs.yml | 3 ++- tutorial/color_srgb.csv | 17 +++++++++++++++++ tutorial/color_srgb.ods | Bin 0 -> 22723 bytes tutorial/color_srgb.xlsx | Bin 0 -> 17081 bytes tutorial/csv2table.py | 17 +++++++++++++++++ tutorial/ods2table.py | 22 ++++++++++++++++++++++ tutorial/xlsx2table.py | 20 ++++++++++++++++++++ 11 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 docs/RenderingSpreadsheetsAsPDFTables.md create mode 100644 docs/table-from-spreadsheet.png create mode 100644 tutorial/color_srgb.csv create mode 100644 tutorial/color_srgb.ods create mode 100644 tutorial/color_srgb.xlsx create mode 100755 tutorial/csv2table.py create mode 100755 tutorial/ods2table.py create mode 100755 tutorial/xlsx2table.py diff --git a/.gitattributes b/.gitattributes index da9b47531..30f8bc4b1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,6 +5,7 @@ *.gz binary *.pdf binary *.p12 binary +*.ods binary *.otf binary *.ttf binary *.TTF binary @@ -13,3 +14,4 @@ *.gif binary *.png binary *.webp binary +*.xlsx binary diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bbf715dc..a8a3a345e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ This can also be enabled programmatically with `warnings.simplefilter('default', * [`FPDF.write_html()`](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.write_html): now parses `
cO9AOFpe$#{C?9wo=>Z(9P^XQAVAF=U)rg_Fp5E~2&CQfaRV Q4?TskIKr?CKf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