diff options
author | Kurt Jung <kurt.w.jung@gmail.com> | 2015-10-10 14:16:23 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2015-10-10 14:16:23 -0400 |
commit | 5847afd8a205853a7effbf749b7a388ae325eb24 (patch) | |
tree | 4842ab4870a4786a3d6d8218e24e71f1978e00dd /fpdf_test.go | |
parent | e924055b983321336e31f556f5235ea79fe72134 (diff) |
Introduce helper functions to set default catalog sort flag and creation date value. Remove regular expression scheme that effectively ignored the embedded creation date when comparing PDFs.
Diffstat (limited to 'fpdf_test.go')
-rw-r--r-- | fpdf_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fpdf_test.go b/fpdf_test.go index 39cebc0..cc0b91c 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -28,6 +28,7 @@ import ( "path/filepath" "strconv" "strings" + "time" "github.com/jung-kurt/gofpdf" "github.com/jung-kurt/gofpdf/internal/example" @@ -35,6 +36,8 @@ import ( func init() { cleanup() + gofpdf.SetDefaultCatalogSort(true) + gofpdf.SetDefaultCreationDate(time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC)) } func cleanup() { |