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

Document Language not getting set #347

Closed
mattstjean opened this issue Apr 16, 2019 · 2 comments
Closed

Document Language not getting set #347

mattstjean opened this issue Apr 16, 2019 · 2 comments

Comments

@mattstjean
Copy link

I am having an issue where the document language isn't getting set. When I run the adobe acrobat pro dc accessibility full check, it catches 2 fails:

Primary language | Failed | Text language is specified
Title | Failed | Document title is showing in title bar

The thing that I'm trying to figure out is why language is not getting set. I am using fastMode, and PdfAConformance.PDFA_1_A. Let me know if you need some more info from me. I get the same 2 fails even when I create a PDF from your all-in-one.html test file.

<html lang="EN-US">
    <head>
        <title>Summary</title>
        <meta name="subject" content="Summary" />
        <meta name="author" content="Business" />
        <meta name="description" content="Request Summary"/>

Originally posted by @mattstjean in #326 (comment)

danfickle added a commit that referenced this issue Apr 17, 2019
@danfickle
Copy link
Owner

Sorry for the delay @mattstjean.

This should now be fixed at head. The PDF/A validator library we're using didn't pick these issues up. I'm not sure if this is an oversight or a disagreement on the standard.

Anyway, the fix was as simple as copying four lines of code from the PDF/UA code (the manual PDF accessibility checker does require these settings) to the PDF/A code.

@danfickle
Copy link
Owner

Released RC20 with fix for this issue. Thanks again.

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

No branches or pull requests

2 participants