![]() |
#1 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
insert a link to .pdf file
Hi, I have a bunch of HTML files that each contain hyperlinks to pdf files: each html page has information about a person, with links to supporting documentation in pdf. I would like to be able to convert this to pub.
To do so I created an ePub in sigil by adding the existing pages (which all come with references). If I then add the pdf files, these are stored in the "Misc" directory. Which path should I use to refer to these files? I have tried various combinations in the manifest and in the spine, but the epub fails validation. As an example, the html page/chapter may be something like this: Quote:
Quote:
Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,568
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I don't think you can open an internal file (pdf) with an external program via an epub. How would the epub reading software handle it?
There may be a way to embed a pdf in an epub, but I'm unaware of it if so. Sigil probably won't help you do it, and I don't know of any epub reading software that would handle it. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
actually it is /var/log
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
|
You can convert PDFs into pictures - then any epub software can handle it as good as it can - which is probably not good enough.. Consider converting PDFs into (x)html.
Last edited by varlog; 01-08-2015 at 06:01 PM. |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
(The desktop versions of ADE 2 and 3 will crash after the second pdf page is being displayed and, AFAIK, most dedicated eInk readers don't support embedded .pdf files in .ePub files at all.) It appears to work with iBooks (but it renders the pdf content poorly) and RMSDK based ePub apps, e.g. Bluefire for iOS, however, if this is for a commercial book, you'll probably have to convert it to ePub3 or fiddle with the .opf file to make it pass ePubCheck. You might want to consider embedding an .svg file or a .png file instead. Last edited by Doitsu; 01-12-2016 at 01:42 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
I have done something similar, by linking to a website for an enlarged image instead of the part-image reproduced in the book, but I can see that this might not work for you.
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
many many thanks for all your suggestions! I do not need a professional book, it is only something really handy for my work (a way of linking documents for job candidates which I can then annotate if it is in ebook format). Doitsu, thank you so much for the epub, I can now play around with it.
|
![]() |
![]() |
![]() |
#8 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
Thanks JSWolf, but one of the reason I want an ebook format is to be able to access the information off line.
|
![]() |
![]() |
![]() |
#10 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Code:
<a href="file:///D:/Documents/Quick%20Docs/10lessons.pdf/" target="_blank">Local: Cameron’s EU veto: 10 lessons that need to be learnt</a> |
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
I had tried but failed - problem is I am trying to put it on an iPad, and I am not sure how to give the path out (it is not a rooted device). But if I know this must work, I'll try again, should manage something by trial and error - I'll report back when I succeed!
|
![]() |
![]() |
![]() |
#12 |
Writer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
|
@paola
If the html files are in the folder 'Text' and the pdf documents are in the folder 'Misc', the link would be href="../Misc/421947.pdf" ../ in the path means one level up from the folder 'Text' and then down to the folder 'Misc'. George |
![]() |
![]() |
![]() |
#13 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
Quote:
![]() Isn't this bizarre? Many thanks to all for all your help! I will post my files later today, when I'll have a little more time. |
|
![]() |
![]() |
![]() |
#14 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
the link must match the target exactly. foo.pdf is not foo.PDF, there needs to be file extension 2 associations (pdf and PDF) on the reading application (on the device ) for the PDF browser to work with both case. The reading application is calling external/internal viewer when it encounters a link-click for a different file type. If the link matches the filename, then the viewer call is faulty |
|
![]() |
![]() |
![]() |
#15 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Insert a cover in a MOBI file - Mobi or Epub as default file ? | myki | Library Management | 12 | 06-27-2014 05:55 PM |
Insert metadata from Calibre into PDF files | aboettget | Related Tools | 10 | 06-22-2014 10:14 PM |
insert pdf without messing up page numbers | lauras231279 | Workshop | 2 | 10-05-2011 01:40 PM |
Insert text while converting PDF to EPUB | DougAtHitplays | Conversion | 5 | 09-23-2011 11:52 AM |
DR800 Would there be no way to insert margin, viewing 'PDF's? | bokjeid | iRex | 0 | 08-17-2010 08:53 AM |