XFINIUM.PDF Documentation
CompressAndClose Method (PdfPageGraphics)



Xfinium.Pdf.Graphics Namespace > PdfPageGraphics Class : CompressAndClose Method
Compresses the graphic content and closes the graphics surface.
Syntax
'Declaration
 
Public Overrides Sub CompressAndClose() 
'Usage
 
Dim instance As PdfPageGraphics
 
instance.CompressAndClose()
public override void CompressAndClose()
public:
void CompressAndClose(); override 
Remarks
Call this method to compress the graphic content and reduce memory usage. If this method is not called, the graphic content is stored uncompressed in the Pdf file. After calling this method no more drawing is allowed on the graphics.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfPageGraphics Class
PdfPageGraphics Members