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
- Your own files: an old computer, a backup, an email with the submission, a co-author.
- The authors: the corresponding author usually has the .tex and is often glad to share it.
- The preprint: many preprint servers keep the LaTeX source the authors uploaded and let you download it beside the PDF.
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 figpdftotext -layoutkeeps the columns and line breaks roughly where they are on the page; without it the text comes out in reading order, which is usually easier to paste into LaTeX.pdfimages -allsaves the pictures embedded in the PDF in their own formats (fig-000.png, fig-001.jpg, …). Charts and drawings made of lines rather than pictures are not extracted: ask the authors for them, or crop that part of the page.- Then start a LaTeX document, paste the text section by section, and retype every equation: extracted text loses fractions, scripts and the meaning of symbols.
- Rebuild the references as a .bib file and cite them with
\cite.
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
- Every equation, symbol by symbol, against the original. A symbol that changed into a similar one (a letter into its calligraphic form, a minus into a dash) still compiles without any warning.
- Every number: in tables, in the text, in equation and figure numbers.
- Every reference: authors, year, title, volume and pages.
- Nothing missing: footnotes, captions, table notes, the appendix.
- Figures: replaced by the original image files where you can get them.
- Hyphenated words joined back together, and no page headers or footers left in the text.
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.
- When it finishes, the paper opens in the editor at
main.tex, compiled. Compare with original, above the compiled PDF, shows your PDF beside it at any time. Your PDF stays in the project asoriginal.pdf. - Figures are shown from your PDF; replace them with your own image files before you submit.
- It takes papers of up to 40 pages, and works best in English. Scanned pages can work, but a poor scan will have more mistakes.
- Photos of pages work the same way: up to 20 photos (JPG, PNG, HEIC or WebP, up to 15 MB each), in page order, with The pages are handwritten ticked if they are. Readings it is unsure of are highlighted in the PDF.
- Your plan includes a number of rebuilds, shown in the upload box. The free plan includes one. A failed rebuild does not count.
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.
Or read the guide first: Help: A PDF, when you have no source.