How to convert a PDF to LaTeX

A PDF holds positioned characters and drawings, not LaTeX, so no free tool turns it back into source: look for the original .tex first, and otherwise extract the text with pdftotext -layout and retype the equations. Manulyx can rebuild a PDF of up to 40 pages as LaTeX that compiles, using an AI model, after you agree to send the PDF to Anthropic; check every equation, number and reference against the original afterwards.

First, look for the source

The original source is always better than anything rebuilt from the PDF: it has the authors' own equations, labels and bibliography.

Convert it yourself with free tools

With poppler's command-line tools (free; in most Linux distributions, and available for Windows and macOS) you can get the text and the pictures out:

pdftotext -layout paper.pdf paper.txt
pdfimages -all paper.pdf fig

A scanned PDF has no text layer at all: pdftotext returns nothing, and the text has to be read from the images by character recognition first.

What to check after converting

How Manulyx does it

If all you have is a PDF, Manulyx can rebuild it as LaTeX with AI. Choose the PDF in New project → Import and tick the box that agrees to send it to Anthropic: nothing is sent until you agree. It usually takes a few minutes, longer for a long paper, and the paper appears on your Projects page. Pick a journal in the same box to have it placed in that journal's template; if that does not build, you get the paper in a plain layout instead.

Measured: on twelve published preprints, one per field and 199 pages in all, compared with their authors' own LaTeX source, the rebuild got 437 of 439 displayed equations right and lost no passage (October 2026). The two it got wrong had one letter turned into a calligraphic one that means something else in that paper, and both compiled without complaint. That is why you must check every equation, number and reference against the original. If you have the Word or LaTeX source, use that instead: those imports do not have this risk.

Questions

Is there a free tool that converts a PDF to LaTeX?

Not to LaTeX that compiles. Free tools such as pdftotext and pdfimages get the text and the embedded pictures out; the equations, tables and references have to be rebuilt by hand.

Does Manulyx send my PDF anywhere?

Only if you agree. Rebuilding a PDF uses an AI model provided by Anthropic, and the PDF is sent only after you tick the box that agrees to it at the upload.

How accurate is the rebuild?

On twelve preprints, 199 pages in all, it got 437 of 439 displayed equations right (October 2026). The two wrong ones still compiled, so check every equation, number and reference against the original.

Can it read photos or handwritten pages?

Yes: up to 20 photos of pages, with The pages are handwritten ticked for handwriting. Flat, sharp, well-lit photos give the fewest mistakes; readings it is unsure of are highlighted.

Other conversions