如何将 PDF 中的页面放在目录之前的页面上

如何将 PDF 中的页面放在目录之前的页面上

因此,我正在制作“此”文件,其中没有标题页,即竞赛一表格之前没有页面,因为我已在其他程序中制作了标题页并将其转换为 PDF 格式,并且知道我试图将其放在目录前面,但是为了在那里没有我放置的背景并且没有页码,这是我尝试过的(Pocetna 是那个 PDF 文件,Pozadina 是背景):

\documentclass[a4paper, 12pt]{report}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage[colorlinks=true, allcolors=blue, unicode]{hyperref}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{background}
\usepackage{pdfpages}

backgroundsetup{
scale=1,
angle=0,
opacity=.99,  %% adjust
contents={\includegraphics[width=\paperwidth,height=0.982\paperheight]{Pozadina}}
}
%% ...
\setcounter{page}{0}
\fontencoding{T2A}\selectfont
\thispagestyle{empty}
\clearpage
\includegraphics[width=1\textwidth, height=1\textheight]{Pocetna}
\backgroundsetup{contents={}}
\tableofcontents
\thispagestyle{empty}
\cleardoublepage
%%...
\end{document}

答案1

pdfpages已加载。它可用于从以下位置加载标题页Pozadina.pdf

\begin{document}
  \includepdf{Pozadina}
  \tableofcontents
\end{document}

完整示例:

\documentclass[a4paper, 12pt]{report}
\usepackage{pdfpages}
\begin{document}
  \includepdf{example-image-a}
  \tableofcontents
  \chapter{First chapter}
\end{document}

相关内容