diff -up cups-1.3.9/cups/util.c.str3055 cups-1.3.9/cups/util.c
--- cups-1.3.9/cups/util.c.str3055 2008-07-11 23:48:49.000000000 +0100
+++ cups-1.3.9/cups/util.c 2009-01-28 17:59:03.000000000 +0000
@@ -1253,6 +1253,21 @@ cupsPrintFiles2(http_t *http, /*
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL,
title);
+ if (num_files == 1)
+ {
+ /*
+ * Add the original document filename...
+ */
+
+ if ((base = strrchr(files[0], '/')) != NULL)
+ base ++;
+ else
+ base = files[0];
+
+ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "document-name",
+ NULL, base);
+ }
+
/*
* Then add all options...
*/