summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hpdftex.def')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hpdftex.def72
1 files changed, 70 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
index f658d6c439e..ea6bef2c41e 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hpdftex.def}
- [2012/07/29 v6.82v %
+ [2012/07/30 v6.82w %
Hyperref driver for pdfTeX]
\Hy@VersionCheck{hpdftex.def}
\pdf@ifdraftmode{%
@@ -134,9 +134,77 @@
\fi
\fi
\ifHy@setpdfversion
+ \ifnum\Hy@pdfversion<5 %
+ \ltx@IfUndefined{pdfobjcompresslevel}{%
+ }{%
+ \ifHy@verbose
+ \Hy@InfoNoLine{%
+ PDF object streams are disabled, because they are%
+ \MessageBreak
+ not supported in requested PDF version %
+ 1.\Hy@pdfversion
+ }%
+ \fi
+ \pdfobjcompresslevel=\ltx@zero
+ }%
+ \fi
\ifnum\Hy@pdfminorversion=\Hy@pdfversion\relax
\else
- \Hy@pdfminorversion=\Hy@pdfversion\relax
+ \let\Hy@temp\ltx@empty
+ \def\Hy@temp@A#1#2{%
+ \ifnum#1>\ltx@zero
+ \edef\Hy@temp{%
+ \Hy@temp
+ \space\space
+ \the#1\space #2%
+ \ifnum#1=\ltx@one\else s\fi
+ \MessageBreak
+ }%
+ \fi
+ }%
+ \Hy@temp@A\pdflastobj{PDF object}%
+ \Hy@temp@A\pdflastxform{form XObject}%
+ \Hy@temp@A\pdflastximage{image XObject}%
+ \Hy@temp@A\pdflastannot{annotation}%
+ \ltx@IfUndefined{pdflastlink}{%
+ }{%
+ \Hy@temp@A\pdflastlink{link}%
+ }%
+ \ifx\Hy@temp\ltx@empty
+ \Hy@pdfminorversion=\Hy@pdfversion\relax
+ \else
+ \let\Hy@temp@A\ltx@empty
+ \ifnum\Hy@pdfversion=4 %
+ \IfFileExists{pdf14.sty}{%
+ \def\Hy@temp@A{%
+ \MessageBreak
+ Or \string\RequirePackage{pdf14} can be used%
+ \MessageBreak
+ before \string\documentclass\space as shortcut%
+ }%
+ }{}%
+ \fi
+ \Hy@WarningNoLine{%
+ The PDF version number could not be set,\MessageBreak
+ because some PDF objects are already written:%
+ \MessageBreak
+ \Hy@temp
+ The version should be set as early as possible:%
+ \MessageBreak
+ \space\space
+ \expandafter\string\Hy@pdfminorversion=\Hy@pdfversion
+ \string\relax
+ \ifnum\Hy@pdfversion<5 %
+ \ltx@ifundefined{pdfobjcompresslevel}{%
+ }{%
+ \MessageBreak
+ \space\space
+ \string\pdfobjcompresslevel=0\string\relax
+ }%
+ \fi
+ \Hy@temp@A
+ }%
+ \fi
\fi
\PackageInfo{hyperref}{%
\expandafter\string\Hy@pdfminorversion