INSANE: Building a PDF Size Reducer with One-Shot LLM Prompts
ugh, this is INSANE
o3-mini (on high reasoning effort) just one-shotted my pain point I had for years:
Sometimes when I need to upload a PDF, my original PDF doesn’t fit the maximum file size. macOS simply doesn’t have a nice way to do it (Preview/Quick Actions don’t work well for me).
So I asked o3-mini to do it:
- Make it work in a web page, no backend needed (it did it flawlessly)
- Add page editor on the left (did it perfectly)
- Add a preview (here I iterated on the UX a bit)
- Add a file size preview (done)
Now I have an HTML page which can do all that available from anywhere: PDF File Converter
That’s it. A few prompts and my years-long annoyance with PDF file sizes is solved. The whole thing runs in the browser, no server needed, files never leave your device, and it just works.
Pretty wild what you can build with LLMs these days.
Try it yourself: Visit the PDF File Converter to compress your own PDFs.