Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.69
Fixed in: 2.034



Subject: PDF::API2::Outline::title() problem in using Unicode string
When setting Unicode string (use utf8;) in an outline title, that is viewed broken. I wrote code below to avoid problem. *PDF::API2::Outline::title = sub { my $self = shift ; my $txt = shift; use PDF::API2::Basic::PDF::Utils; if( utf8::is_utf8( $txt ) ){ $self->{Title}=PDFUtf($txt); } else { $self->{Title}=PDFStr($txt); } return($self); };
FYI, this is fixed in PDF::Builder
PDF::API2 2.034 will automatically detect and encode Unicode characters in PDF strings, which also resolves this (very old) bug.