summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-07-09 23:34:51 +0000
committerKarl Berry <karl@freefriends.org>2010-07-09 23:34:51 +0000
commit79a8dbd649abbc830f0ae0e0445ca2bf8313e793 (patch)
tree57019d1ca4f524accfa5f5c3d2a8a203c59fe4ea /Master/texmf-dist/tex/generic
parent08f969358f3f17343977b49d670e45aa7d82dc24 (diff)
thumbpdf update (8jul10)
git-svn-id: svn://tug.org/texlive/trunk@19315 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r--Master/texmf-dist/tex/generic/thumbpdf/thumbpdf.sty17
-rw-r--r--Master/texmf-dist/tex/generic/thumbpdf/thumbpdf.tex20
2 files changed, 31 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/generic/thumbpdf/thumbpdf.sty b/Master/texmf-dist/tex/generic/thumbpdf/thumbpdf.sty
index 6ab97374c3f..2c925afbd7e 100644
--- a/Master/texmf-dist/tex/generic/thumbpdf/thumbpdf.sty
+++ b/Master/texmf-dist/tex/generic/thumbpdf/thumbpdf.sty
@@ -1,11 +1,11 @@
% File: thumbpdf.sty
% Project: thumbpdf
-% Version: 2008/04/16 v3.10
+% Version: 2010/07/07 v3.11
% Author: Heiko Oberdiek
%
% Function: Inclusion of thumbnails
%
-% Copyright: Copyright (C) 1999-2008 Heiko Oberdiek.
+% Copyright: Copyright (C) 1999-2010 Heiko Oberdiek.
%
% This work may be distributed and/or modified under
% the conditions of the LaTeX Project Public License,
@@ -95,6 +95,7 @@
% 2005/07/06 v3.8
% 2007/11/07 v3.9
% 2008/04/16 v3.10
+% 2010/07/07 v3.11: Warning if \pdfobjcompresslevel>0.
%
% \THB@ is the prefix for internal command names.
%
@@ -115,7 +116,7 @@
\def\x{\endgroup\ProvidesPackage{thumbpdf}}%
\fi
\fi
-\x[2008/04/16 v3.10 Inclusion of thumbnails (HO)]%
+\x[2010/07/07 v3.11 Inclusion of thumbnails (HO)]%
% Dummy for \thisthumb and \DeclareThumbs. It is overwritten,
% if the checks succeed and the whole package is loaded.
@@ -269,6 +270,16 @@
\global\let\ThumbpdfDriver\THB@pdftex
\fi
+ % Check \pdfobjcompresslevel
+ \expandafter\ifx\csname pdfobjcompresslevel\endcsname\relax
+ \else
+ \ifnum\pdfobjcompresslevel>0 %
+ \PackageWarningNoLine{\THB@name}{%
+ Compressed PDF objects of PDF 1.5 are not supported%
+ }%
+ \fi
+ \fi
+
% Check: Does data file exists?
\edef\THB@datafile{%
\jobname.tp\ifx\ThumbpdfDriver\THB@pdftex t\else m\fi
diff --git a/Master/texmf-dist/tex/generic/thumbpdf/thumbpdf.tex b/Master/texmf-dist/tex/generic/thumbpdf/thumbpdf.tex
index 8b534992b4c..148edbed8e2 100644
--- a/Master/texmf-dist/tex/generic/thumbpdf/thumbpdf.tex
+++ b/Master/texmf-dist/tex/generic/thumbpdf/thumbpdf.tex
@@ -1,9 +1,9 @@
% File: thumbpdf.tex
% Project: thumbpdf
-% Version: 2008/14/16 v3.10
+% Version: 2010/07/07 v3.11
% Author: Heiko Oberdiek
%
-% Copyright: Copyright (C) 1999-2008 Heiko Oberdiek.
+% Copyright: Copyright (C) 1999-2010 Heiko Oberdiek.
%
% This work may be distributed and/or modified under
% the conditions of the LaTeX Project Public License,
@@ -88,9 +88,11 @@
% 2005/07/06 v3.8
% 2007/11/07 v3.9
% 2008/04/16 v3.10
+% 2010/07/07 v3.11: \pdfcompresslevel=0 and
+% \pdfminorversion=4 added.
\immediate\write16{%
- File: thumbpdf.tex 2008/04/16 v3.10 %
+ File: thumbpdf.tex 2010/07/07 v3.11 %
Including thumbnails as images (HO)%
}
\immediate\write16{%
@@ -123,6 +125,18 @@
\pdfoutput=1
+% Disable \pdfobjcompresslevel
+\ifx\pdfobjcompresslevel\undefined
+\else
+ \pdfobjcompresslevel=0 %
+\fi
+\ifx\pdfminorversion\undefined
+\else
+ \ifnum\pdfminorversion>4 %
+ \pdfminorversion=4 %
+ \fi
+\fi
+
% this file is tested with pdfTeX 0.13a
% but for downward compatibilty a trick from Hans Hagen:
\ifnum\pdftexversion<13 \ifnum\expandafter `\pdftexrevision<`s