SetRenderArea
Version history
This function was introduced in Quick PDF Library version 12.11.
Description
Sets the area for all rendering methods. Any object that appears outside this area will be excluded from the results.
This function sets the area for the selected page only. It affects the results of RenderPageToDC, RenderPageToFile, RenderPageToStream, RenderPageToString, RenderPageToVariant functions.
The coordinate values passed into this function are specified using the units set with the SetMeasurementUnits function and the origin set with the SetOrigin function.
The area limitation can be removed by calling this function with a value of zero for both the Width and Height parameters.
Syntax
Delphi
function TDebenuPDFLibrary1811.SetRenderArea(Left, Top, Width,
Height: Double): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::SetRenderArea(Left As Double,
Top As Double, Width As Double, Height As Double) As Long
DLL
int DPLSetRenderArea(int InstanceID, double Left, double Top, double Width,
double Height)
Parameters
Left | The horizontal coordinate of the left edge of the area |
Top | The vertical coordinate of the top edge of the area |
Width | The width of the area |
Height | The height of the area |
Return values
1 | The text extraction area was set successfully |
2 | The text extraction area was cleared |