CAPS Universe documentation  1.0.4
All you need to know to be successful
Callback page_setup()

Called when the framework has extracted all required information about the next page to print. It is called once per page.

  • parameter you get
    • framework handle
    • your private data hint
  • you can expect as already done
    • everything is working as expected, e.g. communication with the printing coordinator and the printer device
  • what you can do
    • everything to parametrize the next page rasterization
  • what you must do
    • setup the rasterizing parameter for the next page
    • everything else depends on your requirements
  • values you should return
    • 0 everything is okay, the framework can continue
    • -EINVAL if the page cannot be printed. TODO error message why!

Functions related to this state: