What I need is a table of contents page which shows the title of each pdf file and have a description below in italic and also dots.
this is my code:
Code: Select all
\documentclass{book}
\usepackage{pdfpages}
\usepackage[pdfauthor={<somename>},pdftitle={<sometitle>},pdftex]{hyperref}
\usepackage{fancyhdr}
\usepackage{tocloft}
\usepackage[margin=0.5in,bottom=0.75in,top=0.75in]{geometry}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.4pt}
\fancyhead[L]{X Y Z}
\fancyhead[R]{}
\begin{document}
\tableofcontents
\newpage
\clearpage
\phantomsection
\includepdfset{pages=-,pagecommand=\thispagestyle{fancy}}
\addcontentsline{toc}{chapter}{SAMPLE PDF 1\\ \textit{description}}
\includepdf[pages=-]{template1.pdf}
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{SAMPLE PDF 2\\ \textit{description}}
\includepdf[pages=-]{template2.pdf}
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{SAMPLE PDF 3\\ \textit{description}}
\includepdf[pages=-]{template3.pdf}
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{SAMPLE PDF 4\\ \textit{description}}
\includepdf[pages=-]{template4.pdf}
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{SAMPLE PDF 5\\ \textit{description}}
\includepdf[pages=-]{template5.pdf}
\end{document}
thank you!
