texworks
texworks copied to clipboard
Meta Information not shown
Bug description: includes meta informations not shown in meta window
Steps to reproduce the problem:
\DocumentMetadata{
lang = de,
pdfversion = 2.0,
pdfstandard = ua-2,
pdfstandard = a-4f, %or a-4
testphase =
{phase-III,
title,
table,
math,
firstaid}
}
\documentclass{article}
\title{test title}
\author{test author}
\begin{document}
\section{test section}
test text in section
\end{document}
Expected behavior: show available information as acrobat does
General information: TeXworks version: 0.69 Miktex 24.4 TeXworks obtained from: miktex Operating system: W11
Additional information:
when removing the documentmetadata from pdf tagging project see https://latex3.github.io/tagging-project/documentation/prototype-usage-instructions.html more meta data is shown in texworks pdf but not
- title
- author
\documentclass{article}
\title{test title}
\author{test author}
\begin{document}
\section{test section}
test text in section
\end{document}
for meta data shown partly after removal of documentmetadata command: this is possibly because the \DocumentMetadata set, forces pdf version 2.0 which seems to include metadata in a different way...?
In PDF 2.0 the /Info dictionary in the trailer of the PDF is deprecated. Metadata should be added as XMP-metadata (and there are added in the example). When you use a standard like A-4 or UA-2 deprecated features are not allowed and so the LaTeX-code suppresses the /Info dictionary and only adds XMP-metadata.
thanks @u-fischer
addition: the pdf produced with code shown in https://github.com/TeXworks/texworks/issues/1063#issue-2563678854 fully passes pdf validation on https://dev.verapdf-rest.duallab.com/