XFINIUM.PDF Documentation
CompressAndClose Method (PdfGraphics)



Xfinium.Pdf.Graphics Namespace > PdfGraphics Class : CompressAndClose Method
Compresses the graphic content and closes the graphics surface.
Syntax
'Declaration
 
Public Overridable Sub CompressAndClose() 
'Usage
 
Dim instance As PdfGraphics
 
instance.CompressAndClose()
public virtual void CompressAndClose()
public:
virtual void CompressAndClose(); 
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

PdfGraphics Class
PdfGraphics Members