Xerox 7750 Media Size switching

Anonymous anonymous at easysw.com
Mon Jan 30 20:45:54 PST 2006


> 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






More information about the cups mailing list