Send Printing mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/printing
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Printing digest..."
Today's Topics:
1. Re: Repost: Question about modifying print page size
(David Gelphman)
2. libcups.dylib and network difficulties (Alan Somers)
----------------------------------------------------------------------
Message: 1
Date: Mon, 3 Jan 2005 12:25:49 -0800
From: David Gelphman <email@hidden>
Subject: Re: Repost: Question about modifying print page size
To: Printing <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed
The correct thing to do, as the documentation implies, is to call
PMSessionCreatePageFormatList to obtain the list of paper sizes/formats
actually available for the destination printer and use the one from
that list that suits your needs. The page formats in that list reflect
the actual sheet sizes and margins for the printer.
David
On Dec 17, 2004, at 7:41 AM, a.d. jensen wrote:
(I posted this here a couple of weeks ago, and got no responses.
Hopefully someone can provide some input this time, there must be
somebody out there that has messed with printer margins before!)
I have an application which needs to override the print margins
settings to allow printing right up to the physical limitations of the
printer (or to within 1/4" of the paper edges). This is similar to the
old "Larger Print Area" setting of older print drivers.
Sorting through the headers and Apple docs found me
"PMSetUnadjustedPaperRect" which does exactly what I want, with a
singular exception (the real problem, see below.) However, it's marked
as "Not recommended" and "PMSessionCreatePageFormatList" suggested
instead, although with the caveat that that should be used if it's an
OS X application only, which isn't necessarily the case.
I WOULD have thought that PMSetAdjustedPageRect would be what you
really would use to set margins, but changing that rectangle doesn't
seem to do anything at all -- calling "GetPortBounds" on the printing
context reveals a rectangle exactly the same size as it was prior to
calling PMSetAdjustedPageRect. BTW, mucking with SetPortBounds doesn't
do anything either, although I hadn't expected it to.
Anyhoo, testing the "PMSetUnadjustedPaperRect" function works fine on
some printers, but causes others (an HP4000 in particular) to halt the
job, and on the printer LCD display say something like "Unsupported
page size, click GO to print anyway". If you hit the GO button, it
prints fine, expanded margins and all.
So, my real question is whether switching from
"PMSetUnadjustedPaperRect" to "PMSessionCreatePageFormatList" (running
on OS 9.2.2 set aside for the moment) will resolve this issue, or
whether there's another means on widening out the margins that doesn't
rely on either of these methods and can be implemented without
fluxsoring up the printer.
Thanks!
dale
-- a.d. jensen
Aatrix Software, Inc.
email@hidden http://www.aatrix.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/printing/email@hidden
This email sent to email@hidden
------------------------------
Message: 2
Date: Mon, 3 Jan 2005 17:34:44 -0600
From: Alan Somers <email@hidden>
Subject: libcups.dylib and network difficulties
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
I have a Cocoa app (not document-based) where I'm attempting to obtain
a list of the jobs (either completed or not-completed) from an IPP
printer queue using the CUPS library routines and display it in a
window.
When I link against libcups.dylib, I can get the local server jobs with
no problems but the remote server job requests either fail with an
IPP_SERVICE_UNAVAILABLE error code or I get an incomplete list. The
really weird thing is that if I link against libcups.a, everything
works flawlessly.
To set up the library I'm linking against, I'm adding a reference to
the pertinent file to the Frameworks folder in XTools, making sure that
it's associated with the target, and then building the project. Is
there anything else I need to do for dylibs? Does anybody have any
idea what might be different between linking dynamically vs. statically
against libcups that might affect network performance?
TIA.
Alan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1002 bytes
Desc: not available
Url :
http://lists.apple.com/mailman/private/printing/attachments/20050103/
93c198fe/attachment.bin
------------------------------
_______________________________________________
Printing mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/printing
End of Printing Digest, Vol 2, Issue 4
**************************************