Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
2  
just the change the file permissions. –  Avinash Raj Jun 22 at 9:12
    
generally pdf files cannot be edited –  agha rehan abbas Jun 22 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 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 at 12:04
4  
Nobody pointing out this kind of "protection" is actually useless? –  Lohoris Jun 22 at 21:49
show 2 more comments

1 Answer 1

up vote 13 down vote accepted

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.

share|improve this answer
    
thankyou verymuch muru –  romaan Jun 22 at 9:30
    
is there a way to set these permissions using command line tool from libre office along with the convert-to option –  deadman Jul 7 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 at 13:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.