Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2013, 03:26 PM   #1
Macsurfcat
Junior Member
Macsurfcat began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2013
Location: New Jersey
Device: Kindle, Nook
Question Hyperlink to PDF

Hi all,

I'm trying to set up a relatively straightforward workflow for converting InDesign documents from a reprint title list to epubs, using Sigil as final editor. I've run across a curious problem:

Using hyperlink panel in InDesign, I referenced a "pdf" within a document and exported to epub. The epub highlights link as a hyperlink, but either does nothing or jumps back to previous entry in content list when viewed in a reader app. The pdf does not appear.

I opened up the epub and added the pdf file to "Misc" folder and linked to it using standard "a ref" code, as in:

<p class="text"><a href="/Misc/Harriman97LakesE.pdf"><span class="txtbital">Lakes Chart</span></a></p>

Adobe Digital Editions simply crashes when I hit the hyperlink, and Firefox "e" addon pushes to next item in content list.

I'm missing something simple here, but can't figure it out . . . any ideas?

Macsurfcat
Macsurfcat is offline   Reply With Quote
Old 04-15-2013, 03:08 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,182
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
The link is wrong in the first place, it should be ../Misc/Harriman97LakesE.pdf because the paths are relative.
On the other side, I doubt this is going to work in a normal ePUB. External links usually don't really work for other documents than XML or (X)HTML. They might on iBooks though.

One of the reasons is, on most readers though, that although they support PDF files, another reading program is used for it.
Toxaris is offline   Reply With Quote
 
Advertisement
Old 04-15-2013, 12:07 PM   #3
Macsurfcat
Junior Member
Macsurfcat began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2013
Location: New Jersey
Device: Kindle, Nook
Yes, I initially entered the link with the relative path "../Misc/etc", but to no avail; what I posted was the last of many attempts to get the address correct. When I attempt to open in Adobe Digital editions, even with correct path, I get an error message : invalid link.

I wasn't aware of pdf issues on readers, thanks for the info
Macsurfcat is offline   Reply With Quote
Old 04-15-2013, 02:10 PM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,310
Karma: 4898871
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I don't think that is allowed by the ePub spec. Even if a given reader is able of rendering a PDF, you'd be linking to a document that's not in the spine (because a PDF is not an allowed type in the spine) and then the reader wouldn't know what to do with the page back or forward actions, or what "page number" to show in case it has that feature.

It might be possible through fallbacks and that, but I doubt that you'd get much farther.
Jellby is offline   Reply With Quote
Old 04-18-2013, 05:20 PM   #5
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 597
Karma: 1281565
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
Toxaris is right here: if you put the PDF inside the container, you can link to it via a relative URI. However, good luck with having it working.

It is the same problem I am running in the EPUB3 Audio-eBooks my company is producing: we put in the container an M3U playlist, hoping that someday, some Reading System will support it, e.g. letting the user choose between "listen only" and "read + listen" modes.

The same applies to your embedded PDF: maybe some day RS will "realize" that the link points to a PDF, and suitably render it.
AlPe is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink an image scheife ePub 2 03-07-2013 08:43 AM
Possible to hyperlink catalogue to Library? ryanpl Library Management 1 07-19-2011 12:26 PM
Hyperlink adachim Kobo Reader 0 11-02-2010 11:57 PM
Is a hyperlink editor in sight? HarryT Sigil 2 08-12-2010 09:18 AM
Hyperlink? fcoulter Sigil 3 03-28-2010 11:31 AM


All times are GMT -4. The time now is 11:20 PM.


MobileRead.com is a privately owned, operated and funded community.