Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471270 - net-print/poster-20060221 possibly keeps original DocumentMedia comment
Summary: net-print/poster-20060221 possibly keeps original DocumentMedia comment
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-05-25 20:05 UTC by quazgar
Modified: 2017-02-11 20:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch which should fix this problem. (poster.fix_duplicate_DocumentMedia.patch,461 bytes, patch)
2013-05-25 20:05 UTC, quazgar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description quazgar 2013-05-25 20:05:31 UTC
Created attachment 349158 [details, diff]
Patch which should fix this problem.

In net-print/poster-20060221, parts of the original file's comments are copied into the new postscript, unfortunately also existing %%DocumentMedia comments. Therefore there is the possibility of two (mostly contradicting) such comments existing.

As a test case, produce a large ps file with Inkscape and let poster split it into supposedly A4 images with the -mA4 option. Okular will show them as large pages, this is a representative resulting header:

%!PS-Adobe-3.0
%%Creator: poster
%%DocumentData: Clean7Bit
%%DocumentMedia: 380x500mm 1077 1418 0 () ()
%%Pages: 4
%%DocumentMedia: A4 595 842 0 white ()
%%BoundingBox: 0 0 595 842
%%EndComments
<snip/>

The attached patch fixes this problem.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-27 20:03:51 UTC

*** This bug has been marked as a duplicate of bug 471238 ***
Comment 2 quazgar 2013-05-27 20:12:04 UTC
I wish to object, this is not a duplicate, but an independent problem.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2017-02-11 20:12:35 UTC
commit 937c6df1eab95be77c21ac44aeeb399525944751
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sat Feb 11 21:11:59 2017 +0100

    net-print/poster: Add patch for bug 471270, thanks to quazgar@posteo.de
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1

 net-print/poster/files/poster-20060221-fix_duplicate_DocumentMedia.patch | 19 +++++++++++++++++++
 net-print/poster/poster-20060221-r1.ebuild                               | 26 ++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)