Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Desktop printing questions



On Mar 1, 2005, at 2:18 PM, Laurence Harris wrote:

On 2/28/05 11:02 PM, Dave Camp didst favor us with:

You might try asking about this on the printing list.

A reasonable suggestion on the surface, but I subscribed to the printing
list and it appears that the only other person on it is some fellow who's
out of the office until 3/7, at least according to his auto-response. LOL

It's a very low traffic list. If you don't get an answer in a couple of days, try reposting... The Apple engineers do answer questions there but sometimes it takes a while.


It's possible you
might be able to manipulate the queue's directly with the CUPS API's,
but I've not looked at them from that aspect before.

I'm hoping for something that's simple. This doesn't sound simple. ;-)

The API's are documented in the built in CUPS web server which is already running on your machine as a part of cupsd. The only other documentation I'm aware of is the CUPS book by the same person that wrote the CUPS software.


<http://localhost:631/spm.html>

I'm going to speculate the problem you are seeing is due to the latency between the time you queue up a job and when CUPS wakes up and runs the queue. I don't know offhand if there is a way to force the queue to be run in the order submitted vs. whatever order it normally runs jobs in (possibly alphabetic with the spool files having lots of temp file like strings of numbers in the file names).

If the file is already in a printable format (e.g. PDF), you might try submitting the file directly to CUPS via cupsPrintFile(). I don't know if that will yield better results. That reminds me... I don't think <cups.h> is installed by default. If not, you will need to grab the source from the Darwin site.

Good luck!
Dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.