This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id:
117031
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
steve [...] deefs.net
Requestors:
jffry [...] posteo.net
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
(no value)
Fixed in:
2.034



Subject: UTF8 flag in metadata date fields causes garbage
In the date metadata fields passed to the info() method, if the utf8 flag is set, pdfinfo reports garbage in the resulting PDF metadata. I am working around it by unsetting the utf8 flag as follows: $h{CreationDate} = encode('ASCII', "D:$year$month$day"."000000+00'00'"); Perhaps you could do this in the info() method.
FYI, this is fixed in PDF::Builder
Thanks for the bug report! The next release of PDF::API2 (2.034) is better at detecting Unicode in strings, and won't encode strings that don't need to be encoded. I've tested to ensure that this includes the strings in the metadata fields.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.