Forums

Converting .xlsx file to .pdf

Hi all, I am using openpyxl to create a .xlsx file. What I want is to convert that file into a pdf so that my users can download it in pdf format, similar to how one would Save as PDF on Microsoft Excel. I am at my wits end at how do this and would appreciate any help.

You can use reportlab

See quick tutorial here: https://realpython.com/creating-modifying-pdf/#creating-a-pdf-file-from-scratch

Thanks, it isn't exactly what I was looking for but I'll have to work with it!