This is an example project which generate and PDF Document. The problem is than PDFKit has an strange behavior when inserts chinese characters.
- When inserts some characters (like "产品名"), the texts which inserted next only shows a few characters.
- Some normal characters such two-dots ":" doesn't rendered by PDFKit.
That issues only ocurs with fonts with chinese characters, like:
Regarding the Files:
- The Output File is generated in
source/test.pdf - The Sample code is in
src/index.ts
- Windows 10 x64 bits
- Node.js v10.16.3
- Typescript:
npm install -g typescript
Execute these commands, line by line, pressing enter after every line ending:
npm update
tsc
npm test