gofpdi
gofpdi copied to clipboard
Not able to compare pdf byte by byte
Steps to check this error:
- I tried generating pdf1 which imports a template pdf. Stored it as reference
- Generated pdf2 same way by importing template
- used referenceCompare() from gofpdf example package, which compares 2 pdf byte by byte
- There are lot of differences in both files.
How should I compare the files for my testing? Note: I generated some simple pdfs from gofpdf that did not involve importing templates. And I was able to compare them successfully.
The issue might be in putImportedObjects.
If you're able to get it to import the same every time, please feel free to submit a pull request.