当将 .pdf 图形与其他被剪辑的图形一起包含时,acroread 中的文件会损坏

当将 .pdf 图形与其他被剪辑的图形一起包含时,acroread 中的文件会损坏

我遇到了一个奇怪的问题,当您包含多个图形文件时,其中一个是未剪辑的 .pdf,而其他的是剪辑的非 pdf。我正在运行 pdflatex,生成的 pdf 已创建,可以在 Evince 中正常打开,但我无法在 Adob​​e Reader 中打开它,因为出现错误:“打开此文档时出错。该文件已损坏,无法修复。”这是我的 MWE:

\documentclass{article}

\usepackage{graphicx}

\begin{document}

\includegraphics[width=2in]{test.pdf}
\includegraphics[width=2in,trim=5 5 5 5,clip]{test.png}

\end{document}

我有一个解决方法,就是同时剪切 .pdf 图形

\includegraphics[width=2in,trim=0 0 0 0,clip]{test.pdf}

但我还是很好奇想知道问题是什么。


编辑:根据@Heiko Oberdiek 的评论,我尝试使用不同的图像文件重现该问题,以便向所有人发布。似乎没有问题最多当时,我显然偶然发现了灾难的完美组合。这是我的新 MWE:

\documentclass{article}
\usepackage{graphicx}
\begin{document}

% A: Created powerpoint template with image as background. Then saved as pdf.
\includegraphics[width=2in]{test_powerpoint.pdf}

% B:
% \includegraphics[width=2in,trim=0 0 0 0,clip]{test_powerpoint.pdf}

% C: Original creation of image using tikz and pdflatex
% \includegraphics[width=2in]{test_latex.pdf} 

% 1: Extracted eps image from test_latex.pdf using pdftops, 
% then converted to pdf using convert tool in linux
\includegraphics[width=2in,trim=5 5 5 5,clip]{test_latex_convert.png} 

% 2: Took snapshot of image in test_latex.pdf, saved graphic as .png
% \includegraphics[width=2in,trim=5 5 5 5,clip]{test_latex_snapshot.png} 

\end{document}

图像文件可以下载:测试_powerpoint.pdf测试_latex.pdf测试_latex_convert.png测试快照

事实证明唯一不起作用的组合是 A1。(生成的 PDF 是这里。)其他一切都很好,所以我甚至不确定问题出在 .pdf 还是 .png 文件上。

相关内容