This could potentially be done with a script, if you could define a way to
determine when an invoice contains one or two pages.
It's impossible to give a definite answer to this question without seeing
some sample files. If you wish, you can put them on a file-sharing site and
post the link here, or send me such a file privately to
try6767@gmail.comand I'll have a look at it for you.