https://bugzilla.redhat.com/show_bug.cgi?id=1378895 Bug ID: 1378895 Summary: 8-bpp TIFF images are broken in the resulting PDF document Product: Fedora Version: 23 Component: perl-PDF-API2 Assignee: jplesnik@xxxxxxxxxx Reporter: ppisar@xxxxxxxxxx QA Contact: extras-qa@xxxxxxxxxxxxxxxxx CC: bjohnson@xxxxxxxxxxxx, jplesnik@xxxxxxxxxx, perl-devel@xxxxxxxxxxxxxxxxxxxxxxx Blocks: 1369984 External Bug ID: CPAN 118047 Created attachment 1204154 --> https://bugzilla.redhat.com/attachment.cgi?id=1204154&action=edit 8-bpp TIFF image This code creates an PDF with broken 8-bpp TIFF image: #!/usr/bin/perl use strict; use warnings; use PDF::API2; my $pdf = PDF::API2->new(-file => 'out.pdf'); my $page = $pdf->page; $page->mediabox(157, 196); my $imgobj = $pdf->image_tiff('8.tiff'); my $gfx = $page->gfx; $gfx->image($imgobj, 0, 0, 157, 196); $pdf->save; $pdf->end; It works fine if the TIFF image has only 1 bit per pixel. I have perl-PDF-API2-2.025-1.fc23.noarch, but it it's broken in all Fedoras. Referenced Bugs: https://bugzilla.redhat.com/show_bug.cgi?id=1369984 [Bug 1369984] gscan2pdf v1.3.8 saves imported PDF pages as negative images -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ perl-devel mailing list -- perl-devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to perl-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx