Description: Hi, when I try to open a pdf file which is password protected, I get the following error message 'Version Incompatibility. Incorrect file version'. It seems to open pdf files which are not password protected. So I am using Adobe to open these files for now. Steps to Reproduce: 1.Open the attached pdf file 2. 3. Actual Results: Error message 'Version Incompatibility. Incorrect file version'. Expected Results: Request the password. After input by user of the password, it should open the pdf file. Reproducible: Sometimes User Profile Reset: Yes Additional Info: Version: 7.5.2.2 (X86_64) / LibreOffice Community Build ID: 53bb9681a964705cf672590721dbc85eb4d0c3a2 CPU threads: 2; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: en-ZA (en_ZA); UI: en-US Calc: threaded
Created attachment 186955 [details] Password protected pdf file
Could confirm the buggy behavior with LO 7.5.2.2 on OpenSUSE 15.4 64bit rpm Linux. Note: It is a little bit tricky to download a password protected *.pdf. You have to use right mouse click and then menue → download.
Just for the record, the pdf file you attached uses the algorithm version 4, LO knows only how to deal with algo 1 and 2 so for the moment, your only choice is indeed to use something else than LO to open your pdf file.
Code pointer (for devs): https://opengrok.libreoffice.org/xref/core/sdext/source/pdfimport/pdfparse/pdfentries.cxx?r=f24d38de#1210 pdf specs: https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf " (Optional) A code specifying the algorithm to be used in encrypting and decrypting the document: 0 An algorithm that is undocumented. This value shall not be used. 1 "Algorithm 1: Encryption of data using the RC4 or AES algorithms" in 7.6.2, "General Encryption Algorithm," with an encryption key length of 40 bits; see below. 2 (PDF 1.4) "Algorithm 1: Encryption of data using the RC4 or AES algorithms" in 7.6.2, "General Encryption Algorithm," but permitting encryption key lengths greater than 40 bits. 3 (PDF 1.4) An unpublished algorithm that permits encryption key lengths ranging from 40 to 128 bits. This value shall not appear in a conforming PDF file. 4 (PDF 1.5) The security handler defines the use of encryption and decryption in the document, using the rules specified by the CF, StmF, and StrF entries. The default value if this entry is omitted shall be 0, but when present should be a value of 1 or greater. "
*** Bug 158088 has been marked as a duplicate of this bug. ***
Seeems duplicate. *** This bug has been marked as a duplicate of bug 55425 ***