Skip to content

Commit

Permalink
Merge branch 'main' into slash
Browse files Browse the repository at this point in the history
  • Loading branch information
pubpub-zz authored Feb 27, 2024
2 parents c777d9f + abfff1b commit 7c75ab5
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 7c75ab5

Please sign in to comment.