PageTransformRegion Method (SearchResultRegion, Int32, Int32, RenderingSettings)

Apitron PDF Rasterizer help
Apitron.PDF.Rasterizer library for .NET
Transforms the region specified in original page space, to transformed page space using the RenderingSettings given for rendering. This method can be used for SearchResultItem mapping to rendered page.

Namespace:  Apitron.PDF.Rasterizer
Assembly:  Apitron.PDF.Rasterizer (in Apitron.PDF.Rasterizer.dll) Version: (

public SearchResultRegion TransformRegion(
	SearchResultRegion region,
	int desiredWidth,
	int desiredHeight,
	RenderingSettings settings


Type: Apitron.PDF.Rasterizer.SearchSearchResultRegion
The region to transform.
Type: SystemInt32
Width of the page to map this region into.
Type: SystemInt32
Height of the page to map this region into.
Type: Apitron.PDF.Rasterizer.ConfigurationRenderingSettings
The settings used for rendering, you should use the same settings to get a correct mapping between original page and transformed page. If for example, you render the page double-sized and want to map a region from original page to this new image, you would need to pass the same settings in order to get correct results.

Return Value

Type: SearchResultRegion
Transformed region.
See Also