如何在LibreOffice中使用所有者和用户密码保护文档和PDF文件

00_lead_image_password_on_pdf_file

There are two ways to protect a PDF file: an owner password and a user password. We’ll explain the purpose of each and show you how to apply them to your PDF files.

有两种保护PDF文件的方法:所有者密码和用户密码。 我们将解释每个文件的目的,并向您展示如何将它们应用于PDF文件。

The Owner, or Permissions, password allows you to apply permissions to a PDF file. For example, if you don’t want to allow a PDF file to be printed, or pages to be extracted, you can choose what you want to allow and not allow and apply an owner password to the PDF file. The Owner password may also be called the Master password. It’s what allows you to change those permissions.

所有者或权限密码允许您将权限应用于PDF文件。 例如,如果您不想允许打印PDF文件或提取页面,则可以选择要允许和不允许的内容,并将所有者密码应用于PDF文件。 所有者密码也可以称为主密码。 它是允许您更改那些权限的方法。

The User, or Open, password allows you to require the user to enter a password to even view the PDF. If they don’t enter the right password, the PDF file will not open.

“用户”或“打开”密码允许您要求用户输入密码才能查看PDF。 如果他们没有输入正确的密码,则PDF文件将不会打开。

There are several online services for protecting PDF files, such as PDFProtect, but if you want to add a password to a sensitive document, you probably aren’t comfortable uploading it to a service you don’t know. So, we’ll focus on the best offline option in this guide.

有几种在线保护PDF文件的服务,例如PDFProtect ,但是如果您想向敏感文档添加密码,则可能不愿意将其上传到您不知道的服务。 因此,我们将在本指南中重点介绍最佳的脱机选项。

We’ve covered how to create a password protected PDF file in Microsoft Word, but that only adds a user password. There is no option to add an owner password. We did some research, and found the best option for protecting your PDF files offline is the free office suite LibreOffice. We’ll show you how to protect a Microsoft Word or LibreOffice Writer document with a password and how to create a password protected PDF file from a document.

我们已经介绍了如何在Microsoft Word中创建受密码保护的PDF文件 ,但这仅添加了用户密码。 没有添加所有者密码的选项。 我们进行了一些研究,发现免费的离线办公套件LibreOffice是保护离线PDF文件的最佳选择。 我们将向您展示如何使用密码保护Microsoft Word或LibreOffice Writer文档以及如何从文档创建受密码保护的PDF文件。

NOTE: We use a Word file in our example, but you can do the same thing with LibreOffice Writer documents (.odt files). You can also open PDF files in LibreOffice. They open in LibreOffice Draw, even if you’re in Writer, Calc, or Impress, but the procedure for password protecting them in Draw is the same as in the other LibreOffice programs and is described in the “How to Convert a Document to a Password Protected PDF File” section below. You would be converting an unprotected PDF file to a password protected one.

注意:在示例中,我们使用Word文件,但是您可以对LibreOffice Writer文档(.odt文件)执行相同的操作。 您也可以在LibreOffice中打开PDF文件。 即使您在Writer,Calc或Impress中,它们也会在LibreOffice Draw中打开,但是在Draw中用密码保护它们的过程与其他LibreOffice程序相同,并在“如何将文档转换为受密码保护的PDF文件”部分。 您将把不受保护的PDF文件转换为受密码保护的文件。

如何向文档添加打开密码和权限密码 (How to Add Open and Permissions Passwords to a Document)

Before you begin, download LibreOffice and install it, or you can download the portable version if you would rather not install LibreOffice. Open LibreOffice Writer and then open a Word file. Click the down arrow on the “Save” button on the toolbar and select “Save As” from the drop-down menu.

在开始之前,请下载并安装LibreOffice ,或者,如果您不想安装LibreOffice,则可以下载可移植版本 。 打开LibreOffice Writer,然后打开一个Word文件。 单击工具栏上“保存”按钮上的向下箭头,然后从下拉菜单中选择“另存为”。

00a_selecting_save_as

