I will go ahead and write up a bug, but I am not entirely sure the PDF is bad.  
It does work in Safari and Acrobat.

bug report #8651074

Rich Collyer

On Nov 9, 2010, at 9:19 AM, David Duncan wrote:

> I would recommend you Report Bugs for both of these issues. Assuming the PDF 
> is valid, you shouldn't need to preflight them and they shouldn't cause 
> issues. Please attach the PDF in question to whatever bugs you file.
> 
> On Nov 9, 2010, at 6:54 AM, colors wrote:
> 
>> on some PDF files, when I call CGPDFDocumentGetPage I get the following 
>> console output:
>> 
>> invalid page tree entry.
>> invalid `Kids' array: missing or invalid dictionary at index 5.
>> 
>> Is there a way to  keep this from happening, or at least detect the PDF is 
>> going to cause this in the code, before it happens?
>> 
>> I also get:
>> 
>> <Error>: FT_Open_Face failed: error 2.
>> 
>> for some files as well when I call CGContextDrawPDFPage on some PDF files.  
>> Once again, is there a way to pre-flight the PDFs to determine if they are 
>> going to fail?
> 
> --
> David Duncan
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to