From 66483a592d4fe0f251569a90e593ce2bfa90cbb2 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 28 Apr 2024 21:55:17 +0300 Subject: [PATCH] renderer: increase the DPI in PDF to PNG conversion --- rendercv/renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rendercv/renderer.py b/rendercv/renderer.py index e356831..dab57d7 100644 --- a/rendercv/renderer.py +++ b/rendercv/renderer.py @@ -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)