pdfGetMiterLimit
Set/get the current miter limit, which bounds how far a sharp
double __stdcall pdfGetMiterLimit(PPDF IPDF);
BOOL32 __stdcall pdfSetMiterLimit(PPDF IPDF, double Value);
function pdfGetMiterLimit(const IPDF: PPDF): Double; stdcall;
function pdfSetMiterLimit(const IPDF: PPDF; Value: Double): LongBool; stdcall;
Purpose. Set/get the current miter limit, which bounds how far a sharp Miter join (see pdfSetLineJoinStyle) is allowed to extend before the PDF viewer falls back to a bevel join.
Description. Same real, immediate-emission pattern: caches into FCurMiterLimit and emits an M miter-limit operator via WriteMiterLimit. Only has visible effect when the current line-join style is Miter (0).
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
Value | Miter-limit ratio; not validated (the PDF spec's own default is 10.0). |
Return value. pdfSetMiterLimit: True on success, False if no current content stream. pdfGetMiterLimit: the cached current value; 0.0 if IPDF is invalid.
See also. pdfGetLineJoinStyle.
C# (P/Invoke)
public static extern double pdfGetMiterLimit(IntPtr IPDF);
Getters
pdfGetMiterLimit
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.