pdfx
我正在尝试使用 XeTex 并利用该包创建 PDF/A 文件。pdfx 文档第 96 页似乎表明应该适应XeTex。
我也尝试过xmpincl
明确使用(它通常由继承pdfx
),但显然仅适用于 pdflatex
如果我注释掉,\usepackage[a-1b]{pdfx}
那么我会得到我期望的元数据,但我的输出不符合 PDF/A。
顺便说一句,我正在使用 xelatex 来嵌入字体;这是 PDF/A 的要求……在 pdflatex 中这样做真的很痛苦。
关于如何在 PDF 中获取元数据有什么想法?
\documentclass{book}
\usepackage[a-1b]{pdfx}
\usepackage{hyperref}
\hypersetup{
pdftitle={This is the title},
pdfauthor={This is the author},
pdfcreator={This is the creator}}
\usepackage[main=english]{babel}
\begin{document}
This is some text
\end{document}
另外,以下是xetex --version
XeTeX 3.14159265-2.6-0.99998 (TeX Live 2017/Debian)
kpathsea version 6.2.3
Copyright 2017 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty. Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 60.2; using 60.2
Compiled with zlib version 1.2.11; using 1.2.11
Compiled with FreeType2 version 2.8.1; using 2.8.1
Compiled with Graphite2 version 1.3.11; using 1.3.11
Compiled with HarfBuzz version 1.7.2; using 1.7.2
Compiled with libpng version 1.6.34; using 1.6.34
Compiled with poppler version 0.62.0
Compiled with fontconfig version 2.12.6; using 2.12.6