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/test6.rkt

23 lines
425 B
Racket

#lang racket/base
(require pitfall/pdftest)
(define (proc doc)
[text doc "Page 1"]
[add-page doc]
[text doc "Page 2"]
[add-page doc]
[text doc "Page 3"]
[add-page doc]
[text doc "Page 4"]
[add-page doc]
[text doc "Page 5"]
[add-page doc]
[text doc "Page 6"])
(define-runtime-path this "test6rkt.pdf")
(make-doc this #f proc)
(define-runtime-path that "test6crkt.pdf")
(make-doc that 'compress proc)