ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* total pages in external PDF
@ 2015-02-25 17:41 Pablo Rodriguez
  2015-02-25 21:45 ` Hans Hagen
  2015-02-25 22:05 ` Aditya Mahajan
  0 siblings, 2 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2015-02-25 17:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I need to get the number of pages from an external PDF file that I also
define with an \env.

I think I could get something like this.:

    \def\Myfilename{\env{filename}}
    doc = epdf.open(arg[\MyFilename])
    total_pages_ =  doc:getNumPages()
    \def\Mypages{total_pages}

But mixing both lua and ConTeXt commands the wrong way won’t work.

Sorry, but this is all Greek to me. Although I see how it could be done,
I cannot write the code for this.

Which is the right way to get the code above working?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2015-02-26 17:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-25 17:41 total pages in external PDF Pablo Rodriguez
2015-02-25 21:45 ` Hans Hagen
2015-02-26 17:54   ` Pablo Rodriguez
2015-02-25 22:05 ` Aditya Mahajan
2015-02-26 17:55   ` Pablo Rodriguez

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).