• 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: NSPrintInfo, setting filename for print to PDF?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPrintInfo, setting filename for print to PDF?


  • Subject: Re: NSPrintInfo, setting filename for print to PDF?
  • From: Chaitanya Pandit <email@hidden>
  • Date: Thu, 8 Apr 2010 15:36:31 +0530

Hi,
You should set the name in the NSPrintOperation object, look at the "setJobTitle:" method of NSPrintOperation

Thanks,

Chaitanya Pandit


On Apr 8, 2010, at 2:56 AM, Brian Postow wrote:

> Ok, I'm still working on this from my other question. I can see the printinfo before I run the operation, and it looks correct. NSSavePath is set to the path I want, as is the jobsavingURL. When, but when I actually DO the print to PDF, the filename, the filename becomes .pdf.pdf.
>
> When I cancel out of the print, the printinfo says the value is "" If I actually type something in and SAVE, then nsSavePath has the path to the save file.
>
> I can't find any sample code that tries to do this, and when I google search, I get my own questions. Obviously, I'm searching for the wrong thing (cocoa "save to pdf" nsprintinfo; for example). Can someone give me a pointer of a better search term, even if you don't know the answer?
>
> thanks.
>
>
> Brian Postow
> Senior Software Engineer
> Acordex Imaging Systems
>
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >NSPrintSavePath not working correctly? (From: Brian Postow <email@hidden>)
 >Re: NSPrintSavePath not working correctly? (From: Brian Postow <email@hidden>)
 >NSPrintInfo, setting filename for print to PDF? (From: Brian Postow <email@hidden>)

  • Prev by Date: CSS style string to NSAttributedString attributes conversion
  • Next by Date: Best way to Define Project Wide Static Strings?
  • Previous by thread: NSPrintInfo, setting filename for print to PDF?
  • Next by thread: Trying to get data from the AB
  • Index(es):
    • Date
    • Thread