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

Report information
The Basics
Id:
69064
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
LECSTOR [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
2.019
Fixed in:
(no value)



Calling text->fillcolor with an undefined value breaks the PDF in Adobe Reader (Win & Linux). ie. all white screen, images or graphix don't display. The PDF displays fine in chrome and okular. The attached script creates 2 pdfs, one broken, one not. I'm not sure that this should be considered a bug in PDF::API2 or actually a bug in Adobe Reader.. but damn it was hard to track down. oh, Photoshop wouldn't open the file either so maybe it's just all Adobe products..
Subject: fillcolor_test.pl
#!/usr/bin/perl use PDF::API2; my ($pdf, $page, $font, $text); $pdf = PDF::API2->new( -file => 'test_fillcolor_ok.pdf' ); $page = $pdf->page; $page->mediabox(0, 0, 595, 842); $font = $pdf->corefont('Helvetica'); $text = $page->text; $text->font($font, 14); $text->text('ello dere'); $pdf->save; $pdf = PDF::API2->new( -file => 'test_fillcolor_nok.pdf' ); $page = $pdf->page; $page->mediabox(0, 0, 595, 842); $font = $pdf->corefont('Helvetica'); $text = $page->text; $text->fillcolor(undef); # *** $text->font($font, 14); $text->text('ello dere'); $pdf->save;
Subject: fillcolor bug?
doh. I'll stop clicking. sorry about the missing subject.. On Thu Jun 23 21:02:28 2011, LECSTOR wrote:
Show quoted text
> Calling text->fillcolor with an undefined value breaks the PDF in Adobe > Reader (Win & Linux). ie. all white screen, images or graphix don't > display. The PDF displays fine in chrome and okular. > The attached script creates 2 pdfs, one broken, one not. I'm not sure > that this should be considered a bug in PDF::API2 or actually a bug in > Adobe Reader.. but damn it was hard to track down. oh, Photoshop
wouldn't
Show quoted text
> open the file either so maybe it's just all Adobe products..
garbage in, garbage out


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.