Skip to content

Instantly share code, notes, and snippets.

View karlomikus's full-sized avatar

Karlo Mikus karlomikus

View GitHub Profile
@karlomikus
karlomikus / index.php
Created March 9, 2022 14:14
PDF Compare with PHP and ImageMagick
<?php
declare(strict_types=1);
$controlDocument = new Imagick();
$compareDocument = new Imagick();
// Optionally control the fuzz distance
// $controlDocument->setOption('fuzz', '2%');