GeneralProtect document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
deltaone
Posts: 3
Joined: Mon Jan 26, 2009 2:42 pm

Protect document

Post by deltaone »

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
deltaOne

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Protect document

Post by localghost »

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 ?
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:[...] 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 ? [...]
You could use the hyperref package and give the according information to the pdfproducer key.

Code: Select all

\usepackage{hyperref}
\hypersetup{%
  pdftitle={Title},
  pdfsubject={Subject of the document},
  pdfauthor={Author, Author},
  pdfkeywords={Keywords},
  pdfproducer={LaTeX with hyperref, \today},
}
Other possibilities may be described in the manual. I didn't test this but I see no difficulties.


Best regards
Thorsten¹
User avatar
deltaone
Posts: 3
Joined: Mon Jan 26, 2009 2:42 pm

Protect document

Post by deltaone »

localghost wrote:
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 ?
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:[...] 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 ? [...]
You could use the hyperref package and give the according information to the pdfproducer key.

Code: Select all

\usepackage{hyperref}
\hypersetup{%
  pdftitle={Title},
  pdfsubject={Subject of the document},
  pdfauthor={Author, Author},
  pdfkeywords={Keywords},
  pdfproducer={LaTeX with hyperref, \today},
}
Other possibilities may be described in the manual. I didn't test this but I see no difficulties.


Best regards
Thorsten¹
Thinks very mush.
deltaOne
Post Reply