Handbook
Glossary
file-to-pdf ( path encoding -- )
Vocabulary
pdf
Inputs
path
a
string
encoding
an encoding
Outputs
None
Word description
Converts
path
into a PDF, saving to
path.pdf
.
Definition
USING:
io.files
kernel
sequences
;
IN:
pdf
:
file-to-pdf
( path encoding -- )
[
file-contents
text-to-pdf
]
[
[
".pdf"
append
]
dip
set-file-contents
]
2bi
;