Table of Contents

Method SetTileSize

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

SetTileSize(int, int)

Sets the size of tiles to use while drawing.

public TiffImageCompressionOptions SetTileSize(int width, int height)

Parameters

width int

The width of tiles.

height int

The height of tiles.

Returns

TiffImageCompressionOptions

The instance used to call the method.

Remarks

Setting tile size is useful when you want to reduce amount of memory used while drawing.

The library will use tiles only if both width and height of tiles is not zero and is smaller than the page width and height, respectively.

The lower the value, the less memory is used but the overall drawing process will take more time.

The library uses the value of this property as a recommendation only and can use slightly bigger or smaller tiles if needed.

The Tiled PDF to image rendering section of the Convert PDF to image in C# and VB.NET article describes how to use tiles when saving PDF pages as TIFF images.