On the Save As dialog box, navigate to where you want to save the protected document. For our example, we’re going to replace the original document. If you want to save the protected document as a new file, enter a different name for the file in the “File name” box. To password protect the document, check the “Save with password” box. Then, click “Save”.

在“另存为”对话框中,导航到要保存受保护文档的位置。 对于我们的示例,我们将替换原始文档。 如果要将受保护的文档另存为新文件,请在“文件名”框中输入该文件的其他名称。 要使用密码保护文档,请选中“使用密码保存”框。 然后,单击“保存”。

00b_saving_with_a_password

If you’re replacing the original file, the Confirm Save As dialog box displays. Click “Yes” to replace the file.

如果要替换原始文件,将显示“确认另存为”对话框。 单击“是”替换文件。

00c_replace_file

On the Set Password dialog box, you can specify two types of passwords, just like the user and owner passwords for PDF files. To require the user to enter a password to view the document (like the user password), type a password in the “Enter password to open” box and the “Confirm password” box under “File Encryption Password”. If you also want to protect the document against editing (like the owner password), click “Options” in the middle of the dialog box and type a password in the “Enter password to allow editing” box and the “Confirm password” box under File Sharing Password.

在“设置密码”对话框上,可以指定两种类型的密码,就像PDF文件的用户密码和所有者密码一样。 要要求用户输入密码来查看文档(如用户密码),请在“输入密码以打开”框中和“文件加密密码”下的“确认密码”框中键入密码。 如果您还想保护文档免于编辑(例如所有者密码),请单击对话框中间的“选项”,然后在“输入密码以允许编辑”框和“确认密码”框中输入密码文件共享密码。

00d_set_password_dialog_for_document

NOTE: The File Sharing Password only works for LibreOffice Writer documents, not Word documents. If you want to use the File Sharing Password, save your document as a .odt file, which is the first option in the “Save as type” drop-down list on the Save As dialog box pictured above.

注意:文件共享密码仅适用于LibreOffice Writer文档,不适用于Word文档。 如果要使用文件共享密码,请将文档另存为.odt文件,这是上图“另存为”对话框的“另存为类型”下拉列表中的第一个选项。

Entering a password to allow editing automatically causes the document to open in read-only mode. If you want to open the file in read-only mode by default without a password, check the “Open file read-only” box and leave the password boxes under File Sharing Password empty.

输入密码以允许自动编辑会导致文档以只读模式打开。 如果要默认情况下以只读模式打开文件而没有密码,请选中“打开文件只读”框,并将“文件共享密码”下的密码框保留为空。

Click “OK”.

点击“确定”。

If you applied an open password to the document, the next time you open the file, you will be asked to enter the open password.

如果您对文档应用了打开密码,则下次打开文件时,系统会要求您输入打开密码。

00e_entering_password_to_open_file

If your file is a LibreOffice Writer document (.odt) and you assigned a File Sharing Password to it, the document will be opened in read-only mode. To edit the document, click the “Edit Document” button in the yellow bar.

如果您的文件是LibreOffice Writer文档(.odt),并且您为其分配了文件共享密码,则该文档将以只读模式打开。 要编辑文档,请单击黄色栏中的“编辑文档”按钮。

00f_document_open_in_read_only_mode

You will be asked to enter the file sharing password to be able to modify the file.

系统将要求您输入文件共享密码,以便能够修改文件。

00g_entering_password_to_modify

如何将文档转换为受密码保护的PDF文件 (How to Convert a Document to a Password Protected PDF File)

You can also convert a Word document or a LibreOffice document to a password protected PDF file and apply user and owner passwords to it. To do this, open the document and then select “Export as PDF” from the File menu.

您还可以将Word文档或LibreOffice文档转换为受密码保护的PDF文件,并对其应用用户密码和所有者密码。 为此,请打开文档,然后从“文件”菜单中选择“导出为PDF”。

01_selecting_export_as_pdf

On the PDF Options dialog box, click the “Security” tab.

在“ PDF选项”对话框中,单击“安全性”选项卡。

02_clicking_security_tab

