0

I can't see any way to get the page size (A4, US Letter, A3 etc) or the page orientation (portrait or landscape) using PDF::API2.

Are there any ways to get this information?

Borodin
  • 126,100
  • 9
  • 70
  • 144
DavidA
  • 1
  • 1
  • 1
    Possible duplicate of [How can I get the page orientation of a PDF page?](https://stackoverflow.com/questions/662602/how-can-i-get-the-page-orientation-of-a-pdf-page) – Sphinx Mar 26 '18 at 18:39

1 Answers1

0

You probably want

$page->get_mediabox

The result is two x,y coordinates which will also define the orientation

Borodin
  • 126,100
  • 9
  • 70
  • 144