Skip Menu |
 

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

Report information
The Basics
Id: 79312
Status: open
Priority: 0/
Queue: PDF-Create

People
Owner: Nobody in particular
Requestors: jshorie [...] medinaco.org
Cc:
AdminCc:

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



Subject: bug in recent version with adding images
Date: Thu, 30 Aug 2012 15:58:43 -0400
To: bug-PDF-Create [...] rt.cpan.org
From: Jonathan Shorie <jshorie [...] medinaco.org>
Download (untitled) / with headers
text/plain 4.6k
We use pdf::create to create pdf's of customer bills that are then emailed to the customer. We have been using this since about 2009 without problems. This month, I received a new computer running Kubuntu 12.04. Now there appears to be a problem with the pdf that is being created. It neads to add 2 jpg graphics to the pdf. When run with 1.06 it only adds 1 of the jpg graphics to the pdf. While I do not have the old computer any more, I was able to run my program on another computer with an old version of pdf::create and it is working there. Enclosed is the relevant information: My Desktop # uname -a Linux tetra7 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.1 LTS Release: 12.04 Codename: precise # perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for i686-linux-gnu- thread-multi-64int (with 53 registered patches, see perl -V for more detail) # apt-cache showpkg libpdf-create-perl Package: libpdf-create-perl Versions: 1.06-1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise_universe_binary- i386_Packages) (/var/lib/dpkg/status) Description Language: File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise_universe_binary- i386_Packages MD5: 09210befb5791f0fbd6e5c5033af7df9 Description Language: en File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise_universe_i18n_Translation- en MD5: 09210befb5791f0fbd6e5c5033af7df9 Reverse Depends: sgf2dg,libpdf-create-perl Dependencies: 1.06-1 - perl (0 (null)) libpdf-api2-perl (0 (null)) Provides: 1.06-1 - Reverse Provides: ===================================== My Code ########################### # Print Heading on Page 1 # ########################### ++$thepage; $page->image('image' =>$img1, 'xalign' =>0, 'yalign' =>1, 'xscale' =>0.5, 'yscale' =>0.5, 'xpos' =>1, 'ypos' =>10.5*$inch); $page->image('image' =>$img2, 'xalign' =>0, 'yalign' =>1, 'xscale' =>0.5, 'yscale' =>0.5, 'xpos' =>1, 'ypos' =>7.25*$inch); ====================================== The Machine where it is working: # uname -a Linux scorpionfish5 2.6.32-30-server #59-Ubuntu SMP Tue Mar 1 22:46:09 UTC 2011 x86_64 GNU/Linux #lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.04.2 LTS Release: 10.04 Codename: lucid #perl -v This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi Copyright 1987-2009, Larry Wall #apt-cache showpkg libpdf-create-perl Package: libpdf-create-perl Versions: 1.03-1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_lucid_universe_binary- amd64_Packages) (/var/lib/dpkg/status) Description Language: File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_lucid_universe_binary- amd64_Packages MD5: 09210befb5791f0fbd6e5c5033af7df9 Reverse Depends: sgf2dg,libpdf-create-perl Dependencies: 1.03-1 - perl (2 5.6.0-16) libpdf-api2-perl (0 (null)) Provides: 1.03-1 - Reverse Provides: ============================================= Please let me know if there is any more information that you need or anything that I can do to help. Thanks Jonathan R. Shorie Systems Administrator Medina County Sanitary Engineers 791 W Smith Rd Medina, OH 44256 Phone: (330) 764-8332 Fax: (330) 723-9661
From: markus [...] markus.org
Download (untitled) / with headers
text/plain 878b
Hi Jonathan, If I understand you correctly then you migrated from Ubuntu 10.04 with an unspecified version of PDF:Create to 12.04 and in the process installed the newest PDF::Create (1.06). Since the upgrade one of the two pictures is no longer included in the PDF. I'm still using 10.04 on my main computer (yes its should be changed). The newer Ubuntu developments did not encourage me (Gnome 3.0 & Unity, double yuck !). However, the image processing in PDF::Create is all done in perl and does not depend on external software or libraries. But, also, the image processing has not changed since I've started maintaining the code (ca 2007). I'm a bit lost in guessing where the problem is. In order to find a bug I would need a self-contained (no external dependencies) script who exhibits the problem. The snippets you sent look fine, but are insufficient. Markus
Subject: [rt.cpan.org #79312]
Date: Fri, 31 Aug 2012 09:01:55 -0400
To: "Markus Baertschi via RT" <bug-PDF-Create [...] rt.cpan.org>
From: Jonathan Shorie <jshorie [...] medinaco.org>
Download (untitled) / with headers
text/plain 898b
That is correct. The code does still run on the second machine which has PDF::Create 1.03-1. I am including the full perl script that creates the pdf The old computer was running Ubuntu 9.10 with kde3 from the trinity project. The new computer is running Kubuntu 12.04 with PDF::Create 1.06-1. The server where the script still runs is running Ubuntu Server 10.04 with PDF::Create 1.03-1 I am enclosing the perl script create_the_pdfs.pl as an attachment. If you need a copy of the graphics, then I can email those to you. Thank you for getting back with me so quickly on this. I use PDF::Create on many programs here for creating pdfs. You probably do not get as much recognition as you deserve for continuing to maintain this. Jonathan R. Shorie Systems Administrator Medina County Sanitary Engineers 791 W Smith Rd Medina, OH 44256 Phone: (330) 764-8332 Fax: (330) 723-9661
Download create_the_pdfs.pl
text/x-perl 11.2k

Message body is not shown because sender requested not to inline it.

From: markus [...] markus.org
Download (untitled) / with headers
text/plain 536b
Hi Jonathan, it looks to me that you can not really determine if the problem comes from the new PDF-Create version, the new Ubuntu version, or even the installation of the application on the new server. Your best bet is to change one thing after the other, step by step. Also, the script you sent is nice and simple, but can not serve for testing because the images are missing and it requires a database to function. Some questions: - Do you still have pdf-create v1.03 ? - Can you install it on the new server to check ? Markus
Subject: [rt.cpan.org #79312] bug in recent version with adding images
Date: Fri, 31 Aug 2012 14:32:47 -0400
To: "Markus Baertschi via RT" <bug-PDF-Create [...] rt.cpan.org>
From: Jonathan Shorie <jshorie [...] medinaco.org>
Download (untitled) / with headers
text/plain 479b
I downloaded 1.06 version of PDF Create from CPAN at http://search.cpan.org/~markusb/PDF-Create-1.06/ It still only puts the first graphic on the pdfs I then downloaded 1.04 version of PDF Create from CPAN at http://search.cpan.org/~markusb/PDF-Create-1.04/ It puts both graphics on the pdfs I tried both the 1.06 version and the 1.04 version running on my new computer which has Kubuntu 12.04 I can send you a copy of the pdf generated with each version if it woud help.


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.