View Single Post
Old 01-08-2015, 03:22 PM   #1
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
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:
<td class="text">Reference letter by Mr X<br />
<a href="Misc/421947.pdf" style="font-size: 10pt;" target="_blank">[View Letter]</a><br />
<br />
Then these in manifest and spine:
Quote:
<manifest>
...
<item href="Misc/421947.pdf" id="x421947.pdf" media-type="application/pdf" />
</manifest>
<spine toc="ncx">
...
<itemref idref="421947.pdf" />
</spine>
changing the path in manifest to either
Quote:
<manifest>
...
<item href="Text/Misc/421947.pdf" id="x421947.pdf" media-t
</manifest>
</spine>
or
Quote:
<manifest>
...
<item href="421947.pdf" id="x421947.pdf" media-t
</manifest>
</spine>
makes no difference. I am sure I am doing something really silly, but I cannot see my mistake (unsurprising as a total noob...). Can anyone please help?
paola is offline   Reply With Quote