From e623ce23fdde2f7912b175c2bb968883ca050278 Mon Sep 17 00:00:00 2001 From: erinn Date: Wed, 18 Dec 2019 12:58:15 -0800 Subject: [PATCH] initial commit --- .gitignore | 2 ++ Readme.md | 7 +++++++ main.go | 1 + 3 files changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index ecdf2d7..375a1bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ vendor .idea +testdata +out.pdf diff --git a/Readme.md b/Readme.md index 4a2588c..789cad4 100644 --- a/Readme.md +++ b/Readme.md @@ -48,3 +48,10 @@ This is designed to work with the CSV files output by Patreon's Benefits Tracker -y float top margin (default 12.7) ``` + +# Known Bugs + +* Text that doesn't fit on one line isn't wrapped. For now, you can manually insert a linebreak in the relevant cell (using Calc or Excel or your preferred spreadsheet editor). +* unitStr doesn't affect fontsize +* In general nothing stops you from setting parameters that don't add up to the page dimensions +* Empty-address detection only works for Patreon CSVs \ No newline at end of file diff --git a/main.go b/main.go index cd3a89c..0b1d224 100644 --- a/main.go +++ b/main.go @@ -77,6 +77,7 @@ func DoTheThing(pdf *gofpdf.Fpdf, data CSV) { } for ; i < data.NumRecords() && data.PatreonEmptyAddress(i); i++ { fmt.Printf("Warning: skipping empty addressee: %s\n", data.GetField(i, "Name")) + fmt.Printf("%v\n", data.Record(i)) } if i >= data.NumRecords() { return