我有一份主文档,其中嵌入了几个 pdf 文件,我需要这些文件来提交我的签证申请。大多数 pdf 都是扫描页面,页码打印在一些无法正确读取的图形或文本上。我想要的是仅在页码后面有一个彩色背景(如突出显示)。可以吗?
\documentclass{article}
\usepackage{pdfpages, xcolor, etoolbox}
\usepackage[utf8]{inputenc}
%\makeatletter
% patch the "plain" page style
%\patchcmd{\ps@plain}{\thepage}{\textcolor{red}{\thepage}}{}{}
%\usepackage{sectsty}
%\allsectionsfont{\color{blue}\underline}
%\sectionfont{\color{blue}\itshape\selectfont}
%\subsectionfont{\color{blue}\itshape\selectfont}
%\usepackage[pagestyles]{titlesec}
%\newpagestyle{main}[\small]{
%\setheadrule{.55pt}%
%\sethead[\colorbox{black}{\color{white}{\thepage}}]% even-left
%[\chaptertitle]% even-center
%[\colorbox{CornflowerBlue}{\thesection}]% even-right
%{\colorbox{CornflowerBlue}{\thesection}}% odd-left
%{\sectiontitle}% odd-center
%{\colorbox{black}{\color{red}{\thepage}}}% odd-right
%\pagestyle{main}
\begin{document}
\tableofcontents
\newpage
\section{Letters of Recommendation}
\newpage
\subsection{first_letter}
\includepdf[pages=-, pagecommand={}]{Letters/first_letter.pdf}
%blah, blah, blah, many more pages.
\end{document}
``