Script to adapt the PDF size

Submitted by Nicola Rainiero on 2012-06-18 (last updated on 2013-06-03)
This article explains how to adapt the size of a PDF

A big gap of my eBook reader, the Asus DR900, is the maximum page zoom fixed to 200%. Generally the 200% works fine for most PDF file, but when I try to read PDF that includes double pages or document in A4 with A3 pages, the reading become very difficult. So I wrote a little bash script called that halves the pages exceeding the horizontal dimension of the first.