summaryrefslogtreecommitdiff
path: root/compare.go
AgeCommit message (Collapse)Author
2016-11-12Document the TIFF image functions. Correct related documentation.Kurt
2015-11-08Compare: make `CompareBytes` exported.Jelmer Snoeck
All the "magic" of reference comparison happens within the `CompareBytes` function. Reading a file (with `ioutil.ReadFile`) gives you an array of bytes and gofpdf supports writing to a byte buffer, where we can easily get the bytes from. Exporting `CompareBytes` would make it possible to use this core functionality instead of having to convert the data into `io.Reader`.
2015-10-10Conditionally sort image catalog. Correct small typos.Kurt Jung
2015-10-10Introduce helper functions to set default catalog sort flag and creation ↵Kurt Jung
date value. Remove regular expression scheme that effectively ignored the embedded creation date when comparing PDFs.
2015-10-09Remove some development commentsKurt Jung
2015-10-09Implement PDF comparison with rudimentary byte-difference display. If a ↵Kurt Jung
reference file exists, it will be compared with its associated example file. If the reference file is missing, the associated example file is considered to be without differences. PDF files in any subdirectory named reference are not deleted when the test begins. This commit is broken -- it illustrates how the use of maps for fonts, images and other resources lead to different dictionary tables in the PDF document.