THotPDF.RenderLoadedPageRegionToBitmap Method
Provides RenderLoadedPageRegionToBitmap behaviour for the image embedding workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function RenderLoadedPageRegionToBitmap(PageIndex: Integer; RegionLeft, RegionBottom, RegionRight, RegionTop: Single; DPI: Integer): TBitmap;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index or object index used to select an existing item |
RegionLeft | Input supplied to RenderLoadedPageRegionToBitmap |
RegionBottom | Input supplied to RenderLoadedPageRegionToBitmap |
RegionRight | Input supplied to RenderLoadedPageRegionToBitmap |
RegionTop | Input supplied to RenderLoadedPageRegionToBitmap |
DPI | Input supplied to RenderLoadedPageRegionToBitmap |
Return value
Returns a TBitmap value
Usage notes
- Use this API in the image embedding workflow before the affected page, resource, field or catalogue object is finalised
- Keep object, field and resource names, and returned handles, stable whilst the document is being finalised
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values