• 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: Checking whether a file is a genuine PDF file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking whether a file is a genuine PDF file


  • Subject: Re: Checking whether a file is a genuine PDF file
  • From: Charles Srstka <email@hidden>
  • Date: Mon, 5 Oct 2009 22:08:03 -0500

On Oct 5, 2009, at 9:02 PM, James Walker wrote:

FWIW, in the classic Mac OS, it was not uncommon to see a PDF with NO extension, but with the file type set to 'PDF '.

Yes. Fortunately, if you have your application check the UTI instead of the filename extension, you'll always detect that it's com.adobe.pdf whether the identifying information is in the extension, HFS type code, or anything else the OS may use in the future to determine the type.


Charles
_______________________________________________

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: 
 >Checking whether a file is a genuine PDF file (From: Squ Aire <email@hidden>)
 >Re: Checking whether a file is a genuine PDF file (From: Graham Cox <email@hidden>)
 >Re: Checking whether a file is a genuine PDF file (From: James Walker <email@hidden>)

  • Prev by Date: Re: Rounded NSBox/NSView?
  • Next by Date: Re: Making a opaque copy of an NSImage
  • Previous by thread: Re: Checking whether a file is a genuine PDF file
  • Next by thread: Re: Checking whether a file is a genuine PDF file
  • Index(es):
    • Date
    • Thread