Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta Information not shown #1063

Open
hpvd opened this issue Oct 3, 2024 · 4 comments
Open

Meta Information not shown #1063

hpvd opened this issue Oct 3, 2024 · 4 comments
Labels

Comments

@hpvd
Copy link

hpvd commented Oct 3, 2024

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:

2024-10-03_12h15_05

@hpvd hpvd added the bug label Oct 3, 2024
@hpvd
Copy link
Author

hpvd commented Oct 3, 2024

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}

2024-10-03_12h29_00

@hpvd
Copy link
Author

hpvd commented Oct 3, 2024

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...?

@u-fischer
Copy link

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.

@hpvd
Copy link
Author

hpvd commented Oct 3, 2024

thanks @u-fischer

addition: the pdf produced with code shown in #1063 (comment)
fully passes pdf validation on https://dev.verapdf-rest.duallab.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants