Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2013, 02:26 PM   #1
Macsurfcat
Enthusiast
Macsurfcat began at the beginning.
 
Posts: 29
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, 02: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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
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
Old 04-15-2013, 11:07 AM   #3
Macsurfcat
Enthusiast
Macsurfcat began at the beginning.
 
Posts: 29
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, 01: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: 7,516
Karma: 18512745
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, 04: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: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
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


Forum Jump

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


All times are GMT -4. The time now is 04:08 PM.


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