- Posts: 36
- Thank you received: 1
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about iOS development and PDF
PDF Page Bookmark issue
IP: 192.168.0.71
8 years 8 months ago - 8 years 8 months ago #12654
by manwon
Replied by manwon on topic PDF Page Bookmark issue
Do you have any solution to fix it?
Last edit: 8 years 8 months ago by manwon.
IP: 192.168.0.71
8 years 8 months ago #12657
by emanuele
Replied by emanuele on topic PDF Page Bookmark issue
Hi,
the reason is the same also on physical device.
We will fix it as soon as possible
the reason is the same also on physical device.
We will fix it as soon as possible
IP: 192.168.0.71
8 years 8 months ago #12660
by emanuele
Replied by emanuele on topic PDF Page Bookmark issue
here is a quick fix:
in RDPDFViewController, composeFile method, add on top:
then replace the "fileContent" string initialization with:
Now, in BookMarkViewController, in didSelectRowAtIndexPath, add on top:
then replace the "path" string initialization with:
in RDPDFViewController, composeFile method, add on top:
Code:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *basePath = [[paths objectAtIndex:0] stringByDeletingLastPathComponent];
Code:
NSString *fileContent = [NSString stringWithFormat:@"%@,%@,%d,%f,%f",[tempPath stringByReplacingOccurrencesOfString:basePath withString:@""],tempName,pageno,x,y];
Now, in BookMarkViewController, in didSelectRowAtIndexPath, add on top:
Code:
NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *basePath = [[paths objectAtIndex:0] stringByDeletingLastPathComponent];
Code:
NSString *path = [basePath stringByAppendingString:[row_item objectAtIndex:0]];
Time to create page: 0.362 seconds