• 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: "Sean McBride" <email@hidden>
  • Date: Mon, 5 Oct 2009 14:47:50 -0400
  • Organization: Rogue Research Inc.

On 10/5/09 7:49 AM, Squ Aire said:

>Thanks for the reply. However=2C of course a file can start with %PDF witho=
>ut being a valid PDF file (and not openable by Preview).
>
>I think I found an acceptable way of doing my thing. Just include the Quart=
>z framework and do
>
>PDFDocument *pdfDoc =3D [[PDFDocument alloc] initWithURL:fileURL]=3B

There is another case to consider: valid PDF files that are not
supported by Preview/Quartz.  For example, pdf files with 3D content
display fine in Acrobat Reader but not in Preview.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: Squ Aire <email@hidden>)

  • Prev by Date: Re: Address Book-style editing
  • Next by Date: Re: NSTableView: no display until header clicked
  • 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