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
8 years ago
|
#lang br
|
||
|
|
||
|
(require pitfall/kit/document)
|
||
|
|
||
8 years ago
|
(define doc (new PDFDocument [options (hasheq 'out "testrkt0.pdf")]))
|
||
8 years ago
|
(send doc end)
|
||
|
|
||
|
#|
|
||
|
var PDFDocument, doc, fs;
|
||
|
|
||
|
PDFDocument = require('pdfkit');
|
||
|
|
||
|
fs = require('fs');
|
||
|
|
||
|
doc = new PDFDocument;
|
||
|
|
||
|
doc.pipe(fs.createWriteStream('out.pdf'));
|
||
|
|
||
|
doc.end();
|
||
|
|#
|