Skip to content

Commit ac506d9

Browse files
DOC: Document state of PDF 2.0 support (#3380)
Closes #3375.
1 parent d57627d commit ac506d9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/dev/pdf-format.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ It is recommended to look in the PDF specification for details and clarification
77
* [ISO 32000-1:2008 (PDF 1.7)](https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf)
88
* ISO 32000-2:2020 (PDF 2.0)
99

10+
```{note}
11+
We currently generate files with a header for PDF 1.3 by default. At the same time, we strive
12+
to support the PDF 1.7 specification.
13+
14+
Features specific to PDF 2.0 might be available, but we always ensure that older versions do
15+
not break due to the rather limited general PDF 2.0 support in the wild and to not break for
16+
old PDF files. For this reason, some historical aspects (like insecure encryption algorithms)
17+
are required to be supported, although PDF 2.0 deprecates most of them and allows more secure
18+
variants.
19+
```
20+
1021
Below is only intended to give a very rough overview of the format.
1122

1223
## Overall Structure

docs/user/encryption-decryption.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ writer.encrypt("my-secret-password", algorithm="AES-256")
3131
with open("encrypted-pdf.pdf", "wb") as f:
3232
writer.write(f)
3333
```
34+
3435
The algorithm can be one of `RC4-40`, `RC4-128`, `AES-128`, `AES-256-R5`, `AES-256`.
3536
We recommend using `AES-256-R5`.
3637

0 commit comments

Comments
 (0)