Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get latex code out of a PDF file [closed]

I have a CV in PDF format which is to be converted to LaTeX code. Is there a way to 'reverse engineer' the PDF so that I can get the latex code?

like image 686
şaloma Avatar asked Jun 29 '10 19:06

şaloma


People also ask

Can I get LaTeX code from PDF?

Our PDF to LaTeX conversion toolsUse Snip to digitize all your PDFs and read them on any device. You can also create editable documents and export them to LaTeX and other useful formats like DOCX, Markdown, and HTML.

How do I edit a PDF in LaTeX?

Use a document processor that works with LaTeX files LyX is an open source document processor that allows you to edit LaTeX with “track changes”. To use LyX, you first have to install it on your computer and import the LaTeX file. Then, send your freelance editor the manuscript as a LyX file.

How do you check if a PDF is made in LaTeX?

You can also just open the PDF in a text viewer, e.g. Notepad++, and then search for latex . You will see something like /Author()/Title()/Subject()/Creator(LaTeX with hyperref)/Producer(pdfTeX-1.40. 19)/Keywords() .


2 Answers

Just like you can automatically reverse engineer C code (though not very readable and with certain limitations) from a compiled exe you should be able to reverse engineer the LaTeX code from a compiled PDF. There just don't seem to be any tools around that even attempt this. This would sure be an interesting thing to implement.

There's some research going on in that area: http://www.fi.muni.cz/~sojka/dml-2011-baker-sexton-sorge.pdf

like image 164
masterxilo Avatar answered Oct 22 '22 17:10

masterxilo


Short answer: No

Slightly longer answer:

You may get the plain text back but you can't restore the original latex source.

You may be able to import PDF into a word processor and export LaTeX from it (Either AbiWord of KOffice can do that, if I remember correctly), but the result will not be pretty. This won't get you the original LaTeX, but a very poor approximation. I think recreating the CV from scratch in LaTeX will be easier.

like image 45
Mad Scientist Avatar answered Oct 22 '22 15:10

Mad Scientist