I am using php-pdftk with laravel nova, filling a form after saving a resource. The problem is that the generated filled pdf is still editable.
Is there any way to close that PDF after filling it?
I've read that setting "flatten" property can do that, but it is incompatible with needAppearances(), which is needed for spanish characters
$pdf = new Pdf( storage_path() . '/app/contracts/' . $this->contract_type . '.pdf', [
'command' => 'pdftk',
'useExec' => true
]);
$pdf->fillForm($pdf_content)
->needAppearances();
Thanks!