libreoffice -p mytextfile.txt
… works fine and without opening a window (like head-less mode, which is what I want to do), Libreoffice is a very big application to solve such a small task.
Mousepad, gedit and kate don't allow printing from the command line, however.
Does another graphical text-editor allow to do it?
[Edit] Not a duplicate of the "how to print from command-line" question, since I don't want to print from command-line but start a graphical text-editor from command-line with a given text-file name, and then this graphical text-editor prints the given text-file with the editor's set font and page size settings.
Libreoffice does do that but it's a huge application, and I'm looking for a smaller graphical application doing the same.