pdf support for media plugin

19 views
Skip to first unread message

Alexander Danilov

unread,
Oct 12, 2013, 2:54:45 PM10/12/13
to clck...@googlegroups.com
A would like to add pdf file support for media plugin.I found pdfcairo utility from poppler-utils for this task to generate png thumbnail of the first pdf page,  but I am not sure is it good idea or may be there is more easy way (some haskell library for that)?

Jeremy Shaw

unread,
Oct 13, 2013, 2:43:17 PM10/13/13
to clck...@googlegroups.com
I very much like the idea of adding PDF support to the media plugin.
In fact, the primary reason I have not already is that I did not know
offhand how to generate a thumbnail either :)

pdftocairo seems like a reasonable solution. Are you thinking something like:

pdftocairo -jpeg -l 1 -scale-to 400

where the 400 is really:

maxWidth = case size of
Tall -> 200
Grande -> 300
Venti -> 400

One potential issue with PDF support is that the other media, so far,
support the idea of being displaying inline in the page with a
specific dimension. (aka, in an <img> tag), but PDF does not really
support that. But.. it would also be nice to support audio and video
files someday -- so we should not limit ourselves based on what
version 1 did ;)

- jeremy
> --
> You received this message because you are subscribed to the Google Groups
> "clckwrks" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clckwrks+u...@googlegroups.com.
> To post to this group, send email to clck...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/clckwrks/c7937248-1499-4210-b299-402ac9478283%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages