I'd like to print a file selected with a file picker (or somehow) with certain extension, so that PyQt or printer will automatically recognize the format (e.g. pdf, ms word, excel, txt, html, jpg etc.) So far, I have found here how to print the content of the TextEdit, but I'd like to print files with various formats. Is it possible with PyQt5 or should I search elsewhere? Continue reading...