Skip Menu |

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

Report information
The Basics
Id: 120154
Status: rejected
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: christoph.halbartschlager [...] atikon.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Exception when calling image_pdf with Path::Class::File-object
Date: Thu, 09 Feb 2017 11:34:47 +0100
To: bug-PDF-API2 [...] rt.cpan.org
From: Christoph Halbartschlager <christoph.halbartschlager [...] atikon.com>
Hi When calling image_png an exception is thrown if passed parameter is an object of type Path::Class::File. Exception: "Not a GLOB reference at /usr/lib/perl5/vendor_perl/5.18.2/PDF/API2/Resource/XObject/Image/PNG.pm line 35." Cheers Christoph
Subject: Exception when calling image_png with Path::Class::File-object
According to the docs, the image_png call takes either a filename or a filehandle. Path::Class::File isn't either, but if you call the ->open() method on the object, it should work. On Thu Feb 09 05:41:32 2017, christoph.halbartschlager@atikon.com wrote: Show quoted text
> Hi > > When calling image_png an exception is thrown if passed parameter is > an object > of type Path::Class::File. > > Exception: > > "Not a GLOB reference at > /usr/lib/perl5/vendor_perl/5.18.2/PDF/API2/Resource/XObject/Image/PNG.pm > line > 35." > > Cheers > Christoph