mirror of
https://github.com/rendercv/rendercv.git
synced 2026-09-21 12:06:43 -04:00
renderer: increase the DPI in PDF to PNG conversion
This commit is contained in:
1 parent
c6d3c333dc
commit
66483a592d
1 file changed
+1
-1
@@ -1007,7 +1007,7 @@ def pdf_to_pngs(pdf_file_path: pathlib.Path) -> list[pathlib.Path]:
|
||||
png_files = []
|
||||
pdf = fitz.open(pdf_file_path) # open the PDF file
|
||||
for page in pdf: # iterate the pages
|
||||
image = page.get_pixmap()
|
||||
image = page.get_pixmap(dpi=300)
|
||||
png_file_path = png_directory / f"{png_file_name}_page{page.number+1}.png"
|
||||
image.save(png_file_path)
|
||||
png_files.append(png_file_path)
|
||||
|
||||
Reference in new issue
Block a user