Skip Menu |

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

Report information
The Basics
Id: 22049
Status: resolved
Priority: 0/
Queue: CAM-PDF

People
Owner: Nobody in particular
Requestors: gerhardus [...] erd.co.za
Cc:
AdminCc:

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



Subject: addFont method
Date: Thu, 12 Oct 2006 15:31:38 +0200
To: bug-CAM-PDF [...] rt.cpan.org
From: Gerhardus Muller <gerhardus [...] erd.co.za>
Good Day Method: addFont in PDF.pm Problem: Font resources per page are not added correctly if the existing page has no font definitions. Document Type: PDFs created by tiff2pdf have no font resources defined per page (tiffs are fax tiffs). Please see the comments in the code below. <snip> # Add the font to the page my ($objnum,$gennum) = $self->getPageObjnum($pagenum); if (!exists $page->{Resources}) { $page->{Resources} = CAM::PDF::Node->new('dictionary', {}, $objnum, $gennum); } my $r = $self->getValue($page->{Resources}); if (!exists $r->{Font}) { # note the new font dictionary is added to the page dictionary instead of # the resources dictionary. # original line: $page->{Font} = CAM::PDF::Node->new('dictionary', {}, $objnum, $gennum); # suggested this is changed to: $r->{Font} = CAM::PDF::Node->new('dictionary', {}, $objnum, $gennum); } my $f = $self->getValue($r->{Font}); $f->{$label} = CAM::PDF::Node->new('reference', $fontobjnum, $objnum, $gennum); Regards Gerhardus Muller
Subject: Re: [rt.cpan.org #22049] AutoReply: addFont method
Date: Thu, 12 Oct 2006 15:40:06 +0200
To: bug-CAM-PDF [...] rt.cpan.org
From: Gerhardus Muller <gerhardus [...] erd.co.za>
Good day I neglected to add the Perl and Linux versions: Perl: This is perl, v5.8.8 built for x86_64-linux-thread-multi CAM::PDF our $VERSION = '1.07'; Linux laksme 2.6.16.21-0.25-smp #1 SMP Sun Oct 1 21:53:56 SAST 2006 x86_64 x86_64 x86_64 GNU/Linux Distro is Suse 10.1 AMD Thanks Gerhardus
Thanks for the report! I'm swamped right now, so probably won't get to this for about 2 weeks. *Please* ping me if too much time goes by. :-) -- Chris
This is fixed in the soon-to-be-released v1.08 of CAM::PDF. Thanks for the report! -- Chris
Subject: Re: [rt.cpan.org #22049] addFont method
Date: Tue, 17 Oct 2006 16:43:55 +0200
To: bug-CAM-PDF [...] rt.cpan.org
From: Gerhardus Muller <gerhardus [...] erd.co.za>
Excellent - thanks - a very useful module that you wrote! Cheers Gerhardus On Tuesday 17 October 2006 09:33, via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=22049 > > > This is fixed in the soon-to-be-released v1.08 of CAM::PDF. Thanks for > the report! > -- Chris > > > > ________ Information from NOD32 ________ > This message was checked by NOD32 Antivirus System for Linux Mail Server. > part000.txt - is OK > http://www.nod32.com