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
Download (untitled) / with headers
text/plain 392b
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
Download (untitled) / with headers
text/plain 128b
PDF::API2 2.034 will automatically detect and encode Unicode characters in PDF strings, which also resolves this (very old) bug.


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.