Handbook
Glossary
pdf-width ( canvas obj -- n )
Vocabulary
pdf
.
layout
Inputs
canvas
an
object
obj
an
object
Outputs
n
an
object
Definition
IN:
pdf.layout
GENERIC:
pdf-width
( canvas obj -- n )
Methods
USING:
kernel
pdf.layout
;
M:
br
pdf-width
2drop
0
;
USING:
accessors
kernel
pdf.canvas
pdf.layout
sequences
;
M:
div
pdf-width
[
style>>
set-style
]
keep
items>>
[
dupd
pdf-width
]
map
nip
maximum
;
USING:
accessors
kernel
pdf.layout
;
M:
hr
pdf-width
nip
width>>
;
USING:
accessors
kernel
pdf.canvas
pdf.layout
sequences
splitting
ui.text
;
M:
p
pdf-width
[
style>>
set-style
]
keep
[
font>>
]
[
string>>
]
bi*
split-lines
[
dupd
text-width
]
map
nip
maximum
;
USING:
kernel
pdf.layout
;
M:
pb
pdf-width
2drop
0
;
USING:
kernel
pdf.layout
;
M:
table
pdf-width
2drop
450
;
USING:
accessors
kernel
pdf.canvas
pdf.layout
sequences
splitting
ui.text
;
M:
text
pdf-width
[
style>>
set-style
]
keep
[
font>>
]
[
string>>
]
bi*
split-lines
[
dupd
text-width
]
map
nip
maximum
;