3 ms·
me: using python, how can I convert a .txt file to .pdf file? bard: save as. me: thank you. well done.
by stuckkeys 3y ago
me: using python, how can I convert a .txt file to .pdf file?
bard: save as.
me: thank you. well done.
- jpollock 3y agoWhen I use "write a function..." it produces code.
- jiggawatts 3y agoGPT 4 gets this (apparently) correct immediately, recommending the use of reportlab.pdfgen and writing a sample function.
- stuckkeys 3y agoYeah. I do sub for an online class. It is impressive what the gpt4 can do. Too bad it takes forever to get the api for ver.4
- motoboi 3y agoThey probably use gpt to process the applications. What do you think they want? Think about any inovative use of gpt and tell that in your form. Mine got approved really fast. Never implement nothing like what I proposed.
- stuckkeys 3y agoOhhh. interesting. Care to share the secret sauce haha. Not sure if you can even dm on here.
- sp332 3y agoI got two methods in one response, first a walkthrough of installing and using the FPDF library, and then again for PyPDF2. But, the code for FPDF was incorrect, and pypdf2 is so old that even the deprecation warning causes an error. I fed the FPDF error back in and the output was still wrong, but close enough that I could figure out an answer. Not faster than just googling for sample code though.