Use hyperref to set up the PDF information dictionary (fixes #3551)

This commit is contained in:
jfbu committed 2017-03-24 09:16:14 +01:00
1 parent 254c04500b
commit a8627ac01c
3 files changed
+9 -12

No files matched your search

+1
View File
@@ -109,6 +109,7 @@ Bugs fixed
* #2693: Sphinx latex style file wrongly inhibits colours for section headings * #2693: Sphinx latex style file wrongly inhibits colours for section headings
for latex+dvi(ps,pdf,pdfmx) for latex+dvi(ps,pdf,pdfmx)
* C++, properly look up ``any`` references. * C++, properly look up ``any`` references.
* #3551: PDF information dictionary is lacking author and title data
Deprecated Deprecated
---------- ----------
+4 -6
View File
@@ -31,13 +31,11 @@
% %
\renewcommand{\maketitle}{% \renewcommand{\maketitle}{%
\noindent\rule{\textwidth}{1pt}\par \noindent\rule{\textwidth}{1pt}\par
% FIXME: use \hypersetup{pdfauthor={\@author}, pdftitle={\@title}} \begingroup % for PDF information dictionary
\ifdefined\pdfinfo \def\endgraf{ }\def\and{\& }%
\begingroup \pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
%\pdfstringdefDisableCommands{\def\\{, }\def\endgraf{ }\def\and{, }}% \hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
%\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
\endgroup \endgroup
\fi
\begin{flushright} \begin{flushright}
\sphinxlogo \sphinxlogo
\py@HeaderFamily \py@HeaderFamily
+4 -6
View File
@@ -41,13 +41,11 @@
\let\footnotesize\small \let\footnotesize\small
\let\footnoterule\relax \let\footnoterule\relax
\noindent\rule{\textwidth}{1pt}\par \noindent\rule{\textwidth}{1pt}\par
% FIXME: use \hypersetup{pdfauthor={\@author}, pdftitle={\@title}} \begingroup % for PDF information dictionary
\ifdefined\pdfinfo \def\endgraf{ }\def\and{\& }%
\begingroup \pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
%\pdfstringdefDisableCommands{\def\\{, }\def\endgraf{ }\def\and{, }}% \hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
%\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
\endgroup \endgroup
\fi
\begin{flushright}% \begin{flushright}%
\sphinxlogo \sphinxlogo
\py@HeaderFamily \py@HeaderFamily