PhilterPaper / Perl-PDF-Builder

Extended version of the popular PDF::API2 Perl-based PDF library for creating, reading, and modifying PDF documents
https://www.catskilltech.com/FreeSW/product/PDF%2DBuilder/title/PDF%3A%3ABuilder/freeSW_full
Other
6 stars 7 forks source link

[RT 130074] Undefined subroutine &PDF::API2::Annotation::is_utf8 #106

Closed PhilterPaper closed 4 years ago

PhilterPaper commented 5 years ago

Mon Jul 15 18:08:05 2019 MAT [...] cpan.fsck.com - Ticket created

I updated from 2.033, and now, I'm getting these errors:

Undefined subroutine &PDF::API2::Annotation::is_utf8 called at local/lib/perl5/PDF/API2/Annotation.pm line 69.

Changing all the:

    if (is_utf8($url)) {

to

    if (utf8::is_utf8($url)) {

fixes the issue here.

Tue Jul 16 10:37:05 2019 steve [...] deefs.net - Correspondence added

Thanks for the bug report!

I've removed those is_utf8 checks since they're no longer necessary, improved the test coverage for annotations, and reviewed the other instances of is_utf8 in the code to ensure the problem doesn't show up anywhere else.

PhilterPaper commented 4 years ago

Updated BaseFont, CIDFont, UniFont to specify utf8::is_utf8 (all other uses already done). Will be in 3.016 release.