PDF-API2-XS-1.002/0000755000175100017510000000000013757360640013125 5ustar smsimmssmsimmsPDF-API2-XS-1.002/LICENSE0000644000175100017510000004365213757360640014144 0ustar smsimmssmsimmsThis software is copyright (c) 2020 by Steve Simms. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2020 by Steve Simms. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2020 by Steve Simms. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End PDF-API2-XS-1.002/lib/0000755000175100017510000000000013757360640013673 5ustar smsimmssmsimmsPDF-API2-XS-1.002/lib/PDF/0000755000175100017510000000000013757360640014304 5ustar smsimmssmsimmsPDF-API2-XS-1.002/lib/PDF/API2/0000755000175100017510000000000013757360640014777 5ustar smsimmssmsimmsPDF-API2-XS-1.002/lib/PDF/API2/XS.pm0000644000175100017510000000130513757360640015666 0ustar smsimmssmsimmspackage PDF::API2::XS; use strict; use warnings; our $VERSION = '1.002'; # VERSION =head1 NAME PDF::API2::XS - Optional PDF::API2 add-on using XS to speed up expensive operations =head1 DESCRIPTION L will make use of this distribution, if it's installed, to speed up some operations that are significantly faster in C than in Perl. There's no need to interact with this distribution directly. PDF::API2 will use it automatically if it detects it. =head1 AUTHOR Rob Scovell =head1 LICENSE This software is copyright (c) 2020 by Steve Simms. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut 1; PDF-API2-XS-1.002/lib/PDF/API2/XS/0000755000175100017510000000000013757360640015331 5ustar smsimmssmsimmsPDF-API2-XS-1.002/lib/PDF/API2/XS/ImagePNG.xs0000644000175100017510000001201013757360640017266 0ustar smsimmssmsimms#define PERL_NO_GET_CONTEXT #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #include #include int paeth_predictor (int a, int b, int c) { int p = a + b - c; int pa = abs(p - a); int pb = abs(p - b); int pc = abs(p - c); if ((pa <= pb ) && (pa <= pc)) { return a; } else if (pb <= pc) { return b; } else { return c; } } MODULE = PDF::API2::XS::ImagePNG PACKAGE = PDF::API2::XS::ImagePNG PROTOTYPES: DISABLE AV* unfilter (AV * line, AV * prev, int filter, int bpp) CODE: int line_length = av_len(line); uint8_t * in_array = (uint8_t *)malloc((line_length) * sizeof(uint8_t)); uint8_t * prev_array = (uint8_t *)malloc((line_length) * sizeof(uint8_t)); uint8_t * out_array = (uint8_t *)malloc((line_length) * sizeof(uint8_t)); if (in_array == NULL || out_array == NULL || prev_array == NULL) { croak("Null pointer from memory allocation in ImagePNG.xs"); } for (int i = 0; i < line_length; i++) { SV** elem = av_fetch(line, i, 0); char * ptr = SvPV_nolen(*elem); uint8_t byte = (uint8_t) *ptr; *(in_array + i) = byte; } for (int i = 0; i < line_length; i++) { uint8_t byte; SV** elem = av_fetch(prev, i, 0); if (elem != NULL) { char * ptr = SvPV_nolen(*elem); byte = (uint8_t) *ptr; } else { byte = 0; } *(prev_array + i) = byte; } switch (filter) { case 0 : for (int i = 0; i < line_length; i++) { *(out_array + i) = *(in_array + i); } break; case 1 : for (int i = 0; i < line_length; i++) { uint8_t sub; if (i < bpp) { sub = *(in_array + i); } else { sub = *(in_array + i) + *(out_array + i - bpp); } *(out_array + i) = sub; } break; case 2 : for (int i = 0; i < line_length; i++) { *(out_array + i) = *(in_array + i) + *(prev_array + i); } break; case 3 : for (int i = 0; i < line_length; i++) { uint8_t sub; if (i < bpp) { sub = *(in_array + i) + (*(prev_array + i) / 2); } else { sub = *(in_array + i) + ((*(out_array + i - bpp) + *(prev_array + i)) / 2); } *(out_array + i) = sub; } break; case 4 : for (int i = 0; i < line_length; i++) { uint8_t a, b, c; b = *(prev_array + i); if (i < bpp) { a = 0; c = 0; } else { a = *(out_array + i - bpp); c = *(prev_array + i - bpp); } *(out_array + i) = *(in_array + i) + paeth_predictor(a, b, c); } break; } // Put the results back into a new Perl AV. AV * clearstream_av = newAV(); for (int i = 0; i < (line_length); i++) { SV * this_sv = newSVuv(*(out_array + i)); av_push(clearstream_av, this_sv); } free(in_array); free(out_array); free(prev_array); RETVAL = clearstream_av; OUTPUT: RETVAL AV* split_channels (AV * stream, int w, int h) CODE: // // The image is passed as a Perl AV (Array Variable). // // It cannot be passed in as a regular C char string // or converted to a regular C char string because // it gets truncated at the first zero byte. // // First we need to turn it into a C array of bytes. // av_len, av_fetch and SvPV_nolen are XS macros. // See documentation here: https://perldoc.perl.org/perlguts.html // uint8_t * in_array = (uint8_t *)malloc((w * h * 4) * sizeof(uint8_t)); uint8_t * out_array = (uint8_t *)malloc((w * h * 4) * sizeof(uint8_t)); uint8_t * dict_array = (uint8_t *)malloc((w * h) * sizeof(uint8_t)); if (in_array == NULL || out_array == NULL || dict_array == NULL) { croak("Null pointer from memory allocation in ImagePNG.xs"); } for (int i = 0; i < av_len(stream); i++) { SV** elem = av_fetch(stream, i, 0); char * ptr = SvPV_nolen(*elem); uint8_t byte = (uint8_t) *ptr; *(in_array + i) = byte; } // Transform the image into a new C array of bytes. for (int i = 0; i < w * h; i++) { *(out_array + (i * 3) + 0) = *(in_array + (i * 4) + 0); *(out_array + (i * 3) + 1) = *(in_array + (i * 4) + 1); *(out_array + (i * 3) + 2) = *(in_array + (i * 4) + 2); *(dict_array + i) = *(in_array + (i * 4) + 3); } // Put the results back into a new Perl AV. AV * outstream_av = newAV(); for (int i = 0; i < (w * h * 3); i++) { SV * this_sv = newSVuv(*(out_array + i)); av_push(outstream_av, this_sv); } for (int i = 0; i < (w * h * 3); i++) { SV * this_sv = newSVuv(*(dict_array + i)); av_push(outstream_av, this_sv); } free(in_array); free(out_array); free(dict_array); // Send the transformed image back to Perl in the new AV. RETVAL = outstream_av; OUTPUT: RETVAL PDF-API2-XS-1.002/lib/PDF/API2/XS/ImagePNG.pm0000644000175100017510000000033013757360640017252 0ustar smsimmssmsimmspackage PDF::API2::XS::ImagePNG; use strict; use warnings; our $VERSION = '1.002'; # VERSION require XSLoader; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(split_channels unfilter); XSLoader::load(); 1; PDF-API2-XS-1.002/META.yml0000644000175100017510000000115513757360640014400 0ustar smsimmssmsimms--- abstract: 'Optional PDF::API2 add-on using XS to speed up expensive operations' author: - 'Rob Scovell ' build_requires: PDF::API2: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: PDF-API2-XS requires: perl: v5.10.0 resources: repository: git://github.com/ssimms/pdfapi2xs.git version: '1.002' x_generated_by_perl: v5.28.1 x_serialization_backend: 'YAML::Tiny version 1.73' PDF-API2-XS-1.002/.perlcriticrc0000644000175100017510000000013713757360640015614 0ustar smsimmssmsimmsseverity = 5 [Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval] allow_includes = 1 PDF-API2-XS-1.002/MANIFEST0000644000175100017510000000052013757360640014253 0ustar smsimmssmsimms# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.012. .perlcriticrc Changes LICENSE MANIFEST META.json META.yml Makefile.PL README dist.ini lib/PDF/API2/XS.pm lib/PDF/API2/XS/ImagePNG.pm lib/PDF/API2/XS/ImagePNG.xs t/author-critic.t t/author-pod-syntax.t t/png.t t/resources/1x1.png t/resources/test-rgba.png PDF-API2-XS-1.002/Changes0000644000175100017510000000051713757360640014423 0ustar smsimmssmsimms1.002 2020-11-24 - Switched the license to be the same terms as Perl 5. 1.001 2020-08-31 - Removed -Ofast optimization due to compatibility issues. 1.000 2020-08-20 - Offload expensive PNG processing from PDF::API2 to an optional XS module (written by Rob Scovell, sponsored by prayerletters.com). PDF-API2-XS-1.002/t/0000755000175100017510000000000013757360640013370 5ustar smsimmssmsimmsPDF-API2-XS-1.002/t/author-critic.t0000644000175100017510000000040313757360640016327 0ustar smsimmssmsimms#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } use strict; use warnings; use Test::Perl::Critic (-profile => "perlcritic.rc") x!! -e "perlcritic.rc"; all_critic_ok(); PDF-API2-XS-1.002/t/author-pod-syntax.t0000644000175100017510000000045413757360640017166 0ustar smsimmssmsimms#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use strict; use warnings; use Test::More; use Test::Pod 1.41; all_pod_files_ok(); PDF-API2-XS-1.002/t/png.t0000644000175100017510000000217413757360640014345 0ustar smsimmssmsimmsuse Test::More tests => 7; use warnings; use strict; use PDF::API2; # Filename my $pdf = PDF::API2->new(); $pdf->{forcecompress} = 0; my $png = $pdf->image_png('t/resources/1x1.png'); isa_ok($png, 'PDF::API2::Resource::XObject::Image::PNG', q{$pdf->image_png(filename)}); is($png->width(), 1, q{Image from filename has a width}); my $gfx = $pdf->page->gfx(); $gfx->image($png, 72, 144, 216, 288); like($pdf->stringify(), qr/q 216 0 0 288 72 144 cm \S+ Do Q/, q{Add PNG to PDF}); # Large RGBA PNG file $pdf = PDF::API2->new(); $png = $pdf->image_png('t/resources/test-rgba.png'); isa_ok($png, 'PDF::API2::Resource::XObject::Image::PNG', q{$pdf->image_png(filename)}); # Filehandle $pdf = PDF::API2->new(); open my $fh, '<', 't/resources/1x1.png'; $png = $pdf->image_png($fh); isa_ok($png, 'PDF::API2::Resource::XObject::Image::PNG', q{$pdf->image_png(filehandle)}); is($png->width(), 1, q{Image from filehandle has a width}); close $fh; # Missing file $pdf = PDF::API2->new(); eval { $pdf->image_png('t/resources/this.file.does.not.exist') }; ok($@, q{Fail fast if the requested file doesn't exist}); PDF-API2-XS-1.002/t/resources/0000755000175100017510000000000013757360640015402 5ustar smsimmssmsimmsPDF-API2-XS-1.002/t/resources/1x1.png0000644000175100017510000000012213757360640016514 0ustar smsimmssmsimmsPNG  IHDR%VPLTEz= IDATc`qdIENDB`PDF-API2-XS-1.002/t/resources/test-rgba.png0000644000175100017510000006364113757360640020012 0ustar smsimmssmsimmsPNG  IHDR|B}>gAMA|Q cHRMo?r$m_j<Wmg,IDATxb?(`i0 F(> F Q0 F(! F Q0 F(! F Q0 F(! F Q0 F(! F Q0 F(! F Q0 9]:= h`3Z G[`Q02@G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(`-G(R@,Q0 F~8.h Q0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 FQ0 F v(C D,R @Z``d"ڭ` b?,SLWRdh$7|4CH4 UPvfdd3 gm0$riUR=7 (Y^`8FXrpIgt(( Obm(F5@ qE7B+:`eD(ʠN< $uG"=X!܋@\?`|kn  c$Fp@'FF \SxIg*ZcR@{  ȿHhr uj45cac1#iUQ4}E;D-T2?,H͋U^$&,#, ta|HwTgF(  |X!0F.W"ˀ@c)!L6 aAFF

