GetSVGHeight
Vector graphics, SVG, Measurement
Description
Returns the intrinsic SVG height in the current measurement units without changing page content
Syntax
Delphi
Function TPDFlib.GetSVGHeight(Const SVG: WideString): Double;ActiveX
Function PDFlib::GetSVGHeight(SVG As String) As DoubleDLL
double DLGetSVGHeight(int InstanceID, const wchar_t * SVG);Parameters
| SVG | SVG source to measure |
|---|
Return values
Returns the root height, or the viewBox height when no positive intrinsic height is present, and returns 0 for invalid input
Remarks
Physical units such as pt, in, cm, and mm are converted before the current PDF Library for Delphi measurement scale is applied
Repeated measurement and drawing of the same source reuse the parsed SVG tree
The DLL DLGetSVGHeightA variant accepts text according to the configured ANSI mode