[cups-devel] can we print to a file even if there is no printer

My Sadhukhan <[email protected]> Fri, 23 Feb 2018 12:27:53 +0530
Newsgroups gmane.comp.printing.cups.devel
Message-ID <CAEYqxvS3dr8k4Siwo2cG94VQX-Q-BoNOj2aGTq9eWP5xMkjj6A@mail.gmail.com>
Hi,

I tried printing to a file in a system where there is no printer using this
code

cupsPrintFile("./out.ps", "hello.txt", "title", 0, NULL);
but it does not create out.ps.
Is it mandatory to have a printer to print to a file too?

Regards
Prasanta