Issue in developement - IOS - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Issue in developement - IOS

Issue in developement - IOS 4 years 2 months ago #7012

  • vkinjan86
  • vkinjan86's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Hello their...

I have an error in following line of code ,Which is directly copy-paste from pdf file included in sdk zip.


I have create PDf Doc object like :

PDF_DOC m_doce;

And I have Error in code below:

- (int)PDFOpen:(NSString *)path withPassword:(NSString *)pwd
{
[self PDFClose];
const char *cpath = [path UTF8String];
PDF_ERR err = 0;
const char *password = [pwd UTF8String];
m_doce = Document_open(cpath, password, &err);
if( m_doce == NULL )
{
switch( err )
{
case err_password:
return 2;
break;
default: return 0;
}
}
CGRect rect = [[UIScreen mainScreen]bounds];
float hi = self.navigationController.navigationBar.bounds.size.height;
m_view = [[PDFView alloc] initWithFrame:CGRectMake(0, 0, rect.size.width, rect.size.height-20-hi)];

[m_view vOpen:(m_doce): self];<
<
Error showing on m_doce

[self.view addSubview:m_view];
return 1;
}


For further explanation I have attached image also..

I am using

Xcode : Version 5.1.1 (5B1008)

iOS Simulator : Version 7.1 (463.9.41)

OS X : 10.9.4

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum