In this patch the comment is changed to describe the function.
/Ole
--- poster-20050907/poster.c 2008-06-10 19:10:13.000000000 +0200 +++ poster-nodupPS/poster.c 2008-06-12 10:10:07.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"); } +/***************************************************/ +/* define a PS function to print the original page */ +/***************************************************/ +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++;