-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude regions from diff #15
Comments
Hi @maiers, one of the simplest solutions that I can see is to provide an option to define a rectangle that will always be of some solid color, but is it really needed? I initially created this lib to be able to test that some generated documents from templates don't get accidentally changed. For that reason I am able for my own use cases to use data that is not changing. What is your particular use case? |
We generate a pdf report with the current date in the footer. While we could potentially fix the date for the tests, it would be nice to minimize interfering with the system under test. |
So would a solid rectangle defined by
Where coordinates will depend on the pdf at hand. Pdfs are converted to images using 300dpi. Some trial and errors might be needed to pinpoint the date. |
I believe this would be a sufficiently flexible solution. |
Good. I will add it over the weekend. |
@maiers, I have released new version with possibility to mask regions. Please check it out. Options changed a bit to:
example:
Many rectangle regions could be passed in. |
Closing. Feel free to reopen. |
It would be interesting to be able to exclude specific regions (containing for example the print date) from the diff. Would this be possible any way?
(Anyway it's a nice tool)
The text was updated successfully, but these errors were encountered: