Skip to content

Commit

Permalink
update version and ignore javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
loeffel-io committed Mar 28, 2020
1 parent 09a2b40 commit 44e2a66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/loeffel-io/mail-downloader

go 1.12
go 1.13

require (
github.com/SebastiaanKlippert/go-wkhtmltopdf v1.5.0
Expand Down
2 changes: 1 addition & 1 deletion mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (mail *mail) generatePdf() ([]byte, error) {
}

page := wkhtmltopdf.NewPageReader(bytes.NewReader(body))
page.LoadMediaErrorHandling.Set("ignore")
page.DisableJavascript.Set(true)
page.Encoding.Set("UTF-8")

pdfg.AddPage(page)
Expand Down

0 comments on commit 44e2a66

Please sign in to comment.