PDFDevice Multithreading Support


Global Device Parameters
Omnis Studio provides numerous printing destinations such as the Printer, Preview, RTF and HTML. These destinations are referred to as output devices. Some of these devices have options that can be set via notation such as the destination file name. However, these options are global and shared by all print jobs regardless of the current thread. 

PDFDevice Report Object to the rescue
The PDFDevice report object moves device parameter settings away from the global memory space to the report instance memory space. This means the destination file name or other options can be calculated and assigned within the context of the report instance, avoiding potential problems that can occur with globally shared options in a multi-threaded environment.

Printing to Memory (new for version 3)
PDFDevice also allows report output to be send to an Omnis method such as a method of the current task instance avoiding multithreading issues as well as increasing performance.