Re: How to print with a different NSPrintingOrientation for each page?
Re: How to print with a different NSPrintingOrientation for each page?
- Subject: Re: How to print with a different NSPrintingOrientation for each page?
- From: David Duncan <email@hidden>
- Date: Tue, 21 Aug 2007 14:10:29 -0700
On Aug 18, 2007, at 1:23 AM, Schwill Daniel wrote:
When I start the NSPrintOperation with a printInfo with
NSPortraitOrientation and transform the pages that are in
NSLandscapeOrientation to fit the portrait orientation how will the
resulting PDF look like, when I save it as PDF? I think that the
pages with landscape orientation are rotated. Is this correct or
will the PDF contain pages in portrait and in landscape orientation
even when I transform the pages with landscape orientation to fit
the portrait orientation of the used printInfo?
If you simply do a transform of the drawing context when you draw to
the page, I would expect all pages to have the same orientation in
the PDF, but the contents to be portrait or landscape (depending on
your transform). That is like this:
_____
| | |
| | |
| V |
_____
| |
|-->|
| |
_____
(where the arrows show the direction of lines as you go down the page).
Is it possible to create a NSPrintOperation with different
orientations for each page where the resulting PDF when saved as
PDF contains pages in portrait and in landscape orientation?
I'm not certain honestly. If you need this level of control over PDF
output, I would honestly generate the PDF yourself via either PDFKit
of Quartz this way you can specify the page rect for each page yourself.
I'm able to create a PDF with pages in portrait and landscape
orientation, but I don't know how I can use this PDF in the further
processing of the NSPrintOperation for example when the user
choosed one of the PDF options in the NSPrintPanel for example
Compress PDF or Mail PDF etc.?
You can use the Core Printing APIs (PrintCore.framework in
ApplicationServices.framework). Look for the workflow options.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden