Skip to content

Commit

Permalink
Require no codec on text output
Browse files Browse the repository at this point in the history
  • Loading branch information
pietermarsman committed Jan 1, 2024
1 parent aa91f58 commit 1db89c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdfminer/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def __init__(
if self.outfp_binary and not self.codec:
raise ValueError("Codec is required for a binary I/O output")
if not self.outfp_binary and self.codec:
raise ValueError("Codec is not required for a text I/O output")
raise ValueError("Codec must not be specified for a text I/O output")

if text_colors is None:
text_colors = {"char": "black"}
Expand Down

0 comments on commit 1db89c3

Please sign in to comment.