blob: fc2c3b8eebde7da429eaaf7b33bfc270bdfa7bc8 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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'.
|