Skip Menu |
 

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

Report information
The Basics
Id: 117031
Status: resolved
Priority: 0/
Queue: PDF-API2

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

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 2.034



Subject: UTF8 flag in metadata date fields causes garbage
Download (untitled) / with headers
text/plain 322b
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
Download (untitled) / with headers
text/plain 242b
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 is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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