- Posts: 67
- Thank you received: 0
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
- apdeveloper
- Topic Author
- Offline
- Senior Member
-
Less
More
9 years 6 months ago #11139
by apdeveloper
PDF Page Bookmark issue was created by apdeveloper
Hi,
This is with regard to the bookmark functionality.
I am encountering an error on accessing the bookmarked page from the Bookmark tab. On clicking the Bookmark entry, it throws the following alert exception - 'Error Document, Can't Open'
Request you to kindly guide me on the same.
This is with regard to the bookmark functionality.
I am encountering an error on accessing the bookmarked page from the Bookmark tab. On clicking the Bookmark entry, it throws the following alert exception - 'Error Document, Can't Open'
Request you to kindly guide me on the same.
9 years 6 months ago #11140
by emanuele
Replied by emanuele on topic PDF Page Bookmark issue
Hi,
are you using the demo project?
can you share the pdf used to reproduce this issue?
are you using the demo project?
can you share the pdf used to reproduce this issue?
IP: 192.168.0.71
8 years 8 months ago - 8 years 8 months ago #12646
by manwon
Replied by manwon on topic PDF Page Bookmark issue
I found the issue how can trigger it. I quit the app after add bookmark and then rebuild the apps. It will show document cannot open.
But I add bookmark and quit app. I don't rebuild the apps. I click the app icon to open the app. The bookmark is work.
But I add bookmark and quit app. I don't rebuild the apps. I click the app icon to open the app. The bookmark is work.
Last edit: 8 years 8 months ago by manwon.
IP: 192.168.0.71
8 years 8 months ago #12650
by emanuele
Replied by emanuele on topic PDF Page Bookmark issue
Can you better explain?
"quit the app" and "rebuild the apps" are action that you do with Xcode? Or are you closing the app from device and then reopen it?
Can you reproduce this issue also with demo project?
"quit the app" and "rebuild the apps" are action that you do with Xcode? Or are you closing the app from device and then reopen it?
Can you reproduce this issue also with demo project?
IP: 192.168.0.71
8 years 8 months ago - 8 years 8 months ago #12651
by manwon
Replied by manwon on topic PDF Page Bookmark issue
Sorry, my English is not good. I try to explain better.
Problem case:
First I install the app in Xcode and then add the bookmark. The bookmark is work. Then stop the Xcode and rebuild it in Xcode again. The bookmark will not work show the message Document cannot open.
Work case:
If I build the app in Xcode, also add the book mark. Then I also stop the Xcode. Only press the app icon. The bookmark is work
This issue also happen in demo project. I cannot reproduce it.
Problem case:
First I install the app in Xcode and then add the bookmark. The bookmark is work. Then stop the Xcode and rebuild it in Xcode again. The bookmark will not work show the message Document cannot open.
Work case:
If I build the app in Xcode, also add the book mark. Then I also stop the Xcode. Only press the app icon. The bookmark is work
This issue also happen in demo project. I cannot reproduce it.
Last edit: 8 years 8 months ago by manwon.
IP: 192.168.0.71
8 years 8 months ago #12653
by emanuele
Replied by emanuele on topic PDF Page Bookmark issue
Hi,
the demo bookmark implementation store a file with the bookmark info, and also the pdf path is stored in this file.
When you run the application on iOS simulator, the application path changes every time:
first run:
.../Library/Developer/CoreSimulator/Devices/19B59FBA-D11B-4400-99B2-17E38578ADB3/data/Containers/Data/Application/D41536FF-20F8-49D7-BA33-DB27658025C2/Documents/help.pdf
second run:
.../Library/Developer/CoreSimulator/Devices/19B59FBA-D11B-4400-99B2-17E38578ADB3/data/Containers/Data/Application/F5E4C498-927A-4AD2-AD4E-24DB16E6D76B/Documents/help.pdf
unfortunately in this case the pdf path is changed and the opening action returns an error message because is using the old pdf path.
the demo bookmark implementation store a file with the bookmark info, and also the pdf path is stored in this file.
When you run the application on iOS simulator, the application path changes every time:
first run:
.../Library/Developer/CoreSimulator/Devices/19B59FBA-D11B-4400-99B2-17E38578ADB3/data/Containers/Data/Application/D41536FF-20F8-49D7-BA33-DB27658025C2/Documents/help.pdf
second run:
.../Library/Developer/CoreSimulator/Devices/19B59FBA-D11B-4400-99B2-17E38578ADB3/data/Containers/Data/Application/F5E4C498-927A-4AD2-AD4E-24DB16E6D76B/Documents/help.pdf
unfortunately in this case the pdf path is changed and the opening action returns an error message because is using the old pdf path.
Time to create page: 0.443 seconds