You can do all these with hyperref
package. Add these lines to your preamble and change the contents as in pdfproducer={},
:
\usepackage{hyperref}
%
\hypersetup{
bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
% pdfstartview={FitW}, % fits the width of the page to the window
pdftitle={Certificate}, % title
pdfauthor={Dr. Harish Kumar}, % author
pdfsubject={TEQIP certificates}, % subject of the document
pdfcreator={Dr. Harish Kumar}, % creator of the document
pdfproducer={}, % producer of the document
pdfkeywords={Certificates,} {TEQIP} {Participation}, % list of keywords
pdfnewwindow=true, % links in new window
colorlinks=false, % false: boxed links; true: colored links
linkcolor=red, % color of internal links
citecolor=green, % color of links to bibliography
filecolor=magenta, % color of file links
urlcolor=cyan % color of external links
}
MWE:
\documentclass{article}
\usepackage{hyperref}
%
\hypersetup{
bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
% pdfstartview={FitW}, % fits the width of the page to the window
pdftitle={Certificate}, % title
pdfauthor={Dr. Harish Kumar}, % author
pdfsubject={TEQIP certificates}, % subject of the document
pdfcreator={Dr. Harish Kumar}, % creator of the document
pdfproducer={}, % producer of the document
pdfkeywords={Certificates,} {TEQIP} {Participation}, % list of keywords
pdfnewwindow=true, % links in new window
colorlinks=false, % false: boxed links; true: colored links
linkcolor=red, % color of internal links
citecolor=green, % color of links to bibliography
filecolor=magenta, % color of file links
urlcolor=cyan % color of external links
}
\usepackage{blindtext}
\begin{document}
\Blinddocument
\end{document}
PS: I have deliberately left all other (probably irrelevant) items in hypersetup
. For details, see the hyperref
manual.
Best Answer
\hypersetup
comes into action before\title
is used, so it tries to get grip of an undefined command\inserttitle
at that time. The same is true for\insertauthor
and\insertkeywords
. LaTeX is complaining on\inserttitle
because its the first of those three commands used in\hypersetup
.Since
\hypersetup
is no preamble-restricted command, it can be used more than once and even in the document body, if needed.I suggest to use the
\title
etc. commands to automatically insert the relevant data. This works, as long as\title
etc. are not used beforehyperref
is loaded and preset\hypersetup
only with basically-non-author/document content relevant dataApparently the shown fragment is from a
.cls
or.sty
file, I've built a document around it, wrapping\makeatletter...\makeatother
pair around the various\def....
commands there.Please note, that
\maketitle
redefines\title
, and\author
etc. in many classes to become effectively nothing.