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(a)redhat.com
Reporter: ppisar(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: bjohnson(a)symetrix.com, jplesnik(a)redhat.com,
perl-devel(a)lists.fedoraproject.org
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.