![]() |
#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 |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
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. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
![]() |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 60
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! |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
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 |
![]() |
![]() |
![]() |
#7 | |
Connoisseur
![]() Posts: 60
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. |
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
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.
|
![]() |
![]() |
![]() |
#9 |
Connoisseur
![]() Posts: 60
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 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
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?
|
![]() |
![]() |
![]() |
#11 | |
Connoisseur
![]() Posts: 60
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. |
|
![]() |
![]() |
![]() |
#12 | |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Sep 2017
Device: PocketBook
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#13 |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Sep 2017
Device: PocketBook
|
|
![]() |
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
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
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create Link to External Files | RKEP71 | Sigil | 10 | 11-28-2024 06:41 PM |
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 |
Any way to make external viewer NOT always start from beginnning of book? | Jakobkraft | Calibre | 3 | 09-19-2013 06:53 PM |