API referenceText

pdfWriteTextMatrixEx

Explicit-length variant of

CategoryText output

Purpose — Explicit-length variant of pdfWriteTextMatrix, for text with embedded NULs.

Declarations

C
BOOL32 __stdcall pdfWriteTextMatrixExA(PPDF IPDF, TCTM* M, const char* AText, uint32_t Len);
BOOL32 __stdcall pdfWriteTextMatrixExW(PPDF IPDF, TCTM* M, const wchar_t* AText, uint32_t Len);
Delphi
function pdfWriteTextMatrixExA(const IPDF: PPDF; var M: TCTM; const AText: PAnsiChar; Len: Cardinal): LongBool; stdcall; external 'LumasPdf.dll';
function pdfWriteTextMatrixExW(const IPDF: PPDF; var M: TCTM; const AText: PWideChar; Len: Cardinal): LongBool; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
MTCTMText-space matrix.
ATextstringText buffer, may contain embedded NULs.
LenCardinalElement count. Len=0 falls back to a NUL-terminated read of AText.

Return valueTRUE on success; FALSE on any missing precondition.

See alsopdfWriteTextMatrix

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Text
Category

Text

Exported names

pdfWriteTextMatrixExA pdfWriteTextMatrixExW

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.