%%
%% 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'.
