You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const PDFDocument = require("pdfkit");
const fs = require("fs");
var doc = new PDFDocument();
doc.pipe(fs.createWriteStream("out.pdf"));
doc.font("./SourceCodePro-Regular.ttf");
doc.initForm();
// Dynamic fields do not work
doc.formText("txt1", 20, 20, 100, 10, {
value: "Test 01234",
});
// Normal text elements work
doc.text("Test 01234", 20, 40, 100, 10);
doc.end();
Bug Report
Description of the problem
Setting custom font for text AcroForm has no effect if PDF file opened in Adobe Acrobat Reader, but works fine in Google Chrome:

PDF file example: aladin.pdf
Code sample
Your environment
The text was updated successfully, but these errors were encountered: