Quantcast

Re: MP3 and WAV support for asciidoctor-pdf

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MP3 and WAV support for asciidoctor-pdf

ciampix
On Sat, Jul 02, 2016 at 01:13:58PM -0700, Tom Swan [via Asciidoctor :: Discussion] wrote:

>
>
> Does anybody know how to embed a link to an audio file in either MP3 or WAV
> formats in a PDF document? The following line in my source (.adoc) file
> works as expected for asciidoctor HTML5 output:
>
>   audio::audiofilename.mp3[options="controls"]
>
> However, attempting to create a PDF with asciidoctor-pdf using a command
> such as:
>
>   asciidoctor-pdf -b pdf -a allow-uri-read=true docfilename.adoc
>
> fails on that same command with:
>
>   asciidoctor: WARNING: conversion missing in backend pdf for audio
>
> Is there a solution so an audio link works in PDF files similarly to how it
> does in HTML5? I don't want to require people to download the file, which I
> know works. Instead, I would like to link to the audio file for playback
> while viewing the PDF document -- by clicking a playback button for example.
> Possible?
>
> Thanks.
>
> Tom

I have seen pdf created for English lessons (Oxford University Press)
with links to mp3 (audio) and avi (video) files that worked with acrobat
reader (opened automatically with vlc) and other pdf readers even under
Linux... that feature would be very appreciated, thanks.

Regards,

--


Marco Ciampa

I know a joke about UDP, but you might not get it.

------------------------

 GNU/Linux User #78271
 FSFE fellow #364

------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MP3 and WAV support for asciidoctor-pdf

mojavelinux
Administrator
I have seen pdf created for English lessons (Oxford University Press)
with links to mp3 (audio) and avi (video) files

I don't doubt it can be done. The question is, can it be done with Prawn. Asciidoctor PDF is not really in the business of a PDF library. It just uses a PDF library to make a PDF. So we really need support in Prawn.
 
that worked with acrobat
reader (opened automatically with vlc) and other pdf readers even under
Linux... that feature would be very appreciated, thanks.

I tried a PDF with multimedia on Linux and it didn't work. I get the feeling this is highly OS specific. PDFs really are for print. Browers are for multimedia. Personally, I think it's important to use the right tool for the job. (But if we can figure out how to add it, I'm not opposed to it).

-Dan

--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Loading...