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.
21 lines
335 B
Racket
21 lines
335 B
Racket
#lang br
|
|
|
|
(require pitfall/kit/document)
|
|
|
|
(define doc (new PDFDocument))
|
|
(send doc pipe (open-output-file "testrkt0.pdf" #:exists 'replace))
|
|
(send doc end)
|
|
|
|
#|
|
|
var PDFDocument, doc, fs;
|
|
|
|
PDFDocument = require('pdfkit');
|
|
|
|
fs = require('fs');
|
|
|
|
doc = new PDFDocument;
|
|
|
|
doc.pipe(fs.createWriteStream('out.pdf'));
|
|
|
|
doc.end();
|
|
|# |