Dont rely on import page object to have a correct type ID, instead discover it from the pageTypes on the system.
Use HTML entity decode on all PDF text items.
Fix switch control mistake that prevented portrait PDFs from being downloaded byt he grid.
In order to handle PDFs elements have to render their own template PDF data.