Why you can trust ZDNET : ZDNET independently tests and researches products to bring you our best recommendations and advice. When you buy through our links, we may earn a commission. Our process

'ZDNET Recommends': What exactly does it mean?

ZDNET's recommendations are based on many hours of testing, research, and comparison shopping. We gather data from the best available sources, including vendor and retailer listings as well as other relevant and independent reviews sites. And we pore over customer reviews to find out what matters to real people who already own and use the products and services we’re assessing.

When you click through from our site to a retailer and buy a product or service, we may earn affiliate commissions. This helps support our work, but does not affect what we cover or how, and it does not affect the price you pay. Neither ZDNET nor the author are compensated for these independent reviews. Indeed, we follow strict guidelines that ensure our editorial content is never influenced by advertisers.

ZDNET's editorial team writes on behalf of you, our reader. Our goal is to deliver the most accurate information and the most knowledgeable advice possible in order to help you make smarter buying decisions on tech gear and a wide array of products and services. Our editors thoroughly review and fact-check every article to ensure that our content meets the highest standards. If we have made an error or published misleading information, we will correct or clarify the article. If you see inaccuracies in our content, please report the mistake via this form.


How to create a password-protected PDF with LibreOffice

If you want to share a PDF file with other people, but need to protect it from being viewed by unwanted eyes, LibreOffice has a built-in password-protect feature.
Written by Jack Wallen, Contributing Writer
Purple security lock
Andriy Onufriyenko/Getty Images

I regularly have to send sensitive information to clients -- a signed contract, embargoed information, or just about any other type of data that should be for the clients' eyes only. There are times when I need to be able to transmit that information with the assurance that only the intended recipient can open the document.

When such an occasion arises, I usually turn to LibreOffice. With the open-source office suite, I can add information to a document, save it as a PDF, and attach a password to the file such that the only way to open the file is to first type the encryption password.

Also: How to install the latest version of the free LibreOffice office suite on Linux

To double down on security, I'll email the password-protected file to the recipient and then send a separate email with the decryption password. If I were to send the file and the password in one email, all a person would have to do is intercept that one email and they would have everything they need to open it -- and that's not secure.

If this level of protection sounds like something you could use in your life, read on.

How to password-protect a PDF in LibreOffice

What you'll need: To do this, you'll need the LibreOffice office suite installed. I would highly recommend you make sure you're using the newest version of LibreOffice (7.6), so you have all the latest security patches, bug fixes, and new features. You can download and install LibreOffice for Linux, MacOS, and Windows. With that taken care of, let's password-protect a PDF file.

1. Open LibreOffice Writer

I'm going to demonstrate this with the Writer component of LibreOffice. The first thing to do is open Writer. If you're using Linux, you can simply open Writer from your desktop menu. 

Also: How to create a LibreOffice template

If you're using LibreOffice on either MacOS or Windows, you'll need to open the main LibreOffice window and then click File > New > Text Document. If you want to create a PDF from an existing document, open it from the main window or click File > Open or File > Recent Documents.

The LibreOffice File menu.

Create a new document from the LibreOffice main window from the File menu.

Screenshot by Jack Wallen/ZDNET

2. Create your document

Add whatever content you need to the document. If this is a document you want to save on your local drive, make sure to save it before continuing. 

Also: How to customize the LibreOffice UI to best fit your style

Once the document is exactly how you want, you can now export it as a PDF and protect it with a password.

3. Open the Export as PDF window

With the document ready to export, click File > Export As > Export as PDF.

The LibreOffice Export As sub-menu.

Make sure to select Export as PDF and not Export Directly as PDF.

Screenshot by Jack Wallen/ZDNET

4. Add a password

In the resulting pop-up window, click the Security tab and then click Set Passwords. A new pop-up will appear, where you can set either the open or permissions password. 

Also: How to edit a paragraph style in LibreOffice (and why you should)

You want to set a password for opening, so type and verify the password under the Set open password section. Make sure to use a strong and unique password. When you've done that, click OK to save the password. 

The LibreOffice Set Password pop-up.

Make sure you set the open password and not the permissions password.

Screenshot by Jack Wallen/ZDNET

5. Give the PDF a name

When the next pop-up appears, give the PDF a name, select a directory to house the file, and click Export. The PDF will be created and saved to the directory you chose. 

The LibreOffice file export naming window.

Make sure to remember where you save the PDF.

Screenshot by Jack Wallen/ZDNET

You can now send the PDF file to the recipient and let them know the password with a separate email, a text message, or a phone call. Without that password, the file cannot be opened.

Congratulations, you just created your first password-protected PDF file with the free, open-source LibreOffice office suite.

Editorial standards