Php – Is it possible to make pdf files content readable but uneditable and secure

pdfPHP

Normally, pdf files can be edited by applications like Adobe Acrobat Writer. And when we open the pdf files in applications like adobe acrobat reader, we can select the contents. I need the codes that can create the pdf file and make it's content uneditable and users can't select the contents.

Please help me out with this.

Best Answer

  1. You can render text and overlay an image. I am not sure whether this will work - viewer applications may allow the text to be selected.
  2. If you render the text as watermark annotations, then that content will not be selectable.
  3. You could encrypt the document and set an empty string as the user password but a full string as the owner password document. This will allow anyone to open the document without entering a password. To prevent content selection, you need to specify deny "content selection" user permission.

Our company Gnostice has PDF components for Java, .NET, and Delphi/C++Builder platforms. All of them can render text and images, create watermark annotations, encrypt PDF document, and also specify usage permissions.