Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC:

PDF Page Bookmark issue 6 years 9 months ago #12654

  • manwon
  • manwon's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 1
Do you have any solution to fix it?

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

Last edit: by manwon.

PDF Page Bookmark issue 6 years 9 months ago #12657

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,
the reason is the same also on physical device.
We will fix it as soon as possible

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

PDF Page Bookmark issue 6 years 9 months ago #12660

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
here is a quick fix:
in RDPDFViewController, composeFile method, add on top:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *basePath = [[paths objectAtIndex:0] stringByDeletingLastPathComponent];
then replace the "fileContent" string initialization with:
NSString *fileContent = [NSString stringWithFormat:@"%@,%@,%d,%f,%f",[tempPath stringByReplacingOccurrencesOfString:basePath withString:@""],tempName,pageno,x,y];

Now, in BookMarkViewController, in didSelectRowAtIndexPath, add on top:
NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *basePath = [[paths objectAtIndex:0] stringByDeletingLastPathComponent];
then replace the "path" string initialization with:
NSString *path = [basePath stringByAppendingString:[row_item objectAtIndex:0]];

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum