I sometimes use LaTeX in conjunction with pdfpages package to manipulate the pages of a PDF file (not necessarily created by LaTeX), operations like combining several pages into one, or changing the order of pages.

The question I have is how to find the size of each page in an external PDF file? I want to use pdfpages to reorder the pages by height.

1 Answer 1


There are probably much easier ways to do this, but you could use \settoheight to measure the height of a page:




\usepackage{printlen} % only for demonstration



\uselengthunit{cm}\printlength{\imageheight} % only for demonstration

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .