Age | Commit message (Collapse) | Author |
|
|
|
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`.
|
|
|
|
date value. Remove regular expression scheme that effectively ignored the embedded creation date when comparing PDFs.
|
|
|
|
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.
|