Can I just get the page size with Ghostscript?
I am aware if this answer, but can it be done straight on the command line somewhat like this:
gs -dNODISPLAY -q -c "some postscript" input_file.pdf
as I cannot guarantee that pdf_info.ps
is available where the command is run.