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);
};