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
A document with both embedded and standard font does not work. It creates a corrupt document. Docs with only embedded, works
Code sample
varfs=require('fs');varPDFDocument=require('pdfkit');vardoc=newPDFDocument();doc.registerFont('HelveticaCustom','./Helvetica.ttf');doc.pipe(fs.createWriteStream('mixed-helvetica.pdf'));// comment line below to make workdoc.text('standard')doc.font('HelveticaCustom');doc.text('embedded')doc.end();