11-17-2019, 02:17 PM | #1 |
Member
Posts: 12
Karma: 10
Join Date: Jul 2018
Device: iBooks on iPad Pro
|
How to make external link to a specific page/section in a E-book
Is it possible (with html/php) to put a direct link on an external homepage that - when clicked - directs the user to a specifik page in a e-book? How?
Regards Dan |
11-17-2019, 02:26 PM | #2 | |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
According to EPUB specs, you could use CFI, but I don't know of any reader that implemented this feature. Calibre uses CFI, but I think it only works inside the book. |
|
11-17-2019, 08:08 PM | #3 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sure if you use the viewer in the calibre content server, just copy paste the URL for any page of the book and you can use it as a direct link to that page.
And if you use the calibre viewer you can get it to open at any page by using the --open-at command line argument. |
11-18-2019, 03:06 AM | #4 |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
The content server!
|
10-06-2021, 12:48 PM | #5 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Sep 2017
Device: PocketBook
|
how link from localhost
I didn't manage to link an epub chapter neither from http://localhost nor from file:///mnt/my-path, even using "--open-at" as you suggested: what exactly should I do?
Thank you! |
10-06-2021, 01:16 PM | #6 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
open the viewer controls, click go to, copy the location, use it with --open-at.
Or if you are opening the book from inside calibre, use https://manual.calibre-ebook.com/url...cific-position |
10-07-2021, 05:18 AM | #7 | |
Connoisseur
Posts: 59
Karma: 10
Join Date: Sep 2017
Device: PocketBook
|
Quote:
I tried this unsuccessfully (in the browser addressbar): file:///my-path/my-file-name.epub%20--open-at%20epubcfi(/8/2/4/2/16/4/1:6) "epubcfi(/8/2/4/2/16/4/1:6)" is the location inside the epub, found according to your instructions. Last edited by duns; 10-07-2021 at 05:38 AM. |
|
10-07-2021, 06:08 AM | #8 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Open the book from within calibre, use the copy button in the viewer, the resulting address will work in a browser running on the same computer. If you want toacess it from a different computer you have to use the content server.
|
10-07-2021, 09:12 AM | #9 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Sep 2017
Device: PocketBook
|
Yes, this way it works. But it is not possible open the link with the viewer, without call the calibre server?
|
10-07-2021, 09:15 AM | #10 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
How would you open a book on another computer without using a server of some kind?
|
10-07-2021, 09:58 AM | #11 | |
Connoisseur
Posts: 59
Karma: 10
Join Date: Sep 2017
Device: PocketBook
|
Quote:
The fact is that I don't use calibre as server (as library), but only as editor and viewer. EDIT EUREKA! this code works! file:///my-path/my-fil-name.epub?open_at=epubcfi(/10/2/4/2/132/18/1:65) Great Kovid! Thank you! Last edited by duns; 10-07-2021 at 10:23 AM. |
|
02-12-2023, 10:15 AM | #12 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Sep 2017
Device: PocketBook
|
ops... the above code doesn't work any more (with the latest calibre release)
|
02-12-2023, 10:40 AM | #13 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Sep 2017
Device: PocketBook
|
|
02-14-2023, 12:01 AM | #14 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If the viewer is not working it will be because of broken graphics drivers. Update your GPU drivers or turn off hardware accelerationa s described in https://doc.qt.io/qt-6/qtwebengine-debugging.html
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to place a link to an external file | air_lent | ePub | 6 | 12-19-2015 06:56 AM |
Aura H2O Link to deals section; H2O $20 off today only | ottdmk | Kobo Reader | 2 | 12-24-2014 05:50 PM |
Create Link to External Files | RKEP71 | Sigil | 8 | 09-26-2014 11:36 PM |
Any way to make external viewer NOT always start from beginnning of book? | Jakobkraft | Calibre | 3 | 09-19-2013 06:53 PM |