Skip to content

Commit

Permalink
Fix: image path when extracting full-page pixmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Apr 6, 2023
1 parent ee4311a commit e056cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ingestors/support/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def pdf_extract_page(self, pdf_doc: fitz.Document, page: fitz.Page, page_number:
# Extract images from PDF and store them on the disk
extracted_images = []
if type3_fonts:
filename = f"page-{page.number}.png"
filename = image_dir / f"page-{page.number}.png"
image = page.get_pixmap(dpi=300).save(filename)
extracted_images.append(filename)
else:
Expand Down

0 comments on commit e056cf5

Please sign in to comment.