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.
*** This bug has been marked as a duplicate of bug 471238 ***
I wish to object, this is not a duplicate, but an independent problem.
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(+)