Bug 690471 - Parantheses escaped in xmp metadata
Summary: Parantheses escaped in xmp metadata
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 8.64
Hardware: PC Linux
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-07 01:32 UTC by Florian Haenel
Modified: 2009-10-06 01:23 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Haenel 2009-05-07 01:32:35 UTC
Parantheses are escaped in xmp metadata which leads to conflicts validating the 
pdf as PDFa/1b which requires identical data in pdf properties and xmp
Comment 1 Ken Sharp 2009-10-06 01:23:42 UTC
This is covered (rather obscurely) in the docuemntation in gs/doc/ps2pdf.htm
under the -sDSCEncoding switch.

If you leave this at the default then no 'encoding' is applied to the data at
all, this includes undoing the escapement of certain characters required by
PostScript to create valid strings.

Setting this switch to PDFDocEncoding as recommended in the documentation does
result in a PDF/A file which works correctly. It does seem unreasonable that we
don't at least undo the escapement of PostScript strings, so I've added code to
do this in revision 10142, patch here:

http://ghostscript.com/pipermail/gs-cvs/2009-October/009866.html