Package: poster Version: 1:20050907-1 Severity: wishlist
poster duplicates all input for every page in the poster, so a 3x3 poster will take up 9 times the original PostScript code. I have made a patch that solves this. /Ole --- poster-20050907/poster.c 2008-06-10 19:10:13.000000000 +0200 +++ poster-nodupPS/poster.c 2008-06-10 19:14:34.000000000 +0200 @@ -831,6 +831,7 @@ printf ("%% Print poster %s in %dx%d tiles with %.3g magnification\n", infile, nrows, ncols, scale); } +static void definepage(); /*********************************************/ /* output the poster, create tiles if needed */ @@ -840,6 +841,7 @@ int row, col, page; printprolog(); + definepage(); if ( pages == NULL ) for ( page = 0; page < number_pages; page++ ) for (row = 1; row <= nrows; row++) @@ -977,6 +979,18 @@ printf( "%%%%EndSetup\n"); } +/*******************************************************/ +/* output PS prolog of the scaling and tiling routines */ +/*******************************************************/ +static void definepage() +{ + printf("/theoriginalpage {\n"); + printf("%%%%BeginDocument: %s\n", infile); + printfile(0); + printf("\n%%%%EndDocument\n"); + printf("} def\n"); +} + /*****************************/ /* output one tile at a time */ /*****************************/ @@ -988,9 +1002,7 @@ printf ("\n%%%%Page: (%d,%d) %d\n", pagetoprint+1, ((row-1)*ncols+col), page); printf ("%d %d tileprolog\n", row, col); - printf ("%%%%BeginDocument: %s\n", infile); - printfile (pagetoprint); - printf ("\n%%%%EndDocument\n"); + printf ("theoriginalpage\n"); printf ("tileepilog\n"); page++; -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages poster depends on: ii libc6 2.7-10 GNU C Library: Shared libraries ii libpaper1 1.1.23 library for handling paper charact poster recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]