[PTPDFViewCtrl OpenUrlAsync: WithPDFPassword:@""];
void HandleDownloadEventType (object sender, PDFViewCtrl.DocumentDownloadedEventArgs e)
{
PDFViewCtrl.DownloadTypes type = (PDFViewCtrl.DownloadTypes)sender;
if (type == PDFViewCtrl.DownloadTypes.e_downloadtype_opened)
{
// can now get the page count
}
else if (type == PDFViewCtrl.DownloadTypes.e_downloadtype_finished)
{
// finished
}
else if (type == PDFViewCtrl.DownloadTypes.e_downloadtype_failed)
{
// failed
}
}