Conversion or compilation

PDF to LaTeX and pdfLaTeX solve different tasks

Start with the file you have. A PDF needs reconstruction to become editable source; a LaTeX project needs compilation to produce a PDF.

No credit card needed. For longer PDFs, the first 3 pages are converted so you can check the quality first.

Handwritten notes on the Gaussian integral
The same notes typeset in LaTeX
PDF
LaTeX
Fig. 1 Handwritten notes and the LaTeX rebuilt from them. Drag across the page to compare.
File-based decision

PDF, TeX file or ZIP?

Use the file contents to choose a workflow rather than relying on similar tool names.

Only a PDF

Look for the original project first. If unavailable, reconstruction can create a draft that you review against the PDF.

A .tex file

Identify dependencies in the source. Missing figures or bibliography files may need recovery, but converting an old PDF is not normally the first step.

A project ZIP

Import the archive into Overleaf or inspect it locally. Select the main document, check compiler requirements and keep paths intact.

Overleaf documentation: selecting a LaTeX compiler

Use case

Which direction are you working in?

pdfLaTeX runs the LaTeX format on the pdfTeX engine to compile source into PDF. Use it when you have a .tex file and the packages and assets the project requires.

PDF-to-LaTeX reconstruction starts with rendered pages and aims to create editable source. It cannot reliably recover invisible details such as comments or original macro names.

A project ZIP may already contain the source you need. Inspect it for a main .tex file before using reconstruction. Including an existing PDF page as an image or attachment is also different from recovering its editable text.

Workflow

Choose the next step from your input file

  1. 01

    Check whether you have a PDF, a .tex file or a project archive.

  2. 02

    For source, identify the main file and compiler required by its preamble.

  3. 03

    For a PDF without source, search for an original project before reconstructing it.

  4. 04

    Compile the resulting project and resolve the first meaningful error in the log.

  5. 05

    Compare the rendered PDF with the intended content before submitting.

Benefits

Choose the right starting point

  • Recognize when existing .tex source is already enough.
  • Understand why a compiler cannot extract the original project from PDF.
  • Use reconstruction when editable source is missing.
  • Separate compilation errors from errors in reconstructed content.
Limitations

A compiler is not a content checker

  • Successful compilation does not verify equations, citations or factual accuracy.
  • Some projects require XeLaTeX or LuaLaTeX instead of pdfLaTeX.
  • Reconstruction cannot guarantee original packages or source organization.
  • Including a PDF page does not make its text editable.
FAQ

Common questions

Does pdfLaTeX convert PDF into LaTeX?

No. It compiles LaTeX source into PDF. Reconstruction from rendered pages is a separate task.

Can I run pdfLaTeX on a PDF to recover source?

No. PDF is not a LaTeX input document, and compilation does not reverse rendering.

Do I need a converter when I have main.tex?

Start with that source and its supporting files. Check compilation errors and dependencies before considering reconstruction.

Which compiler should I choose in Overleaf?

Use the compiler required by the project. For example, fontspec requires XeLaTeX or LuaLaTeX. Read the preamble and compile log when unclear.

Can document-to-latex help with only a PDF?

It is designed to reconstruct a reviewable project within published limits. Check generated content and the initial compile before relying on it.

Start with your own document

Convert, compare, then edit

Upload a PDF, inspect the generated LaTeX render beside the original, and review before submitting or sharing the result.