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.
17 lines
415 B
Racket
17 lines
415 B
Racket
#lang racket/base
|
|
(require pitfall/pdftest)
|
|
|
|
(define-runtime-path death "assets/death.png")
|
|
|
|
(define (proc doc)
|
|
[font doc "Times-Italic"]
|
|
[font-size doc 25]
|
|
[text doc "Some fantastic text!" 100 100 (hash 'lineBreak #f)]
|
|
[image doc death 100 160 (hash 'width 412)])
|
|
|
|
(define-runtime-path this "test5rkt.pdf")
|
|
(make-doc this #f proc)
|
|
|
|
(define-runtime-path that "test5crkt.pdf")
|
|
(make-doc that 'compress proc)
|