Skip to content

Commit

Permalink
Update overview.md to read pdf as binary
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitpt authored Jan 7, 2024
1 parent a2db903 commit 579a57c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ images = convert_from_path("/home/user/example.pdf")

# OR

with open("/home/user/example.pdf") as pdf:
with open("/home/user/example.pdf","rb") as pdf:
images = convert_from_bytes(pdf.read())
```

Expand All @@ -35,4 +35,4 @@ Got it? Now by default `pdf2image` uses PPM as its file format. While the logic

Supported file formats are jpeg, png, tiff and ppm.

For a more in depth description of every parameters, see the [reference page](./reference.md).
For a more in depth description of every parameters, see the [reference page](./reference.md).

0 comments on commit 579a57c

Please sign in to comment.