Take the 2-minute tour ×  So I just learned about \pdffilesize
from this answer.  Are there other similar things like this? I
learned about \the\inputlineno a while ago which prints the line
number of the input file.  In particular, is there a pdf page
count? What other information about the file can you extract in
this way?  To clarify, what I'm asking is what other commands
like \pdffilesize exist?  share|improve this question No fair:
you completely changed the question :-) –  Joseph Wright Nov 15
'12 at 13:07 texdoc pdftex –  AlexG Nov 15 '12 at 13:18
@JosephWright Not really: I only added one sentence and changed
the title. –  Seamus Nov 15 '12 at 16:42 add comment  3 Answers
up vote 12 down vote accepted  You can print the number of pages
of foo.pdf with the following trick:   Here's the excerpt from
the pdftex manual:  \pdflastximagepages (read-only integer) This
read-only register returns the highest page number from a file
previously accessed via the \pdfximage command. This is useful
only for PDF f