LEADTOOLS PDF Segmentation (Leadtools.PdfCompressor assembly)
LEAD Technologies, Inc

InsertSegments Method






Image to be inserted in the PDF file.
Contains information for all segments. PdfCompressorSegmentsInfo
Determines whether to use the average backgroundColor for all segments with background type or to use each color of each background segment.
Average background color, to be used for all backgrounds segments if isThereBackGround is true.
Applies the input Segments, compresses it, and inserts the image in the PDF file. This is provided for advanced usage.
Syntax
public void InsertSegments( 
   RasterImage image,
   PdfCompressorSegmentsInfo[] segmentInfo,
   bool isThereBackGround,
   RasterColor backgroundColor
)
'Declaration
 
Public Sub InsertSegments( _
   ByVal image As RasterImage, _
   ByVal segmentInfo() As PdfCompressorSegmentsInfo, _
   ByVal isThereBackGround As Boolean, _
   ByVal backgroundColor As RasterColor _
) 
'Usage
 
Dim instance As PdfCompressorEngine
Dim image As RasterImage
Dim segmentInfo() As PdfCompressorSegmentsInfo
Dim isThereBackGround As Boolean
Dim backgroundColor As RasterColor
 
instance.InsertSegments(image, segmentInfo, isThereBackGround, backgroundColor)
public void InsertSegments( 
   RasterImage image,
   PdfCompressorSegmentsInfo[] segmentInfo,
   bool isThereBackGround,
   RasterColor backgroundColor
)
 function Leadtools.PdfCompressor.PdfCompressorEngine.InsertSegments( 
   image ,
   segmentInfo ,
   isThereBackGround ,
   backgroundColor 
)

Parameters

image
Image to be inserted in the PDF file.
segmentInfo
Contains information for all segments. PdfCompressorSegmentsInfo
isThereBackGround
Determines whether to use the average backgroundColor for all segments with background type or to use each color of each background segment.
backgroundColor
Average background color, to be used for all backgrounds segments if isThereBackGround is true.
Remarks
For more information, refer to Creating a Compressed PDF File.
Example
Refer to PdfCompressorEngine example.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PdfCompressorEngine Class
PdfCompressorEngine Members
Insert(RasterImage,PdfCompressorOptions) Method
SetCompression Method
PdfCompressorSegmentsInfo Class

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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