PageTransformRegion Method (SearchResultRegion, Resolution, 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,
	Resolution resolution,
	RenderingSettings settings


Type: Apitron.PDF.Rasterizer.SearchSearchResultRegion
The region to transform.
Type: Apitron.PDF.Rasterizer.ConfigurationResolution
The resolution of the resulting image. By default the resolution of the PDF page is set to 72 dpi so if you render the page using its original size you get this resolution. This setting allows you to set desired resolution, it's an equivalent to setting a bigger resulting image size.
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