Bug 1105775

Summary: pdfbklt does not support A3
Product: [Fedora] Fedora Reporter: Marco Motta <marco.motta>
Component: perl-Text-PDFAssignee: Petr Šabata <psabata>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 20CC: lnie, marco.motta, mmaslano, perl-devel, psabata
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: perl-Text-PDF-0.29a-15.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-10 15:25:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Download, patch and install an rpm that support a3 too
none
Create and install a patched rpm, so that pdfbklt supports A0, A1, A2 and A3
none
Support A0-A5 paper sizes none

Description Marco Motta 2014-06-07 14:23:48 UTC
Created attachment 903104 [details]
Download, patch and install an rpm that support a3 too

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:

pdfbklt -b a3 -p 2 file.pdf

Steps to Reproduce:

pdfbklt -b a3 -p 2 file.pdf

Actual results:

An a4 pdf file is generated

Expected results:

An a3 pdf file is requested

Additional info:

You can support a3 addind in scripts/pdfbklt, before the line 
    'a4' => '595;842',
the lines
    'a3' => '842;1191',
    'a3l' => '1191;842',
and, for help, changing "A4,ltr,lgl,A5" to "A3,A4,ltr,lgl,A5".

In the same way, inserting the number of pixels, you can add support to A2, A1, A0.

To create and install a patched rpm that support A3, you can execute the attached script.

Comment 1 Marco Motta 2014-06-07 14:31:48 UTC
Excuse me, obviously addind=adding.

Comment 2 Marco Motta 2014-06-07 15:02:28 UTC
Created attachment 903105 [details]
Create and install a patched rpm, so that pdfbklt supports A0, A1, A2 and A3

To add support from A0 to A3:

1) add, in scripts/pdfbklt, the lines

    'a0' => '2384;3370',
    'a0l' => '3370;2384',
    'a1' => '1684;2384',
    'a1l' => '2384;1684',
    'a2' => '1191;1684',
    'a2l' => '1684;1191',
    'a3' => '842;1191',
    'a3l' => '1191;842',

before

    'a4' => '595;842',

2) for help, change, in scripts/pdfbklt,

A4,ltr,lgl,A5

with

A0,A1,A2,A3,A4,ltr,lgl,A5


If you want, you can install a patched rpm executing the attached script

Comment 3 Marco Motta 2014-06-08 09:00:11 UTC
Excuse me for the mistake, but you must replace

echo "Press Enter to exit.;

with

echo "Press Enter to exit.";

at the end of attachment 903105 [details] (the script, without the final double quote in the second last line, works fine, but does not expect Enter to end).

Comment 4 Petr Šabata 2014-06-18 14:25:37 UTC
Thank for the patch, Marco.
However, the sizes are a little off here and there.  I'll correct those before issuing an update.

Comment 5 Petr Šabata 2014-06-18 14:35:59 UTC
Created attachment 910053 [details]
Support A0-A5 paper sizes

Comment 6 Fedora Update System 2014-06-18 15:19:44 UTC
perl-Text-PDF-0.29a-15.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/perl-Text-PDF-0.29a-15.fc20

Comment 7 lnie 2014-06-19 05:15:00 UTC
perl-Text-PDF-0.29a-15.fc20 works

Comment 8 Fedora Update System 2014-06-27 21:51:55 UTC
perl-Text-PDF-0.29a-15.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.