From 157aff3575e05946317098493519bb770b328972 Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 18 Aug 2016 11:53:32 -0400 Subject: Allow default compression mode to be set. Go 1.7 introduces a new compression/flate routine that results in different compressed streams than before. Consequently, PDFs generated with go 1.7 are not generally binary-equivalent with those generated with previous versions. Turning off compression for test files removes this variability. However, it does not help with PDFs that contain images. For now, those reference PDFs have been removed to allow tests to proceed. --- internal/example/example.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/example') diff --git a/internal/example/example.go b/internal/example/example.go index 56ffb23..edf2388 100644 --- a/internal/example/example.go +++ b/internal/example/example.go @@ -31,6 +31,7 @@ var gofpdfDir string func init() { setRoot() + gofpdf.SetDefaultCompression(false) gofpdf.SetDefaultCatalogSort(true) gofpdf.SetDefaultCreationDate(time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC)) } -- cgit v1.2.1-24-ge1ad