fcl-pdf: Make document info supporting UNICODE
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
Currently string object (TPdfString) supports only one specification (without any encoding and explicit utf8 to ANSI conversion).
The PDF spec
https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/PDF32000_2008.pdf
in chapter 7.9.2.2 Text String Type
described 3 encoding variants
Proposed patch implements UTF16-BE encoding
Steps to reproduce:
Run the provided test (meta_test.pas) and examine document properties.
There should be no Cyrillic in document properties. With the patch - the should appear.
Mantis conversion info:
- Mantis ID: 36852
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 44435 (#13986a1f)
- Target version: 4.0.0