coolwanglu/pdf2htmlEX ? reverse-engineered prompt

Reverse engineered prompt

Build me a tool that takes a PDF and turns it into HTML while keeping the text, fonts, spacing, and page layout as close to the original as possible.

I want it to work well for things like academic papers, magazines, and documents with formulas, images, bookmarks, and links. The output should be usable in a browser, with an option to generate one single HTML file or a version that loads pages on demand with JavaScript. It should support printing too, and try to keep file size reasonable.

If you need to, look up current docs online for the best way to handle PDF rendering and font extraction. Make it feel polished, and include a simple way to convert a PDF and preview the result.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab