Skip to content

Commit 2bda047

Browse files
committed
Fix ps_end_page.
1 parent 058422a commit 2bda047

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

tools/ipptransform.c

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,25 +2403,8 @@ ps_end_page(xform_raster_t *ras, // I - Raster information
24032403
xform_write_cb_t cb, // I - Write callback
24042404
void *ctx) // I - Write context
24052405
{
2406-
/*
2407-
* End graphics...
2408-
*/
2409-
2410-
(*cb)(ctx, (const unsigned char *)"\033*r0B", 5);
2411-
2412-
/*
2413-
* Formfeed as needed...
2414-
*/
2415-
2416-
if (!(ras->header.Duplex && (page & 1)))
2417-
(*cb)(ctx, (const unsigned char *)"\014", 1);
2418-
2419-
/*
2420-
* Free the output buffer...
2421-
*/
2422-
2423-
free(ras->out_buffer);
2424-
ras->out_buffer = NULL;
2406+
pclps_printf(cb, ctx, "grestore grestore\n");
2407+
pclps_printf(cb, ctx, "showpage\n");
24252408
}
24262409

24272410

0 commit comments

Comments
 (0)