41
Programming Guide
Return value:
Return value indicates whether the conversion is successful. The client area contains the
PDF page being shown as well as some grey background. If the point is located in the grey
background, the conversion will fail.
Note:
This function will be removed in next SDK version and it will be replaced with function
ConvertClientCoordToPageCoord
ConvertClientCoordToPageCoord
Converts a point in ActiveX control window's client co-ordinates into PDF page
coordinate.
Prototype:
BOOL ConvertClientCoordToPageCoord (long nClientX, long nClientY,
long* pnPageNum, float* pPageX, float* pPageY);
Parameters:
nClientX - X coordinate in the ActiveX control window's client
co-ordinates, in pixels
nClientY - Y coordinate in the ActiveX control window's client
co-ordinates, in pixels
pnPageNum - For returning page number in which the given point falls on
pPageX - For returning x coordinate of the point inside the PDF page
(in PDF co-ordinate system)
pPageY - For returning y coordinate of the point inside the PDF page
(in PDF co-ordinate system)
Return value:
Return value indicates whether the conversion is successful. The client area contains the
PDF page being shown as well as some grey background. If the point is located in the grey
background, the conversion will fail.
ConvertPageCoordToClientCoord
Converts PDF page coordinates to the coordinates inside ActiveX control window's
client area.
Prototype:
BOOL ConvertPageCoordToClientCoord (long nPageNum,
float dPageX, float dPageY,
long* pnClientX, long* pnClientY);
Parameters:
nPageNum - page number
dPageX - X coordinate inside the PDF page (in PDF co-ordinate system)
dPageY - Y coordinate inside the PDF page (in PDF co-ordinate system)
pnClientX - For returning X coordinate in the ActiveX control
window's client area. A negative result indicates that the point is