API referenceCore SDK

pdfTranslateCoords

Concatenate a pure translation onto the current transform —

C
BOOL32 __stdcall pdfTranslateCoords(PPDF IPDF, double NewOriginX, double NewOriginY);
Delphi
function pdfTranslateCoords(const IPDF: PPDF; NewOriginX, NewOriginY: Double): LongBool; stdcall;

Purpose. Concatenate a pure translation onto the current transform — completing the family of named transform convenience wrappers (pdfRotateCoords/pdfScaleCoords/pdfSkewCoords, Coordinate Transform and Matrix) with the translation case; internally shares the identical cm-emit-plus- ComposeCTM pattern ([1 0 0 1 TX TY]).

Parameters.

ParameterDescription
IPDFDocument handle.
NewOriginX, NewOriginYTranslation offset.

Return value. True on success; False if there is no current content stream.

See also. pdfRotateCoords.

C# (P/Invoke)

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

Core

Exported names

pdfTranslateCoords

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.