Mailing Lists: Apple Mailing Lists

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

Question of PMPageFormat and Ticket



Dear all,
The XML file below represents the PMPaperInfoTicket, which is a sub-ticket in PMPageFormatTicket.
By using APIs in Ticket services, it is possible to Get/Set items in this ticket. Unfortunately, I failed to set value for the item
"com.apple.print.PaperInfo.PMPaperName" .
When I use the API "::PMTicketSetCFString", it spat an unknown err= -9756.
I am almost able to do Get/Set with all other items.
I only get the value of this item. It seems that Mac-OS10 does not allow to set the value for this item.
Anyone experienced this problem please consult me.
Thanks a lot.
regards,
Viet.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
<key>com.apple.print.PageFormat.PMAdjustedPageRect</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PageFormat.PMAdjustedPageRect</key>
<array>
<real>0.0</real>
<real>0.0</real>
<real>662</real>
<real>497</real>
</array>
<key>com.apple.print.ticket.client</key>
<string>EPSON.printer</string>
<key>com.apple.print.ticket.modDate</key>
<date>2005-01-27T23:38:30Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PageFormat.PMAdjustedPaperRect</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PageFormat.PMAdjustedPaperRect</key>
<array>
<real>-9</real>
<real>-9</real>
<real>719</real>
<real>506</real>
</array>
<key>com.apple.print.ticket.client</key>
<string>EPSON.printer</string>
<key>com.apple.print.ticket.modDate</key>
<date>2005-01-27T23:38:30Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMPaperName</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.print.pm.PostScript</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMPaperName</key>
<string>na-legal</string>
<key>com.apple.print.ticket.client</key>
<string>com.apple.print.pm.PostScript</string>
<key>com.apple.print.ticket.modDate</key>
<date>2003-07-01T17:49:36Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>1</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMUnadjustedPageRect</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.print.pm.PostScript</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMUnadjustedPageRect</key>
<array>
<real>0.0</real>
<real>0.0</real>
<real>662</real>
<real>497</real>
</array>
<key>com.apple.print.ticket.client</key>
<string>EPSON.printer</string>
<key>com.apple.print.ticket.modDate</key>
<date>2005-01-27T23:38:38Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMUnadjustedPaperRect</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.print.pm.PostScript</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMUnadjustedPaperRect</key>
<array>
<real>-18</real>
<real>-18</real>
<real>990</real>
<real>594</real>
</array>
<key>com.apple.print.ticket.client</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.modDate</key>
<date>2005-01-27T23:37:53Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.ppd.PMPaperName</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.print.pm.PostScript</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.ppd.PMPaperName</key>
<string>US Legal</string>
<key>com.apple.print.ticket.client</key>
<string>com.apple.print.pm.PostScript</string>
<key>com.apple.print.ticket.modDate</key>
<date>2003-07-01T17:49:36Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>1</integer>
</dict>
</array>
</dict>
<key>com.apple.print.ticket.APIVersion</key>
<string>00.20</string>
<key>com.apple.print.ticket.privateLock</key>
<false/>
<key>com.apple.print.ticket.type</key>
<string>com.apple.print.PaperInfoTicket</string>
</dict>
</plist>


On Jan 26, 2005, at 12:09 PM, email@hidden wrote:

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. Quartz Filters (email@hidden)


----------------------------------------------------------------------

Message: 1
Date: Tue, 25 Jan 2005 17:32:40 -0500
From: email@hidden
Subject: Quartz Filters
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII

I was rummaging through a collection of printing list topics I've printed
and noticed one from 6 Nov 2003 about object detection (distinguishing
text, bitmaps, etc.). Paul mentioned that Apple introduced Quartz filters
in Panther and suggested the writer "investigate their potential for the
functionality you have in mind." While I wasn't that writer, I am
interested in what Quartz filters can do, but can't find any documentation
on them.


Does anyone know where such documentation exists?



------------------------------

_______________________________________________
Printing mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/printing

End of Printing Digest, Vol 2, Issue 16
***************************************


_______________________________________________ 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


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.