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

Setting language has no effect on rendered PDF #2751

Closed
timrhaynes opened this issue Jul 9, 2024 · 1 comment
Closed

Setting language has no effect on rendered PDF #2751

timrhaynes opened this issue Jul 9, 2024 · 1 comment

Comments

@timrhaynes
Copy link

timrhaynes commented Jul 9, 2024

Using pdfmake 0.2.8 with angular 16.2.12, I cannot set the language properties successfully.

Here is sample code, trying to set the language at every possible step:

this.docDefinition = {
    content: [
        { text: 'test content here', lang: 'en-US' },
    ],
    info: {
        title: 'test title',
        author: 'test author',
        subject: 'test subject',
    },
    defaultStyle: {
        lang: 'en-US' 
    },
    lang: 'en-US',
    metadata: {
        lang: 'en-US'
    }
};

Attached is the resulting PDF. It lacks a language attribute according to Adobe Reader:

image

Is this a bug in pdfmake?

lang-test.pdf

@liborm85
Copy link
Collaborator

Use language property, see documentation.

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