Answered
I work with large documents that are of mixed portrait and landscape orientation. The documents will have to be printed and put into a binder with the landscape pages with the top margin at the binding. I am trying to put a header and footer on all pages such that they will all appear as if they were portrait. How can I do this without going through each document and putting the header individually on the landscaped pages? Note, these are documents going to US regulatory authorities.
Best option would be to write a script that searches the PDF, writes an array of which pages are rotated, rotates them all back to vertical, applies the H/F and then re-rotates them back the way they were.
Bit busy right now but will post a sample script later.