Q: Is there a good way to make a PDF file non-editable?
A: There are some options here:
- If you want to disable interaction within your app you can prevent to user to interact with the PDF. For example, with the Android PDFNet SDK you can use PDFViewCtrl.setInteractionEnabled(false). This will avoid users to enter new annotations or editing forms.
- There are security flags that other viewers besides ours honor; we let people edit these but don’t observe them ourselves: http://www.pdftron.com/pdfnet/intro.html#pdfdocsecurity
- Alternatively, you can flatten the content. You could use flatten annotations: https://groups.google.com/d/msg/pdfnet-sdk/qimJ1VPVPqI/710n_qv_p8EJ
Note that each application may or may not honor the security flags. Also, opening a flattened document in other viewers will not prevent them to add new content to the document.