PdfPageRendererGSave Method |
Namespace: Atalasoft.PdfDoc.Generating.Rendering
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 }