J˙{Ie`*z .opf N{ e\0Vy02BZxh y/ƚ:$-8* t? S<a![&^(@9k(u09 u)#*F{hnhR9@+Ѐ_?D1 ,5i0N!#\?:3AP\u`<A!5^V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Q4h2s$3[8cfvfM|[6#9ڵixlm?_:TLS 2d.\*bsXRt~i5/<-Mj i58$Ѷ|ؚGQj')!b=d(` ? F( F Q0 F(! F Q0 F(! F Q0 F(! F Q0 F(! F Q0 F(! F Q0 F(! F Q0 F(! V0,$iaX _..b>ik1rNEo穴F'oG~VgOx^Wduuu2]>>٪3-yib<6g-wg@AjB&60MPs|הRW>';S@A|ZSzN)@uECui .W͎ .Tt).#QQ[(.*j μ8BwBpŸb&~i[ -IsmL y }EВe#@7w[Sx|r}ۿ,-*C;sh|hnkM͗Vȧi9d| Q>qgqq Az[4 e5'Fn,F,Dj؀BS #3 S3NS[bɷ#,NwC}yGS?8nb;q 'qF>9cbgKVZKMAt1`wTSk.GzT{*/$|QIFi;Q_Wftwvunb"bۄBͼ՞^KJOret@tKb5ע׿t;t]> \E;Ap1<vsqd$8GuVҳDtU *_`k<%T :ڸ Y +. ~n@qͰ3|+FAu 50d`qf"B.xQNH$T$c[M2>pKη&3@^Rwՙ2nu qAz[{E A|yA)I)$O L{SqOeIv!vgD9tIN [91"4Ǧhd;[[.) [C̯6 *Tj@]<mZx6[ȩᦙ5@U΁ 0p(\ 8]ۻĒ,rkwk /a\aH\mЉie^5sDA4\ϜK4# MSKTOÉKi={b)4s-mv}r6ަԘ63mҏ |]ktw[jRl.u!'ˌh\0@.EGL/ gx81l> X?cS!QC " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "PDF-API2-XS", "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "develop" : { "requires" : { "Test::Perl::Critic" : "0", "Test::Pod" : "1.41" } }, "runtime" : { "requires" : { "perl" : "v5.10.0" } }, "test" : { "requires" : { "PDF::API2" : "0" } } }, "release_status" : "stable", "resources" : { "repository" : { "type" : "git", "url" : "git://github.com/ssimms/pdfapi2xs.git", "web" : "https://github.com/ssimms/pdfapi2xs" } }, "version" : "1.002", "x_generated_by_perl" : "v5.28.1", "x_serialization_backend" : "Cpanel::JSON::XS version 4.09" } PDF-API2-XS-1.002/dist.ini0000644000175100017510000000160013757360640014566 0ustar smsimmssmsimmsname = PDF-API2-XS author = Rob Scovell license = Perl_5 copyright_holder = Steve Simms [MetaResources] repository.url = git://github.com/ssimms/pdfapi2xs.git repository.web = https://github.com/ssimms/pdfapi2xs repository.type = git [NextRelease] format = %-9v %{yyyy-MM-dd}d [Prereqs] perl = v5.10.0 [Prereqs / TestRequires] PDF::API2 = 0 [Git::Check] [Git::Commit] [Git::NextVersion] version_regexp = ^([0-9]+\.[0-9]{3})$ [Git::Tag] tag_format = %v [Git::GatherDir] include_dotfiles = 1 exclude_match = ^\.(?!perlcriticrc$) [PruneCruft] except = \.perlcriticrc [MakeMaker::Awesome] WriteMakefile_arg = CCFLAGS => '-Wall -std=c99 -Doff64_t=__off64_t' WriteMakefile_arg = XSMULTI => 1 [MetaYAML] [MetaJSON] [License] [Readme] [ExtraTests] [Manifest] [OurPkgVersion] [PodSyntaxTests] [Test::Perl::Critic] [TestRelease] [ConfirmRelease] [UploadToCPAN] [Git::Push] PDF-API2-XS-1.002/Makefile.PL0000644000175100017510000000232213757360640015076 0ustar smsimmssmsimms# This Makefile.PL for PDF-API2-XS was generated by # Dist::Zilla::Plugin::MakeMaker::Awesome 0.48. # Don't edit it but the dist.ini and plugins used to construct it. use strict; use warnings; use 5.010000; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "Optional PDF::API2 add-on using XS to speed up expensive operations", "AUTHOR" => "Rob Scovell ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "PDF-API2-XS", "LICENSE" => "perl", "MIN_PERL_VERSION" => "5.010000", "NAME" => "PDF::API2::XS", "PREREQ_PM" => {}, "TEST_REQUIRES" => { "PDF::API2" => 0 }, "VERSION" => "1.002", "test" => { "TESTS" => "t/*.t" } ); %WriteMakefileArgs = ( %WriteMakefileArgs, CCFLAGS => '-Wall -std=c99 -Doff64_t=__off64_t', XSMULTI => 1, ); my %FallbackPrereqs = ( "PDF::API2" => 0 ); unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); PDF-API2-XS-1.002/README0000644000175100017510000000061713757360640014011 0ustar smsimmssmsimmsThis archive contains the distribution PDF-API2-XS, version 1.002: Optional PDF::API2 add-on using XS to speed up expensive operations This software is copyright (c) 2020 by Steve Simms. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. This README file was generated by Dist::Zilla::Plugin::Readme v6.012.