Skip to content

Commit

Permalink
[ci skip] address black complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Oct 12, 2022
1 parent 26797f1 commit a75c046
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions doctr/io/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,5 @@ def read_pdf(

# Rasterise pages to numpy ndarrays with pypdfium2
pdf = pdfium.PdfDocument(file, password=password)
renderer = pdf.render_to(
pdfium.BitmapConv.numpy_ndarray,
scale=scale,
rev_byteorder=rgb_mode,
**kwargs
)
renderer = pdf.render_to(pdfium.BitmapConv.numpy_ndarray, scale=scale, rev_byteorder=rgb_mode, **kwargs)
return [img for img, _ in renderer]

0 comments on commit a75c046

Please sign in to comment.