我的文档包含命令
\documentclass{article}
\usepackage [colorlinks] {hyperref}
\hypersetup {
colorlinks,
pdfinfo={
Author={Shmuel (Seymour J.) Metz}
Subject={Topology}
Title={A Proposed Unification of Manifolds and Fibre Bundles}
}
}
\begin{document}
\null
\end{document}
创建的 PDF 元数据中的作者是“Shmuel (Seymour J.) Metz Subject=Topology Title=A Proposed Unification of Manifolds and Fibre Bundles”;其他两个字段为空白。
答案1
Optionpdfinfo
期望键值对,以逗号分隔。后者,键值对之间的逗号缺失。thenAuthor
是键,其余部分是值。使用逗号:
\documentclass{article}
\usepackage [colorlinks] {hyperref}
\hypersetup {
colorlinks,
pdfinfo={
Author={Shmuel (Seymour J.) Metz},
Subject={Topology},
Title={A Proposed Unification of Manifolds and Fibre Bundles},
}
}
\begin{document}
\null
\end{document}
结果为pdfinfo
:
$ pdfinfo test.pdf
Title: A Proposed Unification of Manifolds and Fibre Bundles
Subject: Topology
Keywords:
Author: Shmuel (Seymour J.) Metz
Creator: LaTeX with hyperref package
Producer: pdfTeX-1.40.17
CreationDate: Mon Aug 15 19:17:29 2016
ModDate: Mon Aug 15 19:17:29 2016
Tagged: no
Form: none
Pages: 1
Encrypted: no
Page size: 612 x 792 pts (letter) (rotated 0 degrees)
File size: 8488 bytes
Optimized: no
PDF version: 1.5