How to check if printing to file
<p>Is there a way to tell if Fl_Printer is printing to file (.ps file)? My app needs to know if the user has chosen to print to file, so it can add some extra stuff to the printed page. I have looked at the documentation of Fl_Printer and all its heritage lineage to no avail. Is this possible with the current API? My app uses FLTK 1.3.3 and is built for Linux and OS X.</p>

<p><strong>Edit</strong></p>

<pre><code>#include &lt;FL/Fl_Printer.H&gt;
...
void SWindow::on_print()
{
    Fl_Printer printer;
    if( printer.start_job(1) ) return;
    if( printer.start_page() ) return;
    // Drawing takes place here
    printer.end_page();
    printer.end_job();
}
</code></pre>