You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
306 B
Racket
20 lines
306 B
Racket
#lang br
|
|
|
|
(require pitfall/kit/document)
|
|
|
|
(define doc (new PDFDocument [options (hasheq 'out "testrkt0.pdf")]))
|
|
(send doc end)
|
|
|
|
#|
|
|
var PDFDocument, doc, fs;
|
|
|
|
PDFDocument = require('pdfkit');
|
|
|
|
fs = require('fs');
|
|
|
|
doc = new PDFDocument;
|
|
|
|
doc.pipe(fs.createWriteStream('out.pdf'));
|
|
|
|
doc.end();
|
|
|# |