FoxitPDFSDKforWeb
v10.0.0
Foxit PDF SDK for Web
|
Provides page edit functionality for document operations within the UIExtension. More...
Inherits UIXAddon.
Public Member Functions | |
activate (type) | |
Activate the page editor. More... | |
deactivate () | |
Deactivate the page editor. Must be called after activate. More... | |
getActiveObject () | |
onClick (pageIndex, point, isPDFPoint=true) | |
Trigger the click event. More... | |
async | setEditingObjectToolStyle (style={}) |
Set the editing object tool style. More... | |
async | setTextToolStyle (style={}) |
Set text tool style. More... | |
Provides page edit functionality for document operations within the UIExtension.
|
inline |
Activate the page editor.
type | string - The type of the object to be edited. Supported types are: 'All', 'Text', 'Image', 'Path', 'Shading'. |
|
inline |
Deactivate the page editor. Must be called after activate.
|
inline |
Get the active graphics object.
|
inline |
Trigger the click event.
This function is recommended to be used in visibile pages.
pageIndex | number - The page index. |
point | Object - The point. If this is a device point, the point should be in the PDFViewer Port coordinate system. The PDF coordinates are recommended. |
point.x | number - The x coordinate. |
point.y | number - The y coordinate. |
isPDFPoint | boolean - Whether the point is a PDF point. Default is true. |
|
inline |
Set the editing object tool style.
style | object - JSON object which indicates text tool style. |
style.editObjectBox | object - The border style of the editing object box. |
style.editObjectBox.color | number - The color of the editing object box. Format: 0xRRGGBB. |
style.editObjectBox.lineType | number - The line style of the editing object box. Please refer to Line_Type . |
style.addShapeBox | object - The border style of the adding shape box. |
style.addShapeBox.color | number - The color of the adding shape box. Format: 0xRRGGBB. |
style.addShapeBox.lineType | number - The line style of the adding shape box. Please refer to Line_Type . |
|
inline |
Set text tool style.
style | object - JSON object which indicates text tool style. |
style.cursor | object - The style of cursor. |
style.cursor.color | number - The color of the cursor. Format: 0xRRGGBB. |
style.cursor.lineType | number - The line style of the cursor. Please refer to Line_Type . |
style.editTextBox | object - The border style of edit text box. |
style.editTextBox.color | number - The color of the edit text box. Format: 0xRRGGBB. |
style.editTextBox.lineType | number - The line style of the edit text box. Please refer to Line_Type . |
style.addTextBox | object - The border style of the added text box. |
style.addTextBox.color | number - The color of the added text box. Format: 0xRRGGBB. |
style.addTextBox.lineType | number - The line style of the added text box. Please refer to Line_Type . |