marcdacz / compare-pdf

Standalone node module that compares pdfs
MIT License
62 stars 21 forks source link

Make PDF differences PNG output optional #34

Open sudohalt opened 1 year ago

sudohalt commented 1 year ago

PDFs that have differences when using the byImage comparison will output a PNG into a data folder. The outputting of PNGs should be optional. An example use case is when running tests you only care if two PDFs are identical, and need a true/false response (but don't need the actual differences). Using byBase64 doesn't work because two PDFs can be identical but have different base64 representations (different creation date or file name for example).

marcdacz commented 1 year ago

hey @sudohalt thanks for adding this change. before we merge it, can I ask a quick favour to add a README change as well to ensure people knows about this config? thanks in advance

sudohalt commented 1 year ago

hey @sudohalt thanks for adding this change. before we merge it, can I ask a quick favour to add a README change as well to ensure people knows about this config? thanks in advance

Hey @marcdacz I've updated the README