6

How can we add security to a PDF file created using LibreOffice?

I want to create PDF files which cannot be edited and that is the reason for asking this question.

7
  • 2
    just the change the file permissions. Jun 22, 2014 at 9:12
  • generally pdf files cannot be edited Jun 22, 2014 at 9:12
  • 9
    @AvinashRaj that will only secure the file locally, i.e. if you send it in e-mail, it loses the "protection".
    – kraxor
    Jun 22, 2014 at 9:19
  • 2
    @AvinashRaj he said "pdf files which cannot be edited". A PDF file with 700 permissions is not "pdf files which cannot be edited". It can be edited.
    – kraxor
    Jun 22, 2014 at 12:04
  • 4
    Nobody pointing out this kind of "protection" is actually useless?
    – o0'.
    Jun 22, 2014 at 21:49

1 Answer 1

14

If you're looking for setting security within the PDF itself, LibreOffice can do so. Use the Export as PDF option from the File menu. The resulting dialog has a tab named 'Security`: 'Export as PDF' dilalog box

For command line conversion, the man page suggest that convert can use the options set in the Writer's Export as PDF dialog. So I suppose you could set it once in an instance of Writer, close it, and then use the --convert-to pdf:writer_pdf_Export option. I think similar filters may be available for Draw and others as well, but I'm not sure. See http://ask.libreoffice.org/en/question/2641/convert-to-command-line-parameter/?answer=6292#post-id-6292 for more information on how to look up filters.

2
  • is there a way to set these permissions using command line tool from libre office along with the convert-to option Jul 7, 2014 at 6:59
  • @deadman The man page suggest that convert can use the options set in the Writer's Export as PDF dialog. So I suppose you could set it once in an instance of Writer, and then use the --convert-to pdf:writer_pdf_Export option. I think similar filters may be available for Draw and others as well, but I'm not sure. See ask.libreoffice.org/en/question/2641/… for more information on how to look up filters.
    – muru
    Jul 7, 2014 at 13:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .