Skip to content

Commit 82c35ae

Browse files
committed
Fix cairosvg Path vs. str
1 parent ea67770 commit 82c35ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pdfbaker/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def convert_svg_to_pdf(
207207
else:
208208
try:
209209
with open(svg_path, "rb") as svg_file:
210-
svg2pdf(file_obj=svg_file, write_to=pdf_path)
210+
svg2pdf(file_obj=svg_file, write_to=str(pdf_path))
211211
except Exception as exc:
212212
raise errors.SVGConversionError(svg_path, backend, str(exc)) from exc
213213

0 commit comments

Comments
 (0)