abdomostafa211/pdf-splitter — reverse-engineered prompt
Reverse engineered prompt
Build me a simple single page PDF splitter that runs completely in the browser. I want to open one HTML file, drop in a PDF or choose it from my computer, enter a start page and end page, then click a button to download a new PDF with just those pages.
Make it feel clean and easy for normal users. Show the PDF name, total page count, and what percent of the file will be included before downloading. Suggest a sensible output filename automatically. Keep a small session history of completed splits so I can see what I already did.
Privacy is important, so don’t upload the PDF anywhere or use a backend. Everything should happen locally in the browser. It should work in Chrome, Firefox, and Edge. Use plain HTML, CSS, and JavaScript in a single file, and use pdf-lib for the PDF handling. Look up current docs online if you need to.
Want more depth? Deep Reverse