Hey list, Many different desktop environments display the first page of a PDF as the file's "thumbnail" image. Is there any way to customize what is used as the preview image for a PDF with ConTeXt? Or is it typesetting environment agnostic and the thumbnailers always look for the first page? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
On 12-7-2012 04:22, Kip Warner wrote:
Hey list,
Many different desktop environments display the first page of a PDF as the file's "thumbnail" image. Is there any way to customize what is used as the preview image for a PDF with ConTeXt? Or is it typesetting environment agnostic and the thumbnailers always look for the first page?
in theory yes but in practice no \starttext % quick and dirty test: \setobject{test}{1}\hbox{\externalfigure[mill.png]} % gets object 15 \startluacode lpdf.addtopageattributes("Thumb",lpdf.reference(15)) \stopluacode \input tufte \getobject{test}{1} \stoptext no viewer seems to do something with it ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, 2012-07-13 at 19:57 +0200, Hans Hagen wrote:
in theory yes but in practice no
\starttext
% quick and dirty test:
\setobject{test}{1}\hbox{\externalfigure[mill.png]} % gets object 15
\startluacode lpdf.addtopageattributes("Thumb",lpdf.reference(15)) \stopluacode
\input tufte
\getobject{test}{1}
\stoptext
no viewer seems to do something with it
Still, that's quite interesting that in theory it can be done. It's not your fault afterall if the thumbnailers don't implement it. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
participants (2)
-
Hans Hagen
-
Kip Warner