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.
19 lines
508 B
Racket
19 lines
508 B
Racket
8 years ago
|
#lang pitfall/pdftest
|
||
|
|
||
|
(define-runtime-path pic "assets/test.png")
|
||
|
|
||
|
(define (proc doc)
|
||
|
(send* doc
|
||
|
[font "Helvetica-Bold"]
|
||
|
[fontSize 25]
|
||
|
[text "Another fantastic pic" 100 100 (hash 'lineBreak #f)]
|
||
|
[image pic 100 160 (hash 'width 412)]))
|
||
|
|
||
8 years ago
|
; node's zlib.deflate makes smaller files, for some reason
|
||
|
; so don't compare file sizes in this case
|
||
8 years ago
|
(define-runtime-path this "test8rkt.pdf")
|
||
8 years ago
|
(make-doc this #f proc #:pdfkit #f)
|
||
8 years ago
|
|
||
8 years ago
|
(define-runtime-path that "test8crkt.pdf")
|
||
|
(make-doc that #t proc #:pdfkit #f)
|