summaryrefslogtreecommitdiff
path: root/internal/example
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2016-08-18 11:53:32 -0400
committerKurt <kurt.w.jung@gmail.com>2016-08-18 11:53:32 -0400
commit157aff3575e05946317098493519bb770b328972 (patch)
tree675c84f2ec31fdab6dc4ced54be388de7a9af29c /internal/example
parent5f4a9bf681f9360dc6485cb34108b7fd0bb43c02 (diff)
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.
Diffstat (limited to 'internal/example')
-rw-r--r--internal/example/example.go1
1 files changed, 1 insertions, 0 deletions
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))
}