Xerox 7750 Media Size switching

Helge Blischke h.blischke at srz.de
Wed Feb 1 05:03:30 PST 2006


Anonymous wrote:
> 
> > Anonymous wrote:
> > >
> > > > Anonymous wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > We are running a Mac OS/X Server with CUPS and a Xerox 7750GX printer.  Our application is written in Java and uses the Jipsi library to communicate with CUPS (via IPP) to print pdf documents.
> > > > >
> > > > > In the Java code, we set the MediaName (equivalent to the Media Size in CUPS - letter, legal, tabloid, etc.).
> > > > >
> > > > > When we tested this with a Lexmark T430 printer all worked well.  The printer would print the pdf document on the paper size requested by the Java code.
> > > > >
> > > > > On the Xerox 7750GX printer, it is always printing on the paper size that is set in the CUPS printer configuration web screen - 'Media Size' selection seen under the General section.
> > > > > If this Media Size is set to letter and the Java code sets MediaName to  'Tabloid' the printed output will be the pdf scaled to fit on the letter paper.  Rather than the pdf document printed on the tabloid paper.
> > > > >
> > > > > An interesting thing we noticed is that if the Java code sets MediaName to 'XXXX' (an invalid value) then the printed output will be the pdf document cropped to fit the letter paper.
> > > > >
> > > > > In the CUPS interface for this printer the Advanced section has a 'Media Mismatch Policy:' selection - this is set to the default of 'If paper type mismatch, prompt me at the printer'.  However, I am never prompted  at the printer.
> > > > > This selection box also has two other options: 'Scale document to fit currently loaded paper size' and 'Crop document to fit currently loaded paper size', the first (scaling) appears to be occuring as the default - in the above cases.  If the 2nd option is selected (crop) then when I print to the 'tabloid' MediaName and the General Media Size is set to 'letter' the tabloid pdf document is cropped.
> > > > >
> > > > > What I don't understand is why does this printer setup not honor the Media Size that I send it from my Java code?  It always wants to print on the default size that is set under the General heading in the CUPS printer configuration screen.  As I mentioned this does work for other printers, but not for the Xerox 7750.
> > > > >
> > > > > Thanks,
> > > > > RG
> > > >
> > > > Please post what your CUPS server gets - both the control file (cxxxx) and the data file (dxxxx-nnn).
> > > > Without knowing in detail what you specify as job attributes and what the job data itself
> > > > contain in this repsect is is hardly possible to settle your issue.
> > > >
> > > > Helge
> > > >
> > > >
> > > Hi,
> > >
> > > I was able to get a sample control file, I should have a sample data file tomorrow - it appears that both these files have many non-printable characters in them.
> > > Here is the sample control file (with the non-printable characters removed):
> > > G
> > > attributes-charset utf-8 H
> > > attributes-natural-language en E
> > > printer-uri;ipp://127.0.0.1:631/printers/10.10.14.249 B
> > > requesting-user-password 002a003300240 B
> > > job-originating-user-name - B
> > > document-format application/pdf A
> > > media tabloid!
> > > copies I
> > > document-format application/pdf!job-priority 2B
> > > job-name UntitledB
> > > job-originating-host-name localhost!
> > > job-id .#
> > > job-state !
> > > job-media-sheets-completed E
> > > job-printer-uri <http://127.0.0.1:631/printers/10.10.14.249B
> > > job-name Untitled!job-k-octets !
> > > time-at-creation C�? N!
> > > time-at-processing C�? N!
> > > time-at-completed C�? OD
> > > job-hold-until no-holdB
> > > job-sheets noneB none
> > >
> > > RG
> > >
> > > 
> >
> > In the meantime: try to print e.g. a text file to your printer with the command
> >
> >       lp -d your_printer -o media=tabloid your_text_file_name
> >
> > and see if the correct media gets selected. If not, I suspect that your
> > printer does not know what tabloid is.
> >
> > Helge
> >
> Hi,
> 
> The result of printing using the lp command is that the tabloid pdf file reduced and printed on Letter size paper.  This is the same as what is occurring when we print through CUPS.
> 
> This pdf document can be printed correctly (on this printer and from this Mac server) from Mac Preview or Adobe Acrobat if the Page setup is set to Tabloid.
> 
> We have recently talked with Xerox support and they thought that the pdf might not have the correct page setup.  When we open these pdf documents in Adobe Acrobat it tells us that the page size = 11 x 17 in (which is tabloid).  Can you encode the printing page setup in a pdf?
> 
> Following is a sample data file that is being sent (with some non-printable characters removed at the '<SNIP>' tag).
> 
> How do these two files work (the control and data files) are they the files created by CUPS based on our request through the CUPS IPP?  Or are they the files that are sent to the printer from CUPS?
> 
> Thanks for you help,
> RG
> 
> %PDF-1.4
> 3 0 obj <<
> /Length 184
> /Filter /FlateDecode
> >>
> stream
> xÃsÂ?P;<SNIP>ûF¶endstream
> endobj
> 2 0 obj <<
> /Type /Page
> /Contents 3 0 R
> /Resources 1 0 R
> /MediaBox [0 0 792 1224]
> /Parent 6 0 R
> >> endobj
> 1 0 obj <<
> /Font << /F29 5 0 R >>
> /ProcSet [ /PDF /Text ]
> >> endobj
> 7 0 obj <<
> /Type /Encoding
> /Differences [ 0 /.notdef/dotaccent/fi/fl/fraction/hungarumlaut/Lslash/lslash/ogonek/ring/.notdef/breve/minus/.notdef/Zcaron/zcaron/caron/dotlessi/dotlessj/ff/ffi/ffl/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/grave/quotesingle/space/exclam/quotedbl/numbersign/dollar/percent/ampersand/quoteright/parenleft/parenright/asterisk/plus/comma/hyphen/period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon/semicolon/less/equal/greater/question/at/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O/P/Q/R/S/T/
> U/V/W/X/Y/Z/bracketleft/backslash/bracketright/asciicircum/underscore/quoteleft/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/braceleft/bar/braceright/asciitilde/.notdef/Euro/.notdef/quotesinglbase/florin/quotedblbase/ellipsis/dagger/daggerdbl/circumflex/perthousand/Scaron/guilsinglleft/OE/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/quotedblleft/quotedblright/bullet/endash/emdash/tilde/trademark/scaron/guilsinglright/oe/.notdef/.notdef/Ydieresis/.notdef/exclamdown/cent/sterling/currenc
> y/yen/brokenbar/section/dieresis/copyright/ordfeminine/guillemotleft/logicalnot/hyphen/registered/macron/degree/plusminus/twosuperior/threesuperior/acute/mu/paragraph/periodcentered/cedilla/onesuperior/ordmasculine/guillemotright/onequarter/onehalf/threequarters/questiondown/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla/egrave/eacute/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis/eth/ntilde/ograve/oacute/ocircumflex/otilde/odieresis/divide/oslash/ugrave/uacute/ucircumflex/udieresis/yacute/thorn/ydieresis]
> >> endobj
> 5 0 obj <<
> /Type /Font
> /Subtype /Type1
> /Encoding 7 0 R
> /BaseFont /Helvetica-Bold
> >> endobj
> 6 0 obj <<
> /Type /Pages
> /Count 1
> /Kids [2 0 R]
> >> endobj
> 8 0 obj <<
> /Type /Catalog
> /Pages 6 0 R
> /PTEX.Fullbanner (This is pdfTeX, Version 3.141592-1.11b)
> >> endobj
> 9 0 obj <<
> /Producer (pdfTeX-1.11b)
> /Creator (TeX)
> /CreationDate (D:20060130144007-07'00')
> >> endobj
> xref
> 0 10
> 0000000004 65535 f
> 0000000376 00000 n
> 0000000271 00000 n
> 0000000009 00000 n
> 0000000000 00000 f
> 0000002297 00000 n
> 0000002388 00000 n
> 0000000444 00000 n
> 0000002445 00000 n
> 0000002552 00000 n
> trailer
> <<
> /Size 10
> /Root 8 0 R
> /Info 9 0 R
> /ID [<2FC9764BB692D976E880DDC693C050A7> <2FC9764BB692D976E880DDC693C050A7>]
> >>
> startxref
> 2653
> %%EOF

The PDF is OK, the MediaBox specifies tabloid size exactly. I'd strongly suggest to 
convert the PDF to a PostScript job by
	pdftops -paper match your_PDF_file your_PS_file
(using the pdtfops utility from the xpdf suire; make sure using a version of 3.0x at least)
and print the PS file. If it then prints on the correct media size, your issue is due to
the restrictions of CUPS' pdftops filter (which seems to support only letter, legal, A4, A3,
and a "universal" format which has dimensions someshere between letter and A4.

If what I suspect s true, you could resort to the "alternate pdftops filter" as I suggested
earlier.

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups mailing list