Under File Encryption and Permission, there is initially “No open password set” (user password) and “No permission password set” (owner password). To set these passwords, click “Set Passwords”.

在“文件加密和权限”下,最初有“未设置开放密码”(用户密码)和“未设置权限密码”(所有者密码)。 要设置这些密码,请单击“设置密码”。

03_clicking_set_passwords

On the Set Passwords dialog box, under Set open password, enter the user password twice that will be required to view the PDF file. Under Set permission password, enter the owner password that will prevent the PDF file from being printed, edited, or having content extracted from it. Click “OK”.

在“设置密码”对话框的“设置打开密码”下,输入两次查看PDF文件所需的用户密码。 在“设置权限密码”下,输入所有者密码,以防止PDF文件被打印,编辑或从中提取内容。 点击“确定”。

NOTE: You don’t have to use both passwords, but we recommend that you do for greater security. A PDF file with only one of the two passwords applied (either one) is not as secure as one with both passwords applied. Planet PDF explains why two passwords are better than one when securing PDF files.

注意:您不必同时使用两个密码,但是我们建议您这样做以提高安全性。 仅使用两个密码之一(一个)的PDF文件不如同时使用两个密码的PDF文件安全。 Planet PDF解释了保护PDF文件时为何两个密码比一个密码更好的原因

04_set_passwords_dialog

You are returned to the PDF Options dialog box and the status of the password(s) you set displays below the Set Passwords button. If you chose to set a permission (owner) password, the options on the right side of the dialog box become active. If you don’t want anyone to print the document or make any kind of changes to the document, select “Not permitted” under Printing and Changes. If you just want to limit the type of printing and changes that can be done, select another option under Printing and Changes. If you don’t want anyone copying content from your PDF file, make sure the “Enable copying of content” box is unchecked. For accessibility purposes, it’s a good idea to leave the “Enable text access for accessibility tools” box checked. Click “Export”.

您将返回到“ PDF选项”对话框,并且所设置的密码状态显示在“设置密码”按钮下方。 如果您选择设置权限(所有者)密码,对话框右侧的选项将变为活动状态。 如果您不希望任何人打印文档或对文档进行任何更改,请在“打印和更改”下选择“不允许”。 如果仅想限制打印类型和可以进行的更改,请在“打印和更改”下选择另一个选项。 如果您不希望任何人从PDF文件复制内容,请确保未选中“启用内容复制”框。 为了实现可访问性,最好选中“为可访问性工具启用文本访问”复选框。 点击“导出”。

05_clicking_export

On the “Export” dialog box, navigate to the folder in which you want to save the password protected PDF file. Enter a name for the file in the “File name” box and click “Save”.

在“导出”对话框上,导航到要保存受密码保护的PDF文件的文件夹。 在“文件名”框中输入文件名,然后单击“保存”。

06_export_dialog

If you assigned an open (user) password to the PDF file, you will be asked for that password the next time you open it.

如果您为PDF文件分配了一个打开(用户)密码,则下次打开该密码时,系统会要求您输入该密码。

07_entering_password

You will see “(SECURED)” to the right of the file name in the title bar, indicating it is an encrypted PDF file.

您会在标题栏中看到文件名右侧的“(已安全)”,表明该文件是加密的PDF文件。

08_secured_on_file

If you applied a permission (owner) password to the PDF file, and chose to not permit printing, you’ll notice the “Print” option is grayed out when you click the “File” tab.

如果您对PDF文件应用了权限(所有者)密码,并且选择了不允许打印,则您会发现单击“文件”选项卡时,“打印”选项显示为灰色。

09_print_command_not_available

The procedures for adding open and permissions passwords to a document and the for converting a document to a password protected PDF file are the same in LibreOffice Calc, Impress, and Draw as well.

LibreOffice Calc,Impress和Draw中,向文档添加打开密码和权限密码以及将文档转换为受密码保护的PDF文件的过程也相同。

翻译自: https://www.howtogeek.com/257571/how-to-protect-documents-and-pdf-files-with-owner-and-user-passwords-in-libreoffice/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值