我尝试编译以下文档:
\documentclass[a4paper,12pt]{article}
\begin{document}
Hello World!
\end{document}
当我编译它时,pdflatex 说:
pdflatex demo.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
restricted \write18 enabled.
entering extended mode
(./demo.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 26 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
No file demo.aux.
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./demo.aux) )</usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb>
Output written on demo.pdf (1 page, 9898 bytes).
Transcript written on demo.log.
所以我猜问题是没有辅助文件?当我尝试验证文档时http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx使用 PDF/A-3b 时,出现以下错误:
Validating file "demo.pdf" for conformance level pdfa-3b
The separator after an 'obj' must be an EOL. (2)
The separator before an 'endobj' must be an EOL.
The key Metadata is required but missing.
A device-specific color space (DeviceGray) without an appropriate output intent is used.
The document does not conform to the requested standard.
The file format (header, trailer, objects, xref, streams) is corrupted.
The document contains device-specific color spaces.
The document's meta data is either missing or inconsistent or corrupt.
Done.
那么我该如何解决这些问题呢?
答案1
这里没有问题,demo.aux
首先创建文件以便在重新运行时插入任何链接(如果需要),然后您可以再次运行它以输入它。您仍然可以第一次查看 PDF 文件,因为输出显示输出已写入demo.pdf
Output written on demo.pdf (1 page, 9898 bytes).
答案2
PDF/A 是文档存档的标准。但是,pdflatex 不保证默认创建符合此标准的文档。
如何编译符合 PDF/A 标准的文件已在其他帖子中讨论过。例如,请参阅:如何生成 PDF/A 和 PDF/X?了解详情。