I have a .pdf that contains alot of forms that i dont want the user to be able to edit.
Have tried CAM::PDF
but i cant manage to load my pdf file into this. I only get a page with checkboxes but no text
This is how the pdf is supposed to look like:
This is how the file looks like from CAM::PDF
Does anyone know what i'm doing wrong? If i remove the setPrefs line i get the rigth pdf put without the settings i want.
Sample of code:
my $file = CAM::PDF->new($pdf_file_path);
$file->sefPrefs('', '', 1, 0, 1, 0);
$file->output('C:\temp\campdf.pdf');
$file->save();
EDIT: used pdftk, this had an option to flatten the pdf and made my pdf not editable.
If you want read only try this.