View Single Post
Old 11-20-2023, 11:05 AM   #3
bdoors
Junior Member
bdoors began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2023
Device: none
Thank you, BR, for your help.

I see what you're saying -- in the phrase

<a href="subject">link_name</a>

the "subject" must be an html file, not a jpg or pdf file.

I was coding with jpg and pdf as "subjects" because it passes html validation just fine. And works in the two browsers I test with.

But it doesn't work when I generate an EPUB through Calibre.

Through research I found that now html officially does allow jpg and pdf files to act as subjects, just by adding the download keyword --

<a href="test.jpg" download>link_name</a>

But his didn't work in Calibre either.

For now, it looks like my solution for Calibre should be to embed those jpg and pdf files within an html file. Then refer to the html file as the subject in my link.

(PS-- this is no knock on Calibre, it is a fantastic tool I am very grateful for.)
bdoors is offline   Reply With Quote