summaryrefslogtreecommitdiff
path: root/contrib/gofpdi
diff options
context:
space:
mode:
authormatthias <matthias@steuerbot.com>2019-08-15 17:55:42 +0200
committermatthias <matthias@steuerbot.com>2019-08-15 17:55:42 +0200
commitdab6c0551d4d91973e1bb91341619885e48797a9 (patch)
tree565b2b4d271bcd1730bdda2f11dfa8e15d8604de /contrib/gofpdi
parentafaa377e877515c31a941b4c88953e20ead17255 (diff)
fix checks
Diffstat (limited to 'contrib/gofpdi')
-rw-r--r--contrib/gofpdi/gofpdi_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/gofpdi/gofpdi_test.go b/contrib/gofpdi/gofpdi_test.go
index 77db338..70ef6cc 100644
--- a/contrib/gofpdi/gofpdi_test.go
+++ b/contrib/gofpdi/gofpdi_test.go
@@ -9,7 +9,7 @@ import (
"testing"
)
-func ExampleGofpdiImporter() {
+func ExampleNewImporter() {
// create new pdf
pdf := gofpdf.New("P", "pt", "A4", "")
@@ -48,11 +48,10 @@ func TestGofpdiConcurrent(t *testing.T) {
go func() {
defer wg.Done()
pdf := gofpdf.New("P", "mm", "A4", "")
+ pdf.AddPage()
rs, _ := getTemplatePdf()
imp := NewImporter()
tpl := imp.ImportPageFromStream(pdf, &rs, 1, "/MediaBox")
- pdf.AddPage()
- tpl = imp.ImportPageFromStream(pdf, &rs, 1, "/MediaBox")
imp.UseImportedTemplate(pdf, tpl, 0, 0, 210.0, 297.0)
// write to bytes buffer
buf := bytes.Buffer{}