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

#971: PDF/A1A & PDF/A1B invalid due to title => xmp.metadata missing language attribute at <dc:title><rdf:Alt><rdf:li>Title... #1279

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

hemat0gen
Copy link

Description of the new Feature/Bugfix

To fix the bug, I improved multilingual support by refining the handling of language-alternative (LangAlt) title and description in the Dublin Core Schema using the standard-conforming syntax with the required (at least for PDF/A-1) xml:lang attribute. Further I fixed a typo in the pdf:Keywords tag in the PDF Schema.

Related Issue: #971

Unit-Tests for the new Feature/Bugfix

  • Unit-Tests added to reproduce the bug
  • Unit-Tests added to the added feature

Compatibilities Issues

All existing methods behave as before. I only added two addtional methods for multilingual titles and descriptions. Even when using the existing API the output will slightly differ, because xml:lang is now always added to dc:title and dc:description.

Your real name

Mikhail Stupnikov

Testing details

I expanded com.lowagie.text.validation.PDFValidationTest to test the metadata fields in question.

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

Successfully merging this pull request may close these issues.

1 participant