![对于一些较旧的 pdf,`includepdf` 命令会显示空白页](https://linux22.com/image/461672/%E5%AF%B9%E4%BA%8E%E4%B8%80%E4%BA%9B%E8%BE%83%E6%97%A7%E7%9A%84%20pdf%EF%BC%8C%60includepdf%60%20%E5%91%BD%E4%BB%A4%E4%BC%9A%E6%98%BE%E7%A4%BA%E7%A9%BA%E7%99%BD%E9%A1%B5.png)
我有一个如下所示的 XeTeX 代码,但是对于这个n16.pdf它会呈现空白页。我拥有的大多数 2000 年之前的 pdf 都是如此。
\documentclass[landscape,a4paper]{article}
\usepackage{pdfpages}
\usepackage{pgfmath}
%\usepackage[margin=1cm,showframe]{geometry}% MWE only
\pgfmathsetmacro{\scale}{(\paperheight-2cm)/(\paperwidth-3cm)}% 1cm margin
\pgfmathsetlengthmacro{\delta}{\paperwidth-2cm-2*\scale*(\paperheight-3cm)-4mm}% 4mm fudge factor
\usepackage[footwidth=paper]{scrlayer-scrpage}
\pagestyle{plain}
\usepackage{polyglossia}
\usepackage{fontspec}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont{Arial}
\robustify{\thepage}
\renewcommand{\thepage}{\arabic{page} \ \roman{page}\ \texthebrew{\hebrewnumeral{\value{page}}}}
%\addtocontents{toc}{\protect\renewcommand\thepage{\texthebrew{\protect\hebrewnumeral{1}}}}
%\addcontentsline{toc}{part}{Hebrew something}
\begin{document}
\includepdf[scale=\scale,noautoscale,nup=2x1,pages=1-,delta={\delta} 0pt,offset=0pt -3mm,% offset in reverse order
trim=2.5cm 2.5cm 0.0cm 5.0cm]{n16.pdf}
\end{document}