Commit 97d0c7a
♻️ Use pdf-core native lang option
The `setLanguage` workaround manually set the `/Lang` entry in
the PDF catalog using `unsafeOnRender`, `PDFDict`, and `PDFString`.
pdf-core 0.2.0 now supports `lang` as a constructor option on
`PDFDocument`, so the workaround can be replaced with a single
property.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c4c6d8c commit 97d0c7a
1 file changed
+2
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
| |||
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 52 | | |
63 | 53 | | |
64 | 54 | | |
| |||
0 commit comments