←Select platform

InsertSegments Method

Summary

Applies the input Segments, compresses it, and inserts the image in the PDF file. This is provided for advanced usage.

Syntax

C#
VB
C++
Public Sub InsertSegments( _ 
   ByVal image As Leadtools.RasterImage, _ 
   ByVal segmentInfo() As Leadtools.Pdfcompressor.PdfCompressorSegmentsInfo, _ 
   ByVal isThereBackGround As Boolean, _ 
   ByVal backgroundColor As Leadtools.RasterColor _ 
) 

Parameters

image
Image to be inserted in the PDF file.

segmentInfo
Contains information about all of the 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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Click or drag to resize