You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Do not return 400 error for encrypted but readable pdfs (#249)
Fixes#236
The `pdf.is_encrypted` check is true for files with edit protections, so
we were returning 400 "This file is encrypted" for files that were
perfectly readable. To verify, run this branch with `make run-web-app`
and submit the pdf in the linked issue.
Other changes:
* Remove filename from some error messages. This can get way too
verbose.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
-
## 0.0.47-dev1
1
+
## 0.0.47
2
2
3
3
***Adds `chunking_strategy` kwarg and associated params** These params allow users to "chunk" elements into larger or smaller `CompositeElement`s
4
4
***Remove `parent_id` from the element metadata**. New metadata fields are causing errors with existing installs. We'll readd this once a fix is widely available.
5
+
***Fix some pdfs incorrectly returning a file is encrypted error**. The `pypdf.is_encrypted` check caused us to return this error even if the file is readable.
0 commit comments