Skip to content

Commit

Permalink
allow the document language to be specified (#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle authored Dec 31, 2023
1 parent 25fc89d commit f3356ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file modified examples/pdfs/standardfonts.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion examples/standardfonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ var docDefinition = {
],
defaultStyle: {
font: 'Helvetica'
}
},
language: "en-AU"
};

var now = new Date();
Expand Down
1 change: 1 addition & 0 deletions src/Printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class PdfPrinter {
userPassword: docDefinition.userPassword,
ownerPassword: docDefinition.ownerPassword,
permissions: docDefinition.permissions,
lang: docDefinition.language,
fontLayoutCache: typeof options.fontLayoutCache === 'boolean' ? options.fontLayoutCache : true,
bufferPages: options.bufferPages || false,
autoFirstPage: false,
Expand Down

0 comments on commit f3356ba

Please sign in to comment.