API referenceGraphics

pdfGetMiterLimit

Set/get the current miter limit, which bounds how far a sharp

C
double __stdcall pdfGetMiterLimit(PPDF IPDF);
BOOL32 __stdcall pdfSetMiterLimit(PPDF IPDF, double Value);
Delphi
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.

ParameterDescription
IPDFDocument handle.
ValueMiter-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)

wrappers/dotnet/LumasPdf.cs
public static extern double pdfGetMiterLimit(IntPtr IPDF);
Area
Graphics
Category

Getters

Exported names

pdfGetMiterLimit

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.