WIP - Add attribute switching functionality to pdf