Specifying different kinds of HP photo paper

Asked by Jussi Hukkanen

I've got a Photosmart Premium c310 printer/scanner. If I want to print high-quality photos using HP Premium Plus photo paper, I cannot find a way to select that specific type of paper. I'm only given the media type options of Plain Paper, Photo Paper, and Transparency. In Windows, on the other hand, HP's printer driver seems to provide a long list of different kinds of glossy or matte photo papers and other media types.

I was reading question #195051 here and it would appear that I can add lines to the PPD file specifying the media types I need. Unfortunately, I would need to know exactly how these lines should read, or at the very least, the meanings of different "cupsMediaType" values. Is there documentation somewhere describing this?

So my question is how should I go about editing my PPD file if I wanted the option to use HP's Everyday Photo Paper as well as things like Advanced, Premium and Premium Plus photo paper? Any help would be appreciated. Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Sanjay Kumar
Solved:
Last query:
Last reply:
Revision history for this message
Jussi Hukkanen (jussi-hukkanen) said :
#1

In case it makes any difference, I'm using HPLIP 3.12.9 in Debian wheezy 64-bit.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Jussi Hukkanen (jussi-hukkanen) said :
#3

Can anyone shed any light on this? Do I need to provide more info about my setup?

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#4

Hi,

Thanks for reporting the issue.Can you follow question #195051. FYI cupsMediaType values are as follows.

-1 for Automatic media sense
0 for plain paper
2 for coated paper
3 for photo media
4 for transparency
5 for fast glossy photo
6 for fast dry transparency
8 for brochure papers

Thanks,
Sanjay

Revision history for this message
Best Sanjay Kumar (sanjay-kumar14) said :
#5

Mapping of Photo papers in general is as follows.

HP Premium Plus Photo Papers 3
HP Premium Photo Papers 3
HP Photo Paper, Glossy 5
HP Advanced Photo Papers 5
HP Everyday Photo Paper, Glossy 3

Revision history for this message
Jussi Hukkanen (jussi-hukkanen) said :
#6

Thanks for your help. I added the following lines to my PPD file (Photosmart_Prem_C310.ppd) and copied it to /etc/cups/ppd/ as well as /usr/share/ppd/HP/ (gzipped).

*MediaType Glossy3a/HP Premium Plus Photo Paper: "<</MediaType(HPPremiumPlus)/cupsMediaType 3>>setpagedevice"
*MediaType Glossy3b/HP Premium Photo Paper: "<</MediaType(HPPremium)/cupsMediaType 3>>setpagedevice"
*MediaType Glossy5a/HP Advanced Photo Paper: "<</MediaType(HPAdvanced)/cupsMediaType 5>>setpagedevice"
*MediaType Glossy3c/HP Everyday Glossy Photo Paper: "<</MediaType(HPEverydayGlossy)/cupsMediaType 3>>setpagedevice"

Unfortunately, I haven't been able to confirm if this works, because now `hp-toolbox' has stopped working. I can launch `hp-systray', but accessing the Device Manager from there does nothing. If I try to run `hp-toolbox' from a terminal, I get this:

HP Linux Imaging and Printing System (ver. 3.12.9)
HP Device Manager ver. 15.0

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: Fax disabled.
warning: Fax disabled.
warning: Please install version 2.0+ of Reportlab for coverpage support.
QGtkStyle was unable to detect the current GTK+ theme.
Traceback (most recent call last):
  File "/usr/bin/hp-toolbox", line 257, in <module>
    toolbox = DevMgr5(__version__, device_uri, None)
  File "/usr/share/hplip/ui4/devmgr5.py", line 204, in __init__
    if not utils.Is_HPLIP_older_version( installed_version, self.user_settings.latest_available_version):
  File "/usr/share/hplip/base/utils.py", line 1927, in Is_HPLIP_older_version
    if(int(installed_array[cnt]) < int(available_array[cnt])):
ValueError: invalid literal for int() with base 10: "10a Public Release</a><br />')"

The program returns an exit code of 1. This doesn't seem related to the original problem, as it occurs even with the original PPD file installed. I hope this goes away if i update HPLIP.

Revision history for this message
Jussi Hukkanen (jussi-hukkanen) said :
#7

Things seem to be working now, although I haven't actually tried printing yet. I updated HPLIP to version 3.12.10a and my customized paper types are now listed the way I want them. Thank you!

However, I encountered something strange when I updated HPLIP. The installer installs the `hpijs' PPD file, but I can't print anything unless I replace it with the `hpcups' variant. The same thing happened with 3.12.9 as well. This doesn't seem related to the paper type issue, so I posted a new question about it:
http://answers.launchpad.net/hplip/+question/211567

Revision history for this message
Jussi Hukkanen (jussi-hukkanen) said :
#8

I did some testing with HP's Advanced Photo Paper and the results are indeed better when using a cupsMediaType value of 5 instead of 3. I'm going to edit my custom PPD file a bit further, as it doesn't seem reasonable to have several paper type definitions sharing the same cupsMediaType. Thanks very much for your help.

Revision history for this message
Jussi Hukkanen (jussi-hukkanen) said :
#9

Thanks Sanjay Kumar, that solved my question.