CGPDFDocument and PDFDocument fail

I have a bunch of PDF files that I try to open either with CGPDFDocument or PDFDocument (PDFKit) and the init return NULL. Where can I get some feedback why this is happening? I cannot find anything on Console (for connected iOS device) or the Xcode Debug Output window.

Let me say that this is not true for all PDF files, some open and some do not. It is also not a problem with permissions, the files are accessible by the app.