Closed brandit-dev closed 1 year ago
Am I understanding correctly that you want to output a PDF which is not editable in a PDF editor? If so, you would need to render the PDF pages and use the generated images as PDF pages (either in a new PDF or by substituting the contents of the existing pages).
Note that PDF rendering is the one thing HexaPDF is not designed to do! So you will need to use something like pdftocairo
to render the pages.
Alternatively, if you just want to make sure that the receiver of a PDF knows that nothing has been changed, you could digitally sign the PDF. It will still be editable but editing it would void the digital signature.
Hello,
Thanks,
Sergio