Comment 14 for bug 158406

Revision history for this message
Puneet (puneet-lakhina) wrote :

Hi,

On second thoughts, I looked at the code of cups-pdf and it seems like the filename is built using the title argument passed to it, so if there is some way of inserting a dialog box before after I press print and before actually printing a document, it seems to be just a task of accepting the filename argument in that dialog and passing it as the title argument to cups-pdf.

The code snippet in cups-pdf.c that im basing my above message on is the following:

if (argc<6 || argc>7) {
    (void) fputs("Usage: cups-pdf job-id user title copies options [file]\n", stderr);
    log_event(CPERROR, "call contained illegal number of arguments", NULL);
    return 0;
  }

Any opinions?