Leadtools.Pdf Requires PDF Plug-in license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
Insert(RasterImage,PdfCompressorOptions) Method
See Also 
Leadtools.Pdf Namespace > PdfCompressor Class > Insert Method : Insert(RasterImage,PdfCompressorOptions) Method




image
Image to be inserted into the PDF file.
options
The PdfCompressorOptions structure that contains the options to be used to write the image to the PDF file.
Segments the specified image using Mixed Raster Content (MRC segmentation) and then compresses it and inserts it into the PDF file.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub Insert( _
   ByVal image As RasterImage, _
   ByVal options As PdfCompressorOptions _
) 
Visual Basic (Usage)Copy Code
Dim instance As PdfCompressor
Dim image As RasterImage
Dim options As PdfCompressorOptions
 
instance.Insert(image, options)
C# 
public void Insert( 
   RasterImage image,
   PdfCompressorOptions options
)
Managed Extensions for C++ 
public: void Insert( 
   RasterImage image,
   PdfCompressorOptions options
) 
C++/CLI 
public:
void Insert( 
   RasterImage image,
   PdfCompressorOptions options
) 

Parameters

image
Image to be inserted into the PDF file.
options
The PdfCompressorOptions structure that contains the options to be used to write the image to the PDF file.

Example

Refer to PdfCompressor example.

Remarks

This method will use segmentation for inserting the image into the Pdf file. If the SetCompression method is used, the segments will be compressed using the compression options specified by the method's PdfCompressorCompressionTypes structure.

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: Raster Pro/Document/Medical Features