Skip to content

Commit c664493

Browse files
authored
Update StatamicEntryExportPdf.php
1 parent 2e49fdc commit c664493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Actions/StatamicEntryExportPdf.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,19 @@ public function run($items, $values)
6666
});
6767
});
6868

69-
7069
if ($firstEntry instanceof Entry) {
7170
$pdf = Pdf::loadView('statamic-entry-export-pdf::pdf', [
7271
'collection' => $firstEntry->collection,
7372
'entries' => $entries,
7473
]);
74+
$pdf->setOptions(['isHtml5ParserEnabled', true]);
7575
return $pdf->download('export_' . $firstEntry->collection->handle . '_' . date('Y_m_d_H:i') . '.pdf');
7676
} else if ($firstEntry instanceof Submission) {
7777
$pdf = Pdf::loadView('statamic-entry-export-pdf::pdf', [
7878
'collection' => $firstEntry->form,
7979
'entries' => $entries,
8080
]);
81+
$pdf->setOptions(['isHtml5ParserEnabled', true]);
8182
return $pdf->download('export_' . $firstEntry->form->handle . '_' . date('Y_m_d_H:i') . '.pdf');
8283
}
8384
}

0 commit comments

Comments
 (0)