diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/pdfcrypt.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/pdfcrypt.dtx | 111 |
1 files changed, 29 insertions, 82 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/pdfcrypt.dtx b/Master/texmf-dist/source/latex/oberdiek/pdfcrypt.dtx index f48e8c09a75..ac5c8db9aca 100644 --- a/Master/texmf-dist/source/latex/oberdiek/pdfcrypt.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/pdfcrypt.dtx @@ -1,6 +1,7 @@ % \iffalse meta-comment % -% Copyright (C) 2001, 2006 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +% Copyright (C) 2001, 2006, 2007 by +% Heiko Oberdiek <oberdiek@uni-freiburg.de> % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -66,7 +67,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: pdfcrypt 2007/04/11 v0.9 Setting pdf encryption (HO)} +\Msg{* Package: pdfcrypt 2007/04/26 v1.0 Setting pdf encryption (HO)} \Msg{************************************************************************} \keepsilent @@ -76,7 +77,8 @@ This is a generated file. -Copyright (C) 2001, 2006 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +Copyright (C) 2001, 2006, 2007 by + Heiko Oberdiek <oberdiek@uni-freiburg.de> This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either @@ -126,7 +128,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{pdfcrypt.drv}% - [2007/04/11 v0.9 Setting pdf encryption (HO)]% + [2007/04/26 v1.0 Setting pdf encryption (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc} \begin{document} @@ -135,7 +137,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{731} +% \CheckSum{676} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -156,7 +158,7 @@ and the derived files % \GetFileInfo{pdfcrypt.drv} % % \title{The \xpackage{pdfcrypt} package} -% \date{2007/04/11 v0.9} +% \date{2007/04/26 v1.0} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -386,48 +388,17 @@ and the derived files }% }{} -\@ifundefined{PackageError}{% - \def\PackageError#1#2#3{% - \begingroup - \newlinechar=10 % - \errhelp{#3}% - \errmessage{% - \MessageBreak - Package #1 Error: #2.\MessageBreak - \MessageBreak - See the #1 package documentation for explanation.\MessageBreak - Type \space H <return> \space for immediate help% - }% - \endgroup - }% -}{} - -\@ifundefined{PackageWarning}{% - \def\PackageWarning#1#2{% - \begingroup - \newlinechar=10 % - \def\MessageBreak{% - ^^J(#1)\@spaces\@spaces\@spaces\@spaces - }% - \immediate\write16{^^JPackage #1 Warning: #2\on@line.^^J}% - \endgroup - }% -}{} - -\@ifundefined{PackageWarningNoLine}{% - \def\PackageWarningNoLine#1#2{% - \PackageWarning{#1}{#2\@gobble}% - }% -}{} +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname RequirePackage\endcsname\relax + \input infwarerr.sty\relax +\else + \RequirePackage{infwarerr}% +\fi \@ifundefined{@gobble}{% \long\def\@gobble#1{}% }{} -\@ifundefined{on@line}{% - \def\on@line{ on input line \the\inputlineno}% -}{} - \@ifundefined{@empty}{% \def\@empty{}% }{} @@ -437,14 +408,14 @@ and the derived files % % \begin{macrocode} \ProvidesPackage{pdfcrypt}% - [2007/04/11 v0.9 Setting pdf encryption (HO)]% + [2007/04/26 v1.0 Setting pdf encryption (HO)]% % \end{macrocode} % % \begin{macrocode} \@ifundefined{pdfcryptsetup}{% \let\pdfcryptsetup\@gobble }{% - \PackageWarningNoLine{pdfcrypt}{Package pdfcrypt is already loaded}% + \@PackageWarningNoLine{pdfcrypt}{Package pdfcrypt is already loaded}% \pc@endinput } % \end{macrocode} @@ -452,7 +423,7 @@ and the derived files % \begin{macrocode} \newif\ifpc@nopdfcrypt \ifx Y\nopdfcrypt - \PackageWarningNoLine{pdfcrypt}{% + \@PackageWarningNoLine{pdfcrypt}{% Encryption disabled by \string \nopdfcrypt\space request% }% \global\pc@nopdfcrypttrue @@ -470,7 +441,7 @@ and the derived files \ifcase\pdfoutput \else \@ifundefined{pdfcrypt}{% - \PackageError{pdfcrypt}{% + \@PackageError{pdfcrypt}{% PDF encryption is not supported with this pdfTeX% }{% Encryption support was added in 0.14h (2001/03/10)\MessageBreak @@ -488,7 +459,7 @@ and the derived files }{% \ifnum\OpMode=1 % \ifnum\@ifundefined{VTeXversion}0\VTeXversion<735 % - \PackageError{pdfcrypt}{% + \@PackageError{pdfcrypt}{% PDF encryption is not supported with this VTeX% }{% You need VTeX 7.35 or higher.% @@ -527,34 +498,6 @@ and the derived files \def\@nameuse#1{\csname #1\endcsname}% }{} -\@ifundefined{MessageBreak}{% - \def\MessageBreak{^^J}% -}{} - -\@ifundefined{@ehc}{% - \def\@ehc{% - Try typing \space <return> \space to proceed.\MessageBreak - If that doesn't work, type \space X <return> \space - to quit.% - }% -}{} - -\@ifundefined{PackageInfo}{% - \def\PackageInfo#1#2{% - \begingroup - \newlinechar=10 % - \def\MessageBreak{% - ^^J(#1) \space\@spaces\@spaces\@spaces - }% - \wlog{Package #1 Info: #2}% - \endgroup - }% -}{} - -\@ifundefined{@spaces}{% - \def\@spaces{\space\space\space\space}% -}{} - \def\pc@KeyvalRestore{% \let\pc@KeyvalRestore\@undefined } @@ -626,7 +569,7 @@ and the derived files \edef\pc@temp{\catcode`\noexpand\"=\the\catcode`\"\relax} \@makeother\" \def\pc@set{% - \PackageInfo{pdfcrypt}{% + \@PackageInfo{pdfcrypt}{% \ifpc@debug \ifx\pc@owner\@empty No owner password% @@ -657,10 +600,10 @@ and the derived files \else \@ifundefined{pc@set@\pc@driver}{% \ifx\pc@driver\@empty - \PackageError{pdfcrypt}{No driver for encryption % + \@PackageError{pdfcrypt}{No driver for encryption % support found}\@ehc \else - \PackageError{pdfcrypt}{Cannot set encryption for % + \@PackageError{pdfcrypt}{Cannot set encryption for % unknown driver `\pc@driver'}\@ehc \fi }{% @@ -766,7 +709,7 @@ and the derived files \fi \fi \ifx\pc@temp\relax - \PackageWarning{pdfcrypt}{% + \@PackageWarning{pdfcrypt}{% Unexpected value \string`#3\string' of % option \string`#2\string'\MessageBreak instead of % @@ -829,7 +772,7 @@ and the derived files \pc@set \global\let\pc@set\relax \gdef\pdfcryptsetup##1{% - \PackageWarning{pdfcrypt}{% + \@PackageWarning{pdfcrypt}{% Encryption options are already set\MessageBreak new values are ignored% }% @@ -847,7 +790,7 @@ and the derived files % \begin{macrocode} \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname InputIfFileExists\endcsname\relax - \PackageInfo{pdfcrypt}{% + \@PackageInfo{pdfcrypt}{% Configuration file pdfcrypt.cfg not supported.% }% \else @@ -1074,6 +1017,10 @@ and the derived files % \item % Line ends sanitized. % \end{Version} +% \begin{Version}{2007/04/26 v1.0} +% \item +% Use of package \xpackage{infwarerr}. +% \end{Version} % \end{History} % % \PrintIndex |