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

More
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.
More
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
More
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:
Code:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *basePath = [[paths objectAtIndex:0] stringByDeletingLastPathComponent];
then replace the "fileContent" string initialization with:
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];
then replace the "path" string initialization with:
Code:
NSString *path = [basePath stringByAppendingString:[row_item objectAtIndex:0]];
Time to create page: 0.362 seconds
Powered by Kunena Forum