fixed pdf exporting orientation and size issues