Post without Account — your post will be reviewed, and if appropriate, posted under Anonymous. You can also use this link to report any problems registering or logging in.

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

  • 1 Replies
  • 141 Views
*

Offline Phil

  • Global Moderator
  • Hero Member
  • *****
  • 604
    • View Profile
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:
Quote
Undefined subroutine &PDF::API2::Annotation::is_utf8 called at local/lib/perl5/PDF/API2/Annotation.pm line 69.
Changing all the:
Code: [Select]
    if (is_utf8($url)) {
to
Code: [Select]
    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.

*

Offline Phil

  • Global Moderator
  • Hero Member
  • *****
  • 604
    • View Profile
Re: [RT 130074] Undefined subroutine &PDF::API2::Annotation::is_utf8
« Reply #1: August 04, 2019, 08:27:02 PM »
Updated BaseFont, CIDFont, UniFont to specify utf8::is_utf8 (all other uses already done). Will be in 3.016 release.