You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm merging PDFs with MPDF, but after merging the links stop working. although they still have their blue color.
This doesn't work in pdf.js viewer and neither in the chrome built in viewer so i'm pretty sure this is mpdfs fault. The provided example is as minimal as possible to reproduce this behaviour
mPDF version
8.1 (newly installed)
PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)
php 8.1, macos with nginx
Reproducible PHP CSS HTML snippet suffering by the error
$filePath = 'link to the provided example pdf'
$pdf = new Mpdf([
'mode' => 'UTF-8',
'tempDir' => sys_get_temp_dir(),
]);
$pdf->SetSourceFile($filePath);
$templateId = $pdf->importPage(1);
$pageSize = $pdf->getTemplateSize($templateId);
$pdf->AddPageByArray([
'orientation' => $pageSize['orientation'],
'newformat' => [$pageSize['width'], $pageSize['height']],
]);
$pdf->useTemplate($templateId);
$pdf->Output('title.pdf', 'I');
Guidelines
Description of the bug
I'm merging PDFs with MPDF, but after merging the links stop working. although they still have their blue color.
This doesn't work in pdf.js viewer and neither in the chrome built in viewer so i'm pretty sure this is mpdfs fault. The provided example is as minimal as possible to reproduce this behaviour
mPDF version
8.1 (newly installed)
PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)
php 8.1, macos with nginx
Reproducible PHP CSS HTML snippet suffering by the error
lnkexample.pdf
The text was updated successfully, but these errors were encountered: