racket/collects/scribblings/draw/pdf-dc-class.scrbl
Matthew Flatt 2bdcdbb197 racket/draw, racket/gui: modernize contracts, mostly in documentation
Use `or/c' instead of `one-of/c', `#f' instead of `false/c'.
2012-04-06 18:51:10 -06:00

20 lines
755 B
Racket

#lang scribble/doc
@(require "common.rkt")
@defclass/title[pdf-dc% object% (dc<%>)]{
Like @racket[post-script-dc%], but generates a PDF file instead of a
PostScript file.
@defconstructor[([interactive any/c #t]
[parent (or/c (is-a?/c frame%) (is-a?/c dialog%) #f) #f]
[use-paper-bbox any/c #f]
[as-eps any/c #t]
[width (or/c (and/c real? (not/c negative?)) #f) #f]
[height (or/c (and/c real? (not/c negative?)) #f) #f]
[output (or/c path-string? output-port? #f) #f])]{
See @racket[post-script-dc%] for information on the arguments. The
@racket[as-eps] argument is allowed for consistency with
@racket[post-script-dc%], but its value is ignored.}}