Bug 1105775
| Summary: | pdfbklt does not support A3 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Marco Motta <marco.motta> | ||||||||
| Component: | perl-Text-PDF | Assignee: | Petr Šabata <psabata> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 20 | CC: | 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: |
|
||||||||||
Excuse me, obviously addind=adding. 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
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).
Thank for the patch, Marco. However, the sizes are a little off here and there. I'll correct those before issuing an update. Created attachment 910053 [details]
Support A0-A5 paper sizes
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 perl-Text-PDF-0.29a-15.fc20 works 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. |
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.