Bug 1105775 - pdfbklt does not support A3
Summary: pdfbklt does not support A3
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Text-PDF
Version: 20
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Petr Šabata
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-07 14:23 UTC by Marco Motta
Modified: 2014-09-10 15:25 UTC (History)
5 users (show)

Fixed In Version: perl-Text-PDF-0.29a-15.fc20
Clone Of:
Environment:
Last Closed: 2014-09-10 15:25:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Download, patch and install an rpm that support a3 too (1.56 KB, text/plain)
2014-06-07 14:23 UTC, Marco Motta
no flags Details
Create and install a patched rpm, so that pdfbklt supports A0, A1, A2 and A3 (1.68 KB, patch)
2014-06-07 15:02 UTC, Marco Motta
no flags Details | Diff
Support A0-A5 paper sizes (936 bytes, patch)
2014-06-18 14:35 UTC, Petr Šabata
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.