transpect/pdf2fxl ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple command line tool that turns a PDF into a fixed layout EPUB3 file, like the one described here.

I want to be able to point it at a PDF, run one command, and get an EPUB out the other end, with an option to just generate the intermediate files too. It should support a debug mode, let me choose the output folder, and handle the PDF to page image and text conversion step well enough to preserve the original layout as closely as possible. If you need to check current setup details or dependency docs online, go ahead.

Please make sure it works with the sample PDF in the repo, and keep the script easy to run from the command line on a normal machine with Java, bash, Poppler, and ImageMagick installed. If there are any obvious missing pieces or broken paths in the project, fix them so the sample conversion succeeds end to end.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab