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.
18 lines
483 B
Racket
18 lines
483 B
Racket
8 years ago
|
#lang pitfall/pdftest
|
||
|
|
||
|
(define (proc doc)
|
||
8 years ago
|
(send* doc
|
||
|
[fillColor "blue"]
|
||
|
[font "Helvetica" 30]
|
||
7 years ago
|
[translate 50 50]
|
||
8 years ago
|
[text "Here is a link!" 100 100 (hash
|
||
|
'link "http://google.com/"
|
||
8 years ago
|
'underline #t
|
||
|
'width #f)]))
|
||
8 years ago
|
|
||
8 years ago
|
(define-runtime-path this "test11rkt.pdf")
|
||
|
(make-doc this #f proc #:pdfkit #f)
|
||
|
|
||
8 years ago
|
(define-runtime-path that "test11crkt.pdf")
|
||
8 years ago
|
(make-doc that #t proc)
|