Re: [NTG-context] PDF Preview Image

2012-07-15 Thread Kip Warner
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


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] PDF Preview Image

2012-07-13 Thread Hans Hagen

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
-


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] PDF Preview Image

2012-07-11 Thread Kip Warner
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


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___