General ⇒ Protect document
Protect document
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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¹
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¹