Api/dev.printfile()

From Minux Wiki
Revision as of 23:13, 8 October 2024 by Shorun (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

this function is part of the dev. api and used to print a file to a printer device.


usage:

dev.printfile(filepath, title)


output:

prints the contents of the provided file, splits it up into several pages, does NOT format the text to fit the pages, simply prints it.

sets title as the prints title


example:

dev.printfile("/test") splits the file "/test" into pages and prints them