Click or drag to resize

PdfPageRendererGSave Method

Performs a graphics save operation. All current graphics state should be encapsulated and pushed on a stack for later retrieval.

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 GSave()
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