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.
typesetting/pitfall/ptest/test5.rkt

17 lines
394 B
Racket

#lang racket/base
(require pitfall/pdftest)
8 years ago
8 years ago
(define-runtime-path death "assets/death.png")
8 years ago
(define (proc doc)
6 years ago
[font doc "Times-Italic"]
[font-size doc 25]
[text doc "Some fantastic text!" 100 100]
6 years ago
[image doc death 100 160 (hash 'width 412)])
(define-runtime-path this "test5rkt.pdf")
6 years ago
(make-doc this #f proc)
8 years ago
(define-runtime-path that "test5crkt.pdf")
6 years ago
(make-doc that 'compress proc)