Handbook
Glossary
pdf-pages ( n -- str )
Vocabulary
pdf
.
layout
Inputs
n
an
object
Outputs
str
an
object
Definition
USING:
formatting
kernel
make
ranges
sequences
splitting
;
IN:
pdf.layout
:
pdf-pages
( n -- str )
[
"<<"
,
"/Type /Pages"
,
"/MediaBox [ 0 0 612 792 ]"
,
[
"/Count %d"
sprintf
,
]
[
16
swap
2
range
boa
[
"%d 0 R "
sprintf
]
map
concat
"/Kids [ "
"]"
surround
,
]
bi
">>"
,
]
{
}
make
join-lines
;