Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recover PDF to LaTeX [closed]

Tags:

I know how make a PDF from LaTeX. Is there a way to extract the LaTeX-code from a PDF I created earlier? How about if someone sends me a PDF and I like the formatting. Can I extract the LaTeX from it?

like image 247
Mawnster Avatar asked Oct 25 '09 04:10

Mawnster


People also ask

Why PDF is not opening in LaTeX?

Go to Acrobat Reader's Edit/Preferences/General and un-check the box at the bottom that says “Enable Protected Mode at startup”. Or use a better PDF viewer such as Sumatra which works well with LaTeX and can synchronise TeX source and PDF.


1 Answers

LaTeX does not have a one-to-one conversion to PDF. With regards to your first question, I believe such a conversion may be technically possible, but I do not believe an application to do so yet exists. Similar to the way assembler can be decompiled back into high level language, there is probably a way to do it. However -- a pdf is allowed to contain all matter of kinds of data -- AutoCAD drawings, JPEG graphics, font files, forms, digital signatures, etc. LaTeX has no idea what these things are. So in answer to the second question is no -- there's not a way to extract equivalent LaTeX from any PDF document.

like image 84
Billy ONeal Avatar answered Sep 23 '22 14:09

Billy ONeal