summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pdfprivacy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-12-04 21:58:07 +0000
committerKarl Berry <karl@freefriends.org>2017-12-04 21:58:07 +0000
commit59bec5bca91c58c82d16612c43c0f0eea427f245 (patch)
tree9688afd71cccca40d427c5c37ff164fde28936d6 /Master/texmf-dist/tex/latex/pdfprivacy
parent26e94fad03cf15aa35c2a422197bb1200edcb901 (diff)
pdfprivacy (4dec17)
git-svn-id: svn://tug.org/texlive/trunk@45985 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pdfprivacy')
-rw-r--r--Master/texmf-dist/tex/latex/pdfprivacy/pdfprivacy.sty88
1 files changed, 88 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfprivacy/pdfprivacy.sty b/Master/texmf-dist/tex/latex/pdfprivacy/pdfprivacy.sty
new file mode 100644
index 00000000000..fc2c3b8eebd
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pdfprivacy/pdfprivacy.sty
@@ -0,0 +1,88 @@
+%%
+%% This is file `pdfprivacy.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pdfprivacy.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2017 by Laurens Sion
+%%
+%% This work may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.3c of this license
+%% or (at your option) any later version. The latest version of this
+%% license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% This work consists of the files pdfprivacy.dtx and pdfprivacy.ins
+%% and the derived file pdfprivacy.sty.
+%%
+\NeedsTeXFormat{LaTeX2e}[2013/03/31]
+\ProvidesPackage{pdfprivacy}
+ [2017/12/03 v1.0 PDF Privacy package]
+\RequirePackage{ifthen}
+\RequirePackage{kvoptions}
+\newboolean{pdfprivacy@hyperrefloaded}
+\newboolean{pdfprivacy@removeall}
+\setboolean{pdfprivacy@removeall}{false}
+\DeclareBoolOption[false]{nodocdata}
+\DeclareComplementaryOption{docdata}{nodocdata}
+\DeclareBoolOption[true]{noproducerdata}
+\DeclareComplementaryOption{producerdata}{noproducerdata}
+\DeclareBoolOption[true]{noeditdata}
+\DeclareComplementaryOption{editdata}{noeditdata}
+\DeclareBoolOption[true]{noptexdata}
+\DeclareComplementaryOption{ptexdata}{noptexdata}
+\DeclareBoolOption[false]{nopdftrailerid}
+\DeclareComplementaryOption{pdftrailerid}{nopdftrailerid}
+\DeclareVoidOption{all}{\setboolean{pdfprivacy@removeall}{true}}
+\ProcessKeyvalOptions*
+\ifthenelse{\boolean{pdfprivacy@removeall}}{%
+\setboolean{pdfprivacy@nodocdata}{true}
+\setboolean{pdfprivacy@noproducerdata}{true}
+\setboolean{pdfprivacy@noeditdata}{true}
+\setboolean{pdfprivacy@noptexdata}{true}
+\setboolean{pdfprivacy@nopdftrailerid}{true}
+}{%
+}
+\AtBeginDocument{
+\@ifpackageloaded{hyperref}{\setboolean{pdfprivacy@hyperrefloaded}{true}}{\setboolean{pdfprivacy@hyperrefloaded}{false}}
+}
+\AtBeginDocument{
+\ifthenelse{\boolean{pdfprivacy@nodocdata}}{%
+\ifthenelse{\boolean{pdfprivacy@hyperrefloaded}}{%
+\hypersetup{pdfinfo={ Author={}, Subject={}, Title={}, Keywords={} }}%
+}{%
+\pdfinfo{/Author () /Title () /Subject () /Keywords () }%
+}
+}{%
+}
+}
+\AtBeginDocument{
+\ifthenelse{\boolean{pdfprivacy@noproducerdata}}{%
+\ifthenelse{\boolean{pdfprivacy@hyperrefloaded}}{%
+\hypersetup{pdfinfo={ Creator={}, Producer={} }}%
+}{%
+\pdfinfo{/Creator () /Producer ()}%
+}
+}{%
+}
+}
+\ifthenelse{\boolean{pdfprivacy@noeditdata}}{%
+\pdfinfoomitdate1
+}{}
+
+\ifthenelse{\boolean{pdfprivacy@noptexdata}}{
+\pdfsuppressptexinfo-1
+}{}
+
+\ifthenelse{\boolean{pdfprivacy@nopdftrailerid}}{
+\pdftrailerid{}
+}{}
+
+\endinput
+%%
+%% End of file `pdfprivacy.sty'.