|
Foxit PDF SDK
|
Public Member Functions | |
| def | SnapPointMgr (page) |
| Constructor, from a parsed PDF page object. More... | |
| def | SnapPointMgr (other) |
| Constructor, with another snap point manager object. More... | |
| def | GetSnappedPointAtPos (position, flags) |
| Get the snapped point information at/around a specified position in [PDF coordinate system] (). More... | |
| def | IsEmpty () |
| Check whether current object is empty or not. More... | |
| def | Reload () |
| Reload current manager. More... | |
Static Public Attributes | |
| e_FlagEndpoint = _fsdk.SnapPointMgr_e_FlagEndpoint | |
| If set, that means to get the endpoint of a path. | |
| e_FlagIntersectionPoint = _fsdk.SnapPointMgr_e_FlagIntersectionPoint | |
| If set, that means to get the intersection of two intersecting paths. | |
| e_FlagMidpoint = _fsdk.SnapPointMgr_e_FlagMidpoint | |
| If set, that means to get the midpoint for two endpoints of a path. | |
| e_FlagNearestPoint = _fsdk.SnapPointMgr_e_FlagNearestPoint | |
| If set, that means to get the nearest point (which is in a path) to the specified point. | |
This class represents a manager for snapping point. This class can be used to snap point in a path with specified snapping flags.
| def FoxitPDFSDKPython2.SnapPointMgr.SnapPointMgr | ( | page | ) |
Constructor, from a parsed PDF page object.
| [in] | page | A valid PDF page object. This page should has been parsed. |
| def FoxitPDFSDKPython2.SnapPointMgr.SnapPointMgr | ( | other | ) |
Constructor, with another snap point manager object.
| [in] | other | Another snap point manager object. |
| def FoxitPDFSDKPython2.SnapPointMgr.GetSnappedPointAtPos | ( | position, | |
| flags | |||
| ) |
Get the snapped point information at/around a specified position in [PDF coordinate system] ().
| [in] | position | A specified position, in [PDF coordinate system] (). |
| [in] | flags | Flags for snapping point. Please refer to values starting from FoxitPDFSDKPython2.SnapPointMgr.e_FlagEndpoint and this should be one or a combination of these values. |
| def FoxitPDFSDKPython2.SnapPointMgr.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
| def FoxitPDFSDKPython2.SnapPointMgr.Reload | ( | ) |
Reload current manager.
This function should be called after any path in related PDF page has been modified.