1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
% !Mode:: "TeX:UTF-8:Main"
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{uncompress}
\documentclass{article}
\usepackage{pdfpages,xcolor}
\usepackage{hyperref}
\hypersetup{linkbordercolor=blue}
\usepackage{newpax}
%use the link border color and style of the imported pdf
%and not hyperref colors
\newpaxsetup{usefileattributes=true}
\begin{document}
\includegraphics[scale=0.5,trim=4cm 15cm 8cm 3cm,clip,page=1]{doc-input1}
\includegraphics[scale=0.5,trim=5cm 15cm 8cm 3cm,clip,page=2]{doc-input1}
%set a unique suffix if the pdf is imported twice
\newpaxsetup{destsuffix=B}
\includegraphics[scale=0.5,trim=4cm 15cm 8cm 3cm,clip,page=1]{doc-input1}
\includegraphics[scale=0.5,trim=5cm 15cm 8cm 3cm,clip,page=2]{doc-input1}
% suppress the adding of annotations
\newpaxsetup{addannots=false}
\includegraphics[scale=0.5,trim=4cm 15cm 8cm 3cm,clip,page=1]{doc-input1}
%reactivate, don't use file attributes
\newpaxsetup{addannots=true,usefileattributes=false}
\includepdf[pages=-]{doc-input2}
\end{document}
|