DynaPDF Manual - Page 753

Previous Page 752   Index   Next Page 754

Function Reference
Page 753 of 777
LBOOL pdfTranslateCoords(
const PPDF* IPDF, // Instance pointer
double OriginX,
// New coordinate origin of the x-axis
double OriginY)
// New coordinate origin of the y-axis
The function translates the coordinate system to the new origin OriginX, OriginY. Save the graphics
state beforehand and restore it when finish.
After the coordinate system was changed by the function, bottom-up coordinates are active. It is not
possible to use top-down coordinates with a transformed coordinate system.
If the graphics state was not saved beforehand the function set a warning but the transformation will
be applied.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0. Use an error
callback function or check whether an error occurred with the function GetErrorMessage(). See
Exception handling for further information.

Previous topic: TextAnnot

Next topic: TranslateRawCode (Font API)