Please add 11x17 Tabloid for OJ7110 Wide Format

Bug #1201935 reported by abeowitz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Invalid
Undecided
Unassigned

Bug Description

11x17in not listed in HPLIP driver paper options for OfficeJet 7110 Wide Format.

Max paper size is 13x19.

Cannot set custom paper dimensions in CUPS, switches back to 8.5x11.

hpcups driver does do 11x17, so not a show stopper.

Not sure which driver is best.

Thanks!

CVE References

Revision history for this message
Johannes Meixner (jsmeix) wrote :
Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello abeowitz ,

OJ7110 Wide Format Printer PPD already has "Tabloid 11x17" paper size string. This paper size should be seen in all of the following places.

1) Application print dialog
2) HP Device Manager (hp-toolbox) printer settings
3) Cups URI (localhost:631)
4) system-config-printer -> Printer options

Please let us know where is this paper size not getting listed? As we support and test only hpcups and PS ppds (i.e hpijs is no more tested). so you will have only one driver/PPD (hpcups ppd) for OJ 71110.

And regrading custom paper sizes, hpcups does not support custom paper sizes as of now. But manually adding the custom paper in the PPD is possible. I will send you the instruction soon.

Thanks,
Sanjay

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Steps to add custom paper size in hpcups ppd.
1) Install latest HPLIP release if current HPLIP release does not contain support for the given printer.

2) Open /usr/share/hplip/data/models/models.dat and search for Printer model name section for which you need to add custom paper size.

3) Note down the 'tech-class' and 'tech-subclass' values.
    e.g for HP Officejet 7110 Wide format printer tech-class=Saipan and tech-subclass=Advanced

4) Open /usr/share/cups/drv/hpcups.drv file in root mode for editing.

5) Search 'tech-class:tech:subclass' section in the hpcups.drv file.
   e.g for HP Officejet 7110 Wide format printer, search for 'Saipan:Advanced' string.

6) Just above the searched string add custom paper size.

  Generic syntax (All values are in postscript points, 1 inch = 72 postscript points):

  CustomMedia "CUSTOM_PAPER1/CUSTOM_PAPER2" WIDTH HEIGHT LeftMargin BottomMargin RightMargin TopMargin "<</cupsInteger0 PCL_ID/PageSize [WIDTH HEIGHT]/ImagingBBox null>>setpagedevice" "<</cupsInteger0 PCL_ID/PageSize[WIDTH HEIGHT]/ImagingBBox null>>setpagedevice"

  Where:
  CUSTOM_PAPER1 = Any Unique name of the paper size used internally for constraint checking etc.
  CUSTOM_PAPER2 = Display Name of the paper size, which will be seen by the user in print dialog.
  WIDTH HEIGHT : All in postscript points
  LeftMargin BottomMargin RightMargin TopMargin: For best results use margins of the nearst statdard paper size.
  PCL_ID : 101 (Always 101 for hpcups ppds)
    e.g
  CustomMedia "CUSTOM_6x7in/CUSTOM 6x7in" 432 504 14 14 14 14 "<</cupsInteger0 101/PageSize [432 504]/ImagingBBox null>>setpagedevice" "<</cupsInteger0 101/PageSize[432 504]/ImagingBBox null>>setpagedevice"

7) Save the file and remove previously added print queue (if any) and restart cups.

8) Add new print queue.

9) New ppd file will be now generated from the hpcups.drv file and newly created paper size will be seen in print dialog.

Revision history for this message
Johannes Meixner (jsmeix) wrote :
Download full text (4.2 KiB)

Hello Sanjay Kumar,

many thanks for your description above how to
add custom paper size in hpcups.

At the end you wrote "New ppd file will be now generated
from the hpcups.drv file".

At least for openSUSE's HPLIP RPM packages this is not true
because intentionally I provide ready-made static PPDs in
our HPLIP RPM packages (I compile HPLIP with matching
configure options).

In particular note that dynamic PPDs will be deprecated
in the future in CUPS, see CUPS STR #3772.

For details and reasoning see
https://build.opensuse.org/package/view_file/Printing/hplip?expand=1&file=hplip.spec
--------------------------------------------------------------------------------
%build
...
# Static "hpijs" PPD files via enable-foomatic-ppd-install
# require foomatic-rip-hplip via their cupsFilter entries
# so that enable-foomatic-rip-hplip-install is also needed.
# Since version 3.9.6 the default printer driver install changed
# from hpijs to hpcups.
# According to http://hplipopensource.com/hplip-web/release_notes.html
# all drv installs require CUPSDDK 1.2.3 or higher.
# Otherwise a static PPD install must be performed.
# Furthermore dynamic PPDs will be deprecated in the future in CUPS,
# see http://www.cups.org/str.php?L3772
# For hpcups static PPD install one needs:
# --enable-hpcups-install enable hpcups install (default=yes)
# --disable-cups-drv-install enable cups dynamic ppd install (default=yes)
# --enable-cups-ppd-install enable cups static ppd install (default=no)
# For both hpcups and hpijs install with static PPDs one needs additionally:
# --enable-hpijs-install enable hpijs install (default=no)
# --disable-foomatic-drv-install enable foomatic dynamic
# ppd install (default=no), uses drvdir and hpppddir
# --enable-foomatic-ppd-install enable foomatic static
# ppd install (default=no), uses hpppddir
# --enable-foomatic-rip-hplip-install enable foomatic-rip-hplip
# install (default=no), uses cupsfilterdir
# Because foomatic-rip-hplip has CVE-2011-2697 (bnc#698451)
# plus a leftover in CVE-2004-0801 (bnc#59233)
# which are fixed up to openSUSE 11.4 with patches,
# after openSUSE 11.4 (i.e. since openSUSE 12.1)
# foomatic-rip-hplip is no longer installed and foomatic-rip
# from foomatic-filters is used instead so that
# --disable-foomatic-rip-hplip-install is explicitly set
# and as a consequence the "cupsFilter" entries
# in the static PPDs are changed in the install section
# to use foomatic-rip.
./configure --prefix=/usr \
            --libdir=%{_libdir} \
            --disable-qt3 \
            --enable-qt4 \
            --disable-policykit \
            --enable-doc-build \
            --enable-network-build \
            --enable-pp-build \
            --enable-scan-build \
            --enable-gui-build \
            --enable-fax-build \
            --enable-dbus-build \
            --enable-hpcups-install \
            --disable-cups-drv-install \
            --enable-cups-ppd-install \
            --enable-hpijs-install \
            --disable-foomatic-drv-install \
            --enable-foomatic-ppd-install \
            --disable-foomatic-rip-hplip-install \
            --with-hpppddir=%{_datadir}/cups/model/manufacturer-PPDs/%{name} ...

Read more...

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Johannes,

The reason why I suggested DRV file changes was that it is easy to add paper in DRV file (Only one line change). In case of direct PPD change, lot of changes are required. Probably we will have some utility/tool in near future which will take care of adding custom paper (update ppd in /etc/cups/ppd/.....ppd) after asking user for all required values like width, height, margins etc.

Thanks,
Sanjay

Revision history for this message
abeowitz (abeowitz-gmail) wrote :

Thanks for the info, Sanjay. :)

Tabloid/11x17 wasn't listed in the HPIJS driver, but is listed in the HPcups driver.

I'll stick with the HPCups driver then, which works well, and we can close this bug.

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Changing status to Invalid because no code change was done for this.

Changed in hplip:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.