Forum Moderators: coopster
1) How can I find out the number of pages in a PDF document (preferably with PHP, although some shell commands might be possible)?
2) How can I find out how much blank space there is on the last page (is that possible?). If it helps the pages are being generated from LaTeX files with pdflatex in a two column layout. I want to select an appropriate amount of filler material for any empty space.