I am trying to save the LaTeX code needed for generating some document in the document itself as metadata. So far I found the command to set the pdf metadata using the hyperref package but now I am stuck....
This clearly does not work..
% file.tex
\documentclass[a4paper,10pt]{report}
\usepackage{hyperref,listings}
\hypersetup{
pdfauthor=myself,
pdftitle=Title,
pdfsubject={\lstinputlisting{file.tex}}
}
\begin{document}
Hello world
\end{document}
embedfileorattachfile. – Bordaigorl Sep 25 '13 at 15:05LaTeX... not so fast... – Red Sep 25 '13 at 15:09