Post B5w5Jk2tnlGuedhZxI by brettm@swarm.coiloptic.org
(DIR) More posts by brettm@swarm.coiloptic.org
(DIR) Post #B5uFRMza0aO0hIVPJw by brettm@swarm.coiloptic.org
0 likes, 0 repeats
omfg this took so long to find, a simple program to convert a text file to pdf"Converting a given text or a text file to PDF (Portable Document Format) is one of the basic requirements in various projects that we do in real life" yet almost impossible to find a program that will do such a thing. Search engines just give result for stupid online tools or convert from .texi or .tex format or supercomplicated make a bunch of subheadings and put mathematical formulas everywhere etcI DO NOT WANT TO WRITE A FUCKING TEXI FORMAT I DO NOT WANT TO EVEN KNOW WHAT TEXI IS I JUST WANT TO CONVERT TEXT TO PDFso thank you geeksforgeeks!https://www.geeksforgeeks.org/python/convert-text-and-text-file-to-pdf-using-python/
(DIR) Post #B5uPUVvsDyf8pquTvU by jiub@not.an.evilcyberhacker.net
0 likes, 0 repeats
@brettm@swarm.coiloptic.org search sucks so bad now. i feel there's so much llm spam it's harder to find things now than in the altavista erasuper oldschool, but my first thought would be to use a2ps then converted to pdf lol
(DIR) Post #B5uPUWCBFLhreQXVLM by brettm@swarm.coiloptic.org
0 likes, 0 repeats
ohhh i will check it out!
(DIR) Post #B5w5JjqqWZdA3G3xAW by jiub@not.an.evilcyberhacker.net
0 likes, 0 repeats
@brettm@swarm.coiloptic.org i think we were told to use it to make code printouts (with pretty printing) on the solaris 8 boxes in college lolit has a ton of options but i'm guessing it's not hard to disable headers and other features if you don't want them
(DIR) Post #B5w5Jk2tnlGuedhZxI by brettm@swarm.coiloptic.org
0 likes, 0 repeats
yep i did get it to disable headers etc. only downside is no unicode, i do convert some stuff with chinese characters.i did find this https://py-pdf.github.io/fpdf2/index.html which works great 🙂
(DIR) Post #B5w97waDlH8PsduxzU by jiub@not.an.evilcyberhacker.net
0 likes, 0 repeats
@brettm@swarm.coiloptic.org oh wild! can't believe no one updated a2ps to support unicode in the past 20 yearsglad you found something that worked!
(DIR) Post #B5w97x1A96gZECWTz6 by brettm@swarm.coiloptic.org
0 likes, 0 repeats
I have looked quite a few times in the past and always given up, so it feels like quite an accomplishment to finally find something that works!