ZF-11001: Better UTF-16 support for PDF Metadata stored in Document Information Dictionary (DID)
Currently in the DID, Zend_Pdf treats certain metadata properties specially. Namely: Title, Author, Subject, Keywords, Creator, Producer, ModDate, CreationDate. The non-date fields will be re-encoded as UTF-16 if they should be. However, the PDF standard specifies all metadata should be in either ASCII or UTF-16.
If you are managing metadata with Zend_Pdf, it is confusing (and should not be necessary) to have to treat your custom metadata fields separately from the Zend-handled fields listed above. Further, custom data should adhere to the PDF standard (whether or not the user knows it). For consistency and standards, Zend_Pdf should encode all data that needs to be as UTF-16.
Attaching patches that accomplish this. Feedback welcome.