Linux Lite Forums

General => Off Topic => Topic started by: Sprintrdriver on July 16, 2019, 10:59:23 AM

Title: Which tool to encrypt existing PDF file [solved]
Post by: Sprintrdriver on July 16, 2019, 10:59:23 AM
Hi.
Does anyone know a tool to put encrypt/putting passwords on existing PDF files? Both gui tool and non-gui tool work for me.
Normally my PDF files is generated either by the built-in pdf printer in Linux, or by export from Inkscape (https://inkscape.org/).
Title: Re: Which tool to encrypt existing PDF file [solved]
Post by: Jerry on July 16, 2019, 11:07:47 AM
File encryption guide in Help Manual.

Sent from my Phone using Tapatalk

Title: Re: Which tool to encrypt existing PDF file [solved]
Post by: torreydale on July 16, 2019, 11:08:24 AM
Go to the Help Manual (Menu, Favorites, Help Manual).  From the left hand panel, click on Software.  And then select File Encryption.
Title: Re: Which tool to encrypt existing PDF file [solved]
Post by: Sprintrdriver on July 16, 2019, 05:59:27 PM
Thank you for answering.
I see that I haven't being specific in my question, so I need to elaborate.
This PDF files I mentioned, I opt to send them by mail to other people that only do windows. Also I prefer to encrypt the pdf file itself (opposed to zip it) just because it's less chance that the file will be laying around in an unencrypted state on somebody's windows computer.That is - I assume for a zip-package, it's pretty normal that the casual receiver just unpack it, leaving the unencrypted file to their own companys file server for anyone to read.

So my goal is to try to prevent other people on the receiver end full access to the file.
Title: Re: Which tool to encrypt existing PDF file [solved]
Post by: Oobuntus on July 16, 2019, 07:34:36 PM
This might work for you:

1. Open the PDF file with LibreOffice Writer
2. Click File, Export as PDF...
3. Click on the 'Security' tab
4. Click on 'Set Passwords...'
5. Enter password(s)
6. Click OK and Export

Works for me.

Title: Re: Which tool to encrypt existing PDF file [solved]
Post by: Moltke on July 17, 2019, 01:21:30 AM
Hi.
Does anyone know a tool to put encrypt/putting passwords on existing PDF files? Both gui tool and non-gui tool work for me.
Normally my PDF files is generated either by the built-in pdf printer in Linux, or by export from Inkscape (https://inkscape.org/).

Hi @Sprintrdriver  In LL you have two methods at your disposal:
1.- You can use LibreOffice for this; In LibreOffice, click on file menu and open  the pdf file you want to encrypt, again,  from file menu choose “Export as PDF” option and navigate to the “Security” tab. There you will find the “Set Passwords” buttons that will let you set a password for opening the file, or/and a password for editing permission. After setting the passwords, you can click the “Export” button and you are done.
2. - You can use gpg tool.
Code: [Select]
gpg -c some file.pdf you'll be asked to type a password, type it in and hit enter. confirm the password, hit enter again and that's it. For decrypting the file you do
Code: [Select]
gpg some file.pdf.gpg if by any chance, the original file is in the same folder you'll have to remove it before decrypting.

Hope this helps! :)
Title: Re: Which tool to encrypt existing PDF file [solved]
Post by: Sprintrdriver on July 17, 2019, 12:36:37 PM
Thank you very much for this lesson - I didn't know Libre Office was able to actually open PDF files. This solves the problem for me now. At least I have tested a very simple PDF file that was exported by Inkscape, and it worked very well.
Also thank you providing lesson for the gpg command. It sure works, but I doubt a windows user ever will be able to open it  :-X ;D
Btw "molte" is the local term for cloudberrys at here, very good taste (until I spotted the "k" in the middle of the word)  :D
Title: Re: Which tool to encrypt existing PDF file [solved]
Post by: torreydale on July 17, 2019, 01:44:36 PM
@Sprintrdriver ,


I don't think you properly marked this thread as solved .  It looks like you just amended the subject line as solved.  For guidance on marking it solved properly, please revisit the forum posting guidelines at https://www.linuxliteos.com/forums/introductions/forum-posting-guidelines/msg78/#msg78.