Hello
I want to protect my pdf document using LaTeX. Some people on the net uses Acrobat Pro or other free/shareware softwares but how to do that only with LaTeX ?
How to include the date of the latest compilation to be saved in the document property 'not the document body' to prove that this document is for the author. And witch package class do those tasks ?
Thinks very mush
General ⇒ Protect document
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Protect document
This can't be done with LaTeX directly. But with pdftk there is a command line tool which allows to do that. The pdftk Builder offers a GUI (on Windows systems) to access the functions of the tool more comfortable.deltaone wrote:[...] I want to protect my pdf document using LaTeX. Some people on the net uses Acrobat Pro or other free/shareware softwares but how to do that only with LaTeX ?
You could use the hyperref package and give the according information to the pdfproducer key.deltaone wrote:[...] How to include the date of the latest compilation to be saved in the document property 'not the document body' to prove that this document is for the author. And witch package class do those tasks ? [...]
Code: Select all
\usepackage{hyperref}
\hypersetup{%
pdftitle={Title},
pdfsubject={Subject of the document},
pdfauthor={Author, Author},
pdfkeywords={Keywords},
pdfproducer={LaTeX with hyperref, \today},
}
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Protect document
Thinks very mush.localghost wrote:This can't be done with LaTeX directly. But with pdftk there is a command line tool which allows to do that. The pdftk Builder offers a GUI (on Windows systems) to access the functions of the tool more comfortable.deltaone wrote:[...] I want to protect my pdf document using LaTeX. Some people on the net uses Acrobat Pro or other free/shareware softwares but how to do that only with LaTeX ?You could use the hyperref package and give the according information to the pdfproducer key.deltaone wrote:[...] How to include the date of the latest compilation to be saved in the document property 'not the document body' to prove that this document is for the author. And witch package class do those tasks ? [...]Other possibilities may be described in the manual. I didn't test this but I see no difficulties.Code: Select all
\usepackage{hyperref} \hypersetup{% pdftitle={Title}, pdfsubject={Subject of the document}, pdfauthor={Author, Author}, pdfkeywords={Keywords}, pdfproducer={LaTeX with hyperref, \today}, }
Best regards
Thorsten¹
deltaOne