Leadtools.Pdf Requires PDF Plug-in license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SetCompression Method
See Also 
Leadtools.Pdf Namespace > PdfCompressor Class : SetCompression Method



CompressionTypes
Provides information about PDF Compression options PdfCompressorCompressionTypes.
CompressionTypes
Provides information about PDF Compression options PdfCompressorCompressionTypes.
Sets the compression type to be used with each image segment inserted in the PDF file.

Syntax

Visual Basic (Declaration) 
Public Sub SetCompression( _
   ByVal CompressionTypes As PdfCompressorCompressionTypes _
) 
Visual Basic (Usage)Copy Code
Dim instance As PdfCompressor
Dim CompressionTypes As PdfCompressorCompressionTypes
 
instance.SetCompression(CompressionTypes)
C# 
public void SetCompression( 
   PdfCompressorCompressionTypes CompressionTypes
)
C++/CLI 
public:
void SetCompression( 
   PdfCompressorCompressionTypes CompressionTypes
) 

Parameters

CompressionTypes
Provides information about PDF Compression options PdfCompressorCompressionTypes.

Example

Refer to PdfCompressor example.

Remarks

This method can be called before inserting a compressed image into the PDF file by calling the following methods: If the user does not call this method before using these methods, then the insertion process will use the default compression types.
For more information, refer to Creating a Compressed PDF File.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Pdf requires a PDF Plug-in license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features