title: open PDF with PDFKit.PDFView on iOS
body: <p>I have an application with PDF viewer, and I try to use <code>PDFKit.PDFView</code> which need to <code>PDFKit.PDFDocument</code> object.</p>
  
  <p>My code is:</p>
  
  <pre><code>var pdfview = new PdfKit.PdfView();
  var path = NSBundle.MainBundle.PathForResource("Harvard", "pdf");
  var urll = new NSUrl(path);
  var pdfdoc = new PdfDocument(urll);
  pdfview.Document = pdfdoc;
  </code></pre>
  
  <p>I get an exception at line 4, which says :</p>
  
  <blockquote>
    <p>Could not initialize an instance of the type 'PdfKit.PdfDocument': the
    native 'initWithURL:' method returned nil</p>
  </blockquote>
  
  <p>My pdf file, Harvard.pdf, is in Resources folder and in direct iOS project directory with BundleResource build action.</p>
  
  <p>this PDF file can be read easily with <code>CGPDFDocument</code>, but I need to use <code>PDFView</code> to solve problem I asked for it before in 
  <a href="https://stackoverflow.com/questions/61575281/handle-links-clicking-inside-pdf-viewer-on-ios-with-swift">handle links clicking inside PDF viewer on iOS with swift</a>.
  So, can anyone help me please?</p>