ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* PDF Preview Image
@ 2012-07-12  2:22 Kip Warner
  2012-07-13 17:57 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Kip Warner @ 2012-07-12  2:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 410 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PDF Preview Image
  2012-07-12  2:22 PDF Preview Image Kip Warner
@ 2012-07-13 17:57 ` Hans Hagen
  2012-07-16  5:30   ` Kip Warner
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2012-07-13 17:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Kip Warner

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PDF Preview Image
  2012-07-13 17:57 ` Hans Hagen
@ 2012-07-16  5:30   ` Kip Warner
  0 siblings, 0 replies; 3+ messages in thread
From: Kip Warner @ 2012-07-16  5:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 668 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-16  5:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-12  2:22 PDF Preview Image Kip Warner
2012-07-13 17:57 ` Hans Hagen
2012-07-16  5:30   ` Kip Warner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).