support for page orientation and page size in phantom