XFINIUM.PDF Documentation
Compress Method



Xfinium.Pdf.Graphics Namespace > PdfPageGraphics Class : Compress Method
Compresses the page graphic content.
Syntax
'Declaration
 
Public Sub Compress() 
'Usage
 
Dim instance As PdfPageGraphics
 
instance.Compress()
public void Compress()
public:
void Compress(); 
Remarks
Call this method to compress the graphic content and reduce memory usage. This method compresses the current graphic content but it leaves the graphics open so new content can be still added. If you are creating pages with heavy vector graphics, such as maps, you can call this method multiple times, after fragments of the page have been drawn in order to reduce the in-memory size of the graphic content. What the page content has been fully created call the PdfGraphics.CompressAndClose method to compress the last fragment and close the page content.
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