minion test
parent
1f09f40ebe
commit
d5fed41e07
Binary file not shown.
@ -0,0 +1,10 @@
|
||||
PDFDocument = require 'pdfkit'
|
||||
fs = require 'fs'
|
||||
|
||||
doc = new PDFDocument({compress: no})
|
||||
doc.pipe(fs.createWriteStream('minion-test.pdf'))
|
||||
doc.registerFont('the-font', '/Library/Fonts/MinionPro-Regular.OTF')
|
||||
doc.font('the-font')
|
||||
.fontSize(25)
|
||||
.text('Minion Pro Regular OTF', 50, 50, {width: false})
|
||||
doc.end()
|
Loading…
Reference in New Issue