CAPS Universe documentation  1.0.4
All you need to know to be successful
Attaching a document

Das muss noch anders verteilt werden!

Introduction

After calling caps_rstr_job_attach() you have a lot of information at hand, how the user intends to print this document.

All functions from Job Related API give you the user's settings. With this information you can prepare your print.

On thing might be important: if the user defines more than one copy to print, caps_rstr_page_get_next() will stay at the same page until all copies of this page are printed. This might waste time and computing power, since you need to convert the raster into the printer's data format again and again.

If you want to handle copies by your own, or your printer can deal with copies by itself, then you should call caps_rstr_printer_feature_set() and set the CAPS_RSTR_HW_COPY first after attaching the job to the rasterizing engine (and before the first call to caps_rstr_page_get_next()). After that, you get each page only once.

After you have setup everything to process the print job, you can call for the first page.