hi
i know i must use this method :
int result = [m_pdf PDFOpen:pdfFullPath :@"xxxxxxxx"];
if(result == 1)
{
UINavigationController *nav = self.navigationController;
m_pdf.hidesBottomBarWhenPushed = YES;
m_pdf.navigationItem.title = @"Viewer";
[nav pushViewController:m_pdf animated:YES];
int pageno =1;
// [m_pdf initbar:pageno];
[m_pdf PDFThumbNailinit:pageno];
}
//return value is encryption document
else if(result == 2)
{
[pwdDlg show];
}
it going to [pwdDlg show]; but when enter password of pdf nothing happen
i debug it & see when it going to it i see :
-(int)PDFOpen:(NSString *)path : (NSString *)pwd
{
[self PDFClose];
const char *cpath = [path UTF8String];
PDF_ERR err = 0;
const char * password = [pwd UTF8String];
m_doc = Document_open(cpath, password, &err);
if( m_doc == NULL )
{
switch( err )
{
case err_password:
return 2;
break;
default: return 0;
}
}
it going to return 2 and alert show up but when enter password any thing happen