You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We tried to open PDF (LCP) file both in our App(with Swift-toolkit integration) and Test app. We were able to successfully open it. However, we experienced an empty Table of Contents for pdf files.
We tried to view the PDF with LCP in other Ebook Reader like Thorium and it can fetch the publication's table contents. However in the Test app and our app, we can't retrieve it. Hope you can assist us on how to fetch it thanks!
Expected behavior
We expected to view the table of contents list like the one we are using on .epub files.
How to reproduce?
Using Test App:
Press the "+" button on the right navigation bar and select From a URL.
This is not supported right now, only the metadata taken from the manifest.json file inside the lcpdf are used.
We might implement a fallback on the LCP encrypted PDF in specific cases (blank manifest and only one PDF resource). This was not done because it required to open the PDF twice, in the Streamer and then in the Navigator. Now it should be easier to implement it with the CacheService.
I don't know if and when this will be implemented, as it's not a priority for the core maintainers right now. So unless a contributor step up, it might take a while.
Bug Report
What happened?
We tried to open PDF (LCP) file both in our App(with Swift-toolkit integration) and Test app. We were able to successfully open it. However, we experienced an empty Table of Contents for pdf files.
mediaType : application/pdf+lcp
Extension: lcpdf
Sample PDF LCP
https://tuxedo-preprod-icdp.yondu.net/api/ebook/mobile/lcp/get-book-lcp/be7ec450-4617-4b53-bc92-d910951636ea/293
[passphrase: 293]
We tried to view the PDF with LCP in other Ebook Reader like Thorium and it can fetch the publication's table contents. However in the Test app and our app, we can't retrieve it. Hope you can assist us on how to fetch it thanks!
Expected behavior
We expected to view the table of contents list like the one we are using on .epub files.
How to reproduce?
Using Test App:
Result on Test App:
Logs upon Opening PDF
vs
Logs on .epub Files
Environment
Using Swift Package Manager:
{
"identity" : "swift-toolkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/readium/swift-toolkit.git",
"state" : {
"branch" : "main",
"revision" : "2e0c647221612f923f9888851c848c88d14f7679"
}
}
Development environment
Testing device
Tried it also on actual device. Problem also occurs.
Additional context
The text was updated successfully, but these errors were encountered: