Closed Hyperi0n888 closed 1 year ago
import * as pdfjs from "pdfjs";
const doc = new pdfjs.Document({ fontSize: 12, lineHeight: 1.5, paddingTop: 20 pdfjs.mm, paddingBottom: 20 pdfjs.mm, paddingLeft: 31.8 pdfjs.mm, paddingRight: 31.8 pdfjs.mm, }) doc.cell(' 你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好')
I solved the problem by simply adding \u200B to the beginning of the text, but I don't know why it's like that and I'd like an answer
doc.cell(' \u200B你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好')
import * as pdfjs from "pdfjs";
const doc = new pdfjs.Document({ fontSize: 12, lineHeight: 1.5, paddingTop: 20 pdfjs.mm, paddingBottom: 20 pdfjs.mm, paddingLeft: 31.8 pdfjs.mm, paddingRight: 31.8 pdfjs.mm, }) doc.cell(' 你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好')