How to convert excel sheet to PDF in Python

I’m new to coding. I have a excel file with number of sheets. I want to convert each excel sheet to separate PDF file (sheet1–>PDF1 ,sheet2–>PDF2 , so on.) How can I achieve this using python coding.I’m using python 3.6 version.

Thank you.

1 Like

Hi @dhanushreeks,

Have you tried searching online for an answer already? A number of other people have written about converting Excel files to PDF. This looks helpful:

1 Like

Hi @zystvan,

The link you have shared will only work windows os. It will not work on linux machine.
I’m also looking for the same:

  1. Convert from xls file to images
  2. Convert from xls file to pdf without disturbing the content of pdf file.

@microplayer57317 For #1, this guide may be helpful: There’s likely a similar method using LibreOffice if you’re on Linux.

Regarding #2, if LibreOffice doesn’t have a way to export a .xls to PDF, it looks like there may be some online services that do what you’re looking for: