# Are there any ways to embed LaTeX source code from a PDF file [duplicate]

I want to the tex files from PDF files. I have the PDF files that I get in Internet and have a lot of mathematics, so I want to convert PDF files into tex files. I researched in these forum, and following links may be related ,but I couldnt understand clearly. Is there some way to embed LaTeX source code in a PDF file? Embed link to an embedded file

Please teach me are there any ways, or teach me how to use.

Thank you.

January,3rd i added. What i want is OCR,not embedded. i want pdf or images to detect the text words into tex.

• you can't extract actual tex code from a pdf file unless the originator has explicitly included it. the first question that you cite tells how to embed such a file, but you want the opposite. – barbara beeton Dec 31 '14 at 13:10
• attachfile package perhaps? – user31729 Dec 31 '14 at 13:13

who use the embedfiles package

\documentclass{article}

\usepackage{graphicx}

\usepackage{embedall}

\begin{document}

test

\end{document}


• I don't see how this could solve the problem. The OP wants to extract the code from the pdf output (to save retyping time, for example). – Sigur Dec 31 '14 at 14:38