Method Dispose
Dispose()
Releases all resources used by this object. PDFsharp disposes XGraphics objects automatically. You must call Dispose if you want to create another XGraphics object or a PDFsharp Graphics DrawingContext for this page.
public void Dispose()