• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Save as PDF"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Save as PDF"?


  • Subject: Re: "Save as PDF"?
  • From: Laurent Daudelin <email@hidden>
  • Date: Tue, 13 Oct 2009 19:02:04 -0700

Thanks, Aaron. I'll check out the links you mention. But I'm wondering what's happening in general, in all applications, what is the process of drawing an NSView, NSText and so on to end up with a PDF document, not from my own application perspective. In other words, would it be possible to instruct a given application to print a document to a PDF file automatically, without intervention from the user? The functionality is there as you can do it from the print dialog, but I'm wondering if it can be programmatically be done.


-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://nemesys.dyndns.org
Logiciels Nemesys Software              				email@hidden
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries

On Oct 13, 2009, at 18:33, Aaron Tuller wrote:

> Hi Laurent,
>
> At 5:23 PM -0700 10/13/09, Laurent Daudelin wrote:
>> Maybe a dumb question but anybody knows what's happening behind the scene when you click "Save" in the dialog that is displayed after you choose "Save as PDF" from the print dialog? What magic is performed to have the printed document, in any application supporting printing, ending as a pdf file?
>
> Check out the section in:
>
> http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKit.html
>
> called:
>
> New Support for "Save As PDFÅ " in NSDocument Printing (New since November 2008 Seed)
>
> and check the source for TextEdit in /Developer/Examples on 10.6 as noted.
>
> Also, if you're on pre-Snow Leopard or not Document Based, check out NSPrintSaveJob
>
> in:
>
> http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSPrintInfo_Class/Reference/Reference.html
>
> and then run the print operation without showing panels.
>
> -aaron
>
>

_______________________________________________

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

  • Follow-Ups:
    • Re: "Save as PDF"?
      • From: Rob Keniger <email@hidden>
References: 
 >"Save as PDF"? (From: Laurent Daudelin <email@hidden>)
 >Re: "Save as PDF"? (From: Aaron Tuller <email@hidden>)

  • Prev by Date: Re: Appropriate dealloc and finalize actions
  • Next by Date: Re: "Save as PDF"?
  • Previous by thread: Re: "Save as PDF"?
  • Next by thread: Re: "Save as PDF"?
  • Index(es):
    • Date
    • Thread