Click or drag to resize

PdfPageRendererGRestore Method

Restores the current graphics state to the last saved state by GSave. It is an error to call GRestore without first calling GSave.

Namespace:  Atalasoft.PdfDoc.Generating.Rendering
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public abstract void GRestore()
Examples
public void ClipToShape(PdfPageRenderer renderer, SomeShape shape, IPdfRenderable moreContent)
{
    writer.GSave(); // saves the current clip region
    ClipToMyShape(w, shape);
    moreContent.GeneratePdf(w); // generates clipped content
    writer.GRestore(); // restores the old clipping region
}
See Also