title: How can I get the page size (print it to stdout) with Ghostscript?
body: <p>Can I just get the page size with Ghostscript?</p>
  
  <p>I am aware if <a href="https://stackoverflow.com/questions/2943281/using-ghostscript-to-get-page-size">this</a> answer, but can it be done straight on the command line somewhat like this:</p>
  
  <pre><code>gs -dNODISPLAY -q -c "some postscript" input_file.pdf 
  </code></pre>
  
  <p>as I cannot guarantee that <code>pdf_info.ps</code> is available where the command is run.</p>