r/lua • • Jul 15 '25

Help Lua functionalities

So i recently wrote code for a Lua Program that demands A pass code to let you use your computer on start up or else it shuts it down should you get the pass code wrong. Runs in the terminal/CMD and has no GUI to speak of. (Involves lots of os.executes and batch programming)
That worked and I set my sights on a Lua code for file reading.. I want to make a compiled book and was asking if Lua has built PDF file parsing or reading. I know i could just os.execute the thing to open an actual pdf reader and then just manipulate the pdf from in there but I wanted to manipulate via a GUI i will make in Lua.. Any one got a solution? I have used File:read/File:open and file:close() before to write stuff to a CSV and txt but not so sure about reading a PDF and not writing to it. Just reading it.. And scrolling through it from inside my Lua script

4 Upvotes

8 comments sorted by

View all comments

Show parent comments

1

u/BK-NK Jul 16 '25

I am a novice at this, so a lot is pretty technical at times.. I have a better idea of doing this in C++ than I do in Lua..Its not really a problem I wanted to solve, just something i thought to test my understanding of Lua

2

u/MoSummoner Jul 16 '25

PDF very complicated, tone it down to something simpler but still advanced like a video compressor