From 579a57c3eadbb5b1c8bb32171acc90b16cd0d7df Mon Sep 17 00:00:00 2001 From: Ankit Patel Date: Sun, 7 Jan 2024 09:46:50 -0800 Subject: [PATCH] Update overview.md to read pdf as binary --- docs/overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/overview.md b/docs/overview.md index dc7392e..9fb918c 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -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()) ``` @@ -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). \ No newline at end of file +For a more in depth description of every parameters, see the [reference page](./reference.md).