diff --git a/libspectre/spectre-device.c b/libspectre/spectre-device.c index 8fb7f93..857722c 100644 --- a/libspectre/spectre-device.c +++ b/libspectre/spectre-device.c @@ -301,6 +301,11 @@ spectre_device_render (SpectreDevice *device, return SPECTRE_STATUS_RENDER_ERROR; } + if (!spectre_gs_send_string (gs, "erasepage")) { + spectre_gs_free (gs); + return SPECTRE_STATUS_RENDER_ERROR; + } + if (!spectre_gs_send_page (gs, device->doc, page, x, y, width, height, spectre_render_context_get_rotation (rc))) { spectre_gs_free (gs); return SPECTRE_STATUS_RENDER_ERROR;