php-pdftk
php-pdftk copied to clipboard
PDF Overlay
Not sure what's wrong with this but i just followed the docs.
$file_name='original.pdf';
$overlay='overlay.pdf';
$pdf = new \mikehaertl\pdftk\Pdf($file_name);
$result = $pdf->stamp($overlay)
->saveAs('merge.pdf');
if ($result === false) {
$error = $pdf->getError();
}
It does not overlay, no output file created. Any help would be much appreciated.
What about $error? Does it contain something?
sorry took a long time to response.. but no error.. the result = 1.
Hmm, no idea then. I would try on the command line with raw pdftk (without this library at all). Just to find out if it works in principle.