Skip to content

Commit

Permalink
DOC: Amend robustness documentation (py-pdf#2479)
Browse files Browse the repository at this point in the history
1. Remove mention of the deprecated PdfMerger.
2. Remove reference to the non-existent PdfWriter strict parameter.
  • Loading branch information
j-t-1 authored Feb 27, 2024
1 parent 2b3051b commit abfff1b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/user/robustness.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ that they should fix their stuff.

pypdf gives you the option to be strict or not.

pypdf has three core objects and all of them have a `strict` parameter:
pypdf has two core objects:

* [`PdfReader`](../modules/PdfReader.md)
* [`PdfWriter`](../modules/PdfWriter.md)
* [`PdfMerger`](../modules/PdfMerger.md)

Only the PdfReader has a `strict` parameter, since presumably you do not want
to write a non-conforming PDF.

Choosing `strict=True` means that pypdf will raise an exception if a PDF does
not follow the specification.

Choosing `strict=False` means that pypdf will try to be forgiving and do
something reasonable, but it will log a warning message. It is a best-effort
approach.
approach.

0 comments on commit abfff1b

Please sign in to comment.