PDF: Add support for custom page size

PDF output can and should support custom page sizes apart from the provided constants.

Clone the behavior of PostScript: If the property PAGE_SIZE is set to A4, LETTER etc, then use that. But if it is set to the value CUSTOM_PAGE_SIZE, evaluate the dimension value of the property with key CUSTOM_PAGE_SIZE.