Skip Menu |
 

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

Report information
The Basics
Id: 108987
Status: resolved
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: philperry [...] hvc.rr.com
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=-2.61 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
X-Spam-Flag: NO
X-Cloudmark-Score: 0
content-type: text/plain; charset="utf-8"; format="flowed"
Message-ID: <564917A6.70306 [...] hvc.rr.com>
Reply-To: philperry [...] hvc.rr.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-RR-Connecting-Ip: 107.14.168.118:25
X-Spam-Score: -2.61
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 1C4D92401BE for <cpan-bug+PDF-API2 [...] hipster.bestpractical.com>; Sun, 15 Nov 2015 18:39:18 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YCKS5i0bR7Q1 for <cpan-bug+PDF-API2 [...] hipster.bestpractical.com>; Sun, 15 Nov 2015 18:39:16 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 9A39D240032 for <bug-PDF-API2 [...] rt.cpan.org>; Sun, 15 Nov 2015 18:39:15 -0500 (EST)
Received: (qmail 24104 invoked by alias); 15 Nov 2015 23:39:15 -0000
Received: from cdptpa-outbound-snat.email.rr.com (HELO cdptpa-oedge-vip.email.rr.com) (107.14.166.228) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sun, 15 Nov 2015 15:39:12 -0800
Received: from [69.203.75.215] ([69.203.75.215:4177] helo=[69.203.75.215]) by cdptpa-oedge01 (envelope-from <philperry [...] hvc.rr.com>) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id B1/EC-06309-09719465; Sun, 15 Nov 2015 23:38:56 +0000
Delivered-To: cpan-bug+PDF-API2 [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
Subject: problems running "examples" code
Return-Path: <philperry [...] hvc.rr.com>
X-RT-Mail-Extension: pdf-api2
X-Original-To: cpan-bug+PDF-API2 [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Sun, 15 Nov 2015 18:39:18 -0500
X-Spam-Level:
To: bug-PDF-API2 [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Phil M Perry <philperry [...] hvc.rr.com>
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 1864
Download (untitled) / with headers
text/plain 1.8k
I have found some apparent bugs in PDF::API2's code examples. PDF::API2 v2.025 Perl 5.20.2 Windows XP Severity: Normal 022_truefonts: runs for a few seconds and ends without producing any output file and no messages 022_truefonts_diacrits_utf8: runs for a few seconds and ends without producing any output file and no messages 023_cjkfonts: MyungJo fonts only, get several dozen "Use of uninitialized value in sprintf at 023_cjkfonts line 82." This is an apparently undefined value returned by $font->uniByCId($xo) in line 82 It is the line that formats the U+0xnnnn in the lower left of a cell, and it appears to be a block of characters on output page 57, where it's showing U+0x0000 for them (only a few dozen characters) 024_bmpfonts: get one message "file='' not existant. at .../Resource/Font/BdFont.pm line 169." This is in readBDF()'s if(! -e $file) {die "file='$file' not existant.";} where readBDF() is apparently being passed an empty or undefined string from somewhere "not existant" should be "does not exist", should anyone work on the code in this routine 025_unifonts: get one message "Malformed UTF-8 character (fatal) at 025_unifonts line 89, <DATA> line 1." It seems to be reading one of the font files in a list, and getting this error. No output is produced. This appears to be a regular expression substitution to remove CR and LF characters from the line just read in from the file. 027_winfont: runs for a few seconds and ends without producing any output file and no messages The following example files seem to have successfully run (produced PDF output which looked reasonable, and no error messages): 020_corefonts 021_synfonts 026_unifont2 030_colorspecs 031_color_hsv 032_separation I was not working in any other "examples" files, and didn't run any others.
MIME-Version: 1.0
X-Spam-Status: No, score=-2.181 tagged_above=-99.9 required=10 tests=[AWL=-0.280, BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001] autolearn=ham
X-Spam-Flag: NO
X-RT-Interface: API
X-Cloudmark-Score: 0
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Reply-To: philperry [...] hvc.rr.com
Message-ID: <56A8388D.902 [...] hvc.rr.com>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RR-Connecting-Ip: 107.14.168.130:25
X-RT-Original-Encoding: utf-8
X-Spam-Score: -2.181
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id C98B4240356 for <cpan-bug+PDF-API2 [...] hipster.bestpractical.com>; Tue, 26 Jan 2016 22:25:02 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uxk4XEb6S2QF for <cpan-bug+PDF-API2 [...] hipster.bestpractical.com>; Tue, 26 Jan 2016 22:25:01 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 536DA2401D3 for <bug-PDF-API2 [...] rt.cpan.org>; Tue, 26 Jan 2016 22:25:01 -0500 (EST)
Received: (qmail 9501 invoked by alias); 27 Jan 2016 03:25:00 -0000
Received: from cdptpa-outbound-snat.email.rr.com (HELO cdptpa-oedge-vip.email.rr.com) (107.14.166.225) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 26 Jan 2016 19:24:54 -0800
Received: from [69.203.75.215] ([69.203.75.215:4814] helo=[69.203.75.215]) by cdptpa-oedge02 (envelope-from <philperry [...] hvc.rr.com>) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 27/29-19621-18838A65; Wed, 27 Jan 2016 03:24:50 +0000
Delivered-To: cpan-bug+PDF-API2 [...] hipster.bestpractical.com
Subject: [rt.cpan.org #108987]
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
Return-Path: <philperry [...] hvc.rr.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+PDF-API2 [...] hipster.bestpractical.com
X-RT-Mail-Extension: pdf-api2
Date: Tue, 26 Jan 2016 22:25:01 -0500
X-Spam-Level:
To: bug-PDF-API2 [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Phil M Perry <philperry [...] hvc.rr.com>
RT-Message-ID: <rt-4.0.18-16407-1453865103-185.108987-0-0 [...] rt.cpan.org>
Content-Length: 1863
Download (untitled) / with headers
text/plain 1.8k
Some additional investigation: First, I ran the remaining examples -- The following example files seem to have successfully run (produced PDF output which looked reasonable, and no error messages): 012_pages 020_textrise 020_textunderline (updated for 98534 hspace->hscale) 040_annotation 060_transparency The following example files appear to have problems: 011_open_update: all three output files look the same, so it apparently is not updating the document before saving as new 050_pagelabels: all 26 pages are the same format (pages 0..25). From the code it appears that the displayed page numbers are supposed to reset on some pages, be formatted as Roman numerals, be formatted as letters, and get fixed prefixes (A- etc.) for various ranges Second, I went back and looked in the code for those earlier reported to be with problems, to see if there was anything hinting at what went wrong -- 022_truefonts, 022_truefonts_diacrits_utf8 both want one or more TTF fonts on the command line. However, no TTF names I tried helped matters (produced corrupted PDF files). Needs more investigation. 024_bmpfonts wants one BMP? BDF? font on the command line, but I don't think I have any for testing 027_winfont possibly the PDF::API2->enumwinfonts method is returning no fonts? The utter lack of comments in the example codes is very frustrating. I can only guess at what is wanted for input, and what is supposed to be produced. Was this ever documented anywhere? To add a comment to this thread, just email bug-PDF-API2 [at] rt.cpan.org with subject line [rt.cpan.org #108987]. Note 1 space between org and #, and the [ ] around the whole subject. Nothing else. If you don't follow this format carefully, you will end up creating a new bug report! HTML formatting within the body does not work.
MIME-Version: 1.0
In-Reply-To: <564917A6.70306 [...] hvc.rr.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <564917A6.70306 [...] hvc.rr.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-6666-1455745065-1067.108987-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 281
Download (untitled) / with headers
text/plain 281b
The examples directory appears to have been used by a former maintainer for testing purposes. Since there wasn't any documentation to go with them, and since they're causing complaints, I've deleted them. If they're needed in the future, they can be restored from the repository.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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