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?
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.
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.
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() .
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With