Re: Checking whether a file is a genuine PDF file
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