Search code examples
pythonpdfmoduletext-processingreportlab

generate pdf from text file in python


Is there a solution to create pdf file from txt, maybe in ReportLab? To produce like this

+------+-------+------------+
| Name |  Age  |  Nickname  |
+======+=======+============+
| 107  |  Ella | Fitzgerald |
+------+-------+------------+
| 108  | Louis | Armstrong  |
+------+-------+------------+
| 109  | Miles |   Davis    |
+------+-------+------------+
| 110  | Benny |  Goodman   |
+------+-------+------------+

Thanks.


Solution

  • ReportLab is an option. LaTeX is another option.