Foxit PDF SDK
|
Public Member Functions | |
def | ParagraphEditing (other) |
Constructor, with another paragraph edit object. More... | |
def | Activate () |
Activate paragraph editing. More... | |
def | CanCopy () |
Check whether can copy text. More... | |
def | CanCut () |
Check whether can cut text. More... | |
def | CanDelete () |
Check whether can delete text. More... | |
def | CanDeselectAll () |
Check whether can deselect all text. More... | |
def | CanPaste () |
Check whether can paste text. More... | |
def | CanSelectAll () |
Check whether can select all text. More... | |
def | CopySelected () |
Copy the selected text. More... | |
def | CutSelected () |
Cut the selected text. More... | |
def | Deactivate () |
Deactivate paragraph editing. More... | |
def | Dedent () |
Decrease indent for text. More... | |
def | DeleteSelected () |
Delete the selected text. More... | |
def | DeselectAll () |
Deselect all text. More... | |
def | ExitEditing (is_end_directly) |
Exit paragraph editing. More... | |
def | Indent () |
Increase indent for text. More... | |
def | InsertText (text) |
Call this function when insert text into the page. More... | |
def | IsEmpty () |
Check whether current object is empty or not. More... | |
def | OnChar (char_code) |
Call this function when a character code is being input. More... | |
def | OnKeyDown (key_code) |
Call this function when key on the keyboard is down. More... | |
def | OnKeyUp (key_code) |
Call this function when key on the keyboard is up. More... | |
def | OnLButtonDoubleClick (page_index, point) |
Call this function when left mouse button is double clicked. More... | |
def | OnLButtonDown (page_index, point) |
Call this function when left mouse button is down. More... | |
def | OnLButtonUp (page_index, point) |
Call this function when left mouse button is up. More... | |
def | OnMouseMove (page_index, point) |
Call this function when mouse moves. More... | |
def | OnMouseWheel (page_index, point, delta) |
Call this function when scrolling the mouse wheel. More... | |
def | PasteSelected () |
Paste the copied text. More... | |
def | Render (page_index_array, renderer) |
Draw the current paragraph editing operation status on the rendering. More... | |
def | SelectAll () |
Select all text. More... | |
def | SetAlignment (alignment) |
Set text alignment for text. More... | |
def | SetBold (is_bold) |
Set bold status for text. More... | |
def | SetBulletedList (bullet_type) |
Set bullet list for text. More... | |
def | SetCharHorizontalScale (scale) |
Set char horizontal scale for text. More... | |
def | SetCharSpace (char_space) |
Set char space for text. More... | |
def | SetFontName (font_name) |
Set font name for text. More... | |
def | SetFontSize (font_size) |
Set the font size for text. More... | |
def | SetItalic (is_italic) |
Set italic status for text. More... | |
def | SetLineSpace (line_space) |
Set line space for text. More... | |
def | SetNumberedList (numbering_type) |
Set the look of numbering for text. More... | |
def | SetParagraphSpacing (paragraph_space) |
Set paragraph spacing for text. More... | |
def | SetStrikethrough (is_striketrough) |
Set strikeout word style for text. More... | |
def | SetSubscript (is_subscript) |
Set the word property of subscript type for text. More... | |
def | SetSuperscript (is_superscript) |
Set the word property of superscript type for text. More... | |
def | SetTextColor (text_color) |
Set text color for text. More... | |
def | SetUnderline (is_underline) |
Set underline for text. More... | |
def | StartEditing (page_index, start_point, end_point) |
Start paragraph editing. More... | |
Static Public Attributes | |
e_BulletTypeBlackDiamondMinusWhite = _fsdk.ParagraphEditing_e_BulletTypeBlackDiamondMinusWhite | |
Bullet type: black diamond minus white. | |
e_BulletTypeCheck = _fsdk.ParagraphEditing_e_BulletTypeCheck | |
Bullet type: check. | |
e_BulletTypeDiagonalUpRightArrow = _fsdk.ParagraphEditing_e_BulletTypeDiagonalUpRightArrow | |
Bullet type: diagonal up right arrow. | |
e_BulletTypeInverseTangentCircle = _fsdk.ParagraphEditing_e_BulletTypeInverseTangentCircle | |
Bullet type: inverse tangent circle. | |
e_BulletTypeNone = _fsdk.ParagraphEditing_e_BulletTypeNone | |
Bullet type: none. | |
e_BulletTypeRightArrow = _fsdk.ParagraphEditing_e_BulletTypeRightArrow | |
Bullet type: right arrow (upper white and lower black). | |
e_BulletTypeSolidCircle = _fsdk.ParagraphEditing_e_BulletTypeSolidCircle | |
Bullet type: solid circle. | |
e_BulletTypeSolidDiamond = _fsdk.ParagraphEditing_e_BulletTypeSolidDiamond | |
Bullet type: solid diamond. | |
e_BulletTypeSolidRectangle = _fsdk.ParagraphEditing_e_BulletTypeSolidRectangle | |
Bullet type: solid rectangle. | |
e_NumberingTypeDecimalDot = _fsdk.ParagraphEditing_e_NumberingTypeDecimalDot | |
Numbering type: 1. 2. 3. | |
e_NumberingTypeDecimalRParen = _fsdk.ParagraphEditing_e_NumberingTypeDecimalRParen | |
Numbering type: 1) 2) 3) | |
e_NumberingTypeLowerLatinDot = _fsdk.ParagraphEditing_e_NumberingTypeLowerLatinDot | |
Numbering type: a. b. c. | |
e_NumberingTypeLowerLatinRParen = _fsdk.ParagraphEditing_e_NumberingTypeLowerLatinRParen | |
Numbering type: a) b) c) | |
e_NumberingTypeNone = _fsdk.ParagraphEditing_e_NumberingTypeNone | |
Numbering type: none. | |
e_NumberingTypeUpperLatinDot = _fsdk.ParagraphEditing_e_NumberingTypeUpperLatinDot | |
Numbering type: A. B. C. | |
This class represents a paragraph edit operation. Before use any methods of paragraph edit function, please ensure the function FoxitPDFSDKPython3.ParagraphEditing.Activate has been called. Please call the function FoxitPDFSDKPython3.ParagraphEditing.Deactivate to deactivate when no need to use any paragraph edit function.
def FoxitPDFSDKPython3.ParagraphEditing.ParagraphEditing | ( | other | ) |
Constructor, with another paragraph edit object.
[in] | other | Another paragraph edit object. |
def FoxitPDFSDKPython3.ParagraphEditing.Activate | ( | ) |
Activate paragraph editing.
def FoxitPDFSDKPython3.ParagraphEditing.CanCopy | ( | ) |
Check whether can copy text.
def FoxitPDFSDKPython3.ParagraphEditing.CanCut | ( | ) |
Check whether can cut text.
def FoxitPDFSDKPython3.ParagraphEditing.CanDelete | ( | ) |
Check whether can delete text.
def FoxitPDFSDKPython3.ParagraphEditing.CanDeselectAll | ( | ) |
Check whether can deselect all text.
def FoxitPDFSDKPython3.ParagraphEditing.CanPaste | ( | ) |
Check whether can paste text.
def FoxitPDFSDKPython3.ParagraphEditing.CanSelectAll | ( | ) |
Check whether can select all text.
def FoxitPDFSDKPython3.ParagraphEditing.CopySelected | ( | ) |
Copy the selected text.
def FoxitPDFSDKPython3.ParagraphEditing.CutSelected | ( | ) |
Cut the selected text.
def FoxitPDFSDKPython3.ParagraphEditing.Deactivate | ( | ) |
Deactivate paragraph editing.
def FoxitPDFSDKPython3.ParagraphEditing.Dedent | ( | ) |
Decrease indent for text.
def FoxitPDFSDKPython3.ParagraphEditing.DeleteSelected | ( | ) |
Delete the selected text.
def FoxitPDFSDKPython3.ParagraphEditing.DeselectAll | ( | ) |
Deselect all text.
def FoxitPDFSDKPython3.ParagraphEditing.ExitEditing | ( | is_end_directly | ) |
Exit paragraph editing.
[in] | is_end_directly | Whether to end editing directly. |
def FoxitPDFSDKPython3.ParagraphEditing.Indent | ( | ) |
Increase indent for text.
def FoxitPDFSDKPython3.ParagraphEditing.InsertText | ( | text | ) |
Call this function when insert text into the page.
[in] | text | The text to be inserted. |
def FoxitPDFSDKPython3.ParagraphEditing.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
def FoxitPDFSDKPython3.ParagraphEditing.OnChar | ( | char_code | ) |
Call this function when a character code is being input.
[in] | char_code | A character code, in UTF16-LE encoding. |
def FoxitPDFSDKPython3.ParagraphEditing.OnKeyDown | ( | key_code | ) |
Call this function when key on the keyboard is down.
[in] | key_code | The key code. Please refer to values starting from FoxitPDFSDKPython3.Filler.e_VkeyUnknown and this should be one of these values. |
def FoxitPDFSDKPython3.ParagraphEditing.OnKeyUp | ( | key_code | ) |
Call this function when key on the keyboard is up.
[in] | key_code | The key code. Please refer to values starting from FoxitPDFSDKPython3.Filler.e_VkeyUnknown and this should be one of these values. |
def FoxitPDFSDKPython3.ParagraphEditing.OnLButtonDoubleClick | ( | page_index, | |
point | |||
) |
Call this function when left mouse button is double clicked.
[in] | page_index | The page index. |
[in] | point | A point where left mouse button is double-clicked in the page, in device coordinate system. |
def FoxitPDFSDKPython3.ParagraphEditing.OnLButtonDown | ( | page_index, | |
point | |||
) |
Call this function when left mouse button is down.
[in] | page_index | The page index. |
[in] | point | A point where left mouse button is down in the page, in device coordinate system. |
def FoxitPDFSDKPython3.ParagraphEditing.OnLButtonUp | ( | page_index, | |
point | |||
) |
Call this function when left mouse button is up.
[in] | page_index | The page index. |
[in] | point | A point where left mouse button is up in the page, in device coordinate system. |
def FoxitPDFSDKPython3.ParagraphEditing.OnMouseMove | ( | page_index, | |
point | |||
) |
Call this function when mouse moves.
[in] | page_index | The page index. |
[in] | point | A point where the mouse in the page, in device coordinate system. |
def FoxitPDFSDKPython3.ParagraphEditing.OnMouseWheel | ( | page_index, | |
point, | |||
delta | |||
) |
Call this function when scrolling the mouse wheel.
[in] | page_index | The page index. |
[in] | point | A point where the mouse in the page, in device coordinate system. |
[in] | delta | Indicates the amount the mouse wheel has been moved. A positive value means to be moved forward, and a negative value means to be moved backward. |
def FoxitPDFSDKPython3.ParagraphEditing.PasteSelected | ( | ) |
Paste the copied text.
def FoxitPDFSDKPython3.ParagraphEditing.Render | ( | page_index_array, | |
renderer | |||
) |
Draw the current paragraph editing operation status on the rendering.
The matrix used in the rendering process is returned by FoxitPDFSDKPython3.ParagraphEditingProviderCallback.GetRenderMatrix .
[in] | page_index_array | The page index array to render. |
[in] | renderer | A valid renderer object for rendering. |
def FoxitPDFSDKPython3.ParagraphEditing.SelectAll | ( | ) |
Select all text.
def FoxitPDFSDKPython3.ParagraphEditing.SetAlignment | ( | alignment | ) |
Set text alignment for text.
[in] | alignment | Alignment value.Please refer to values starting from FoxitPDFSDKPython3.e_AlignmentLeft and this should be one of these values. |
def FoxitPDFSDKPython3.ParagraphEditing.SetBold | ( | is_bold | ) |
Set bold status for text.
[in] | is_bold | Whether to set selected text as bold. true means current selected text will be set as bold, while false means not. |
def FoxitPDFSDKPython3.ParagraphEditing.SetBulletedList | ( | bullet_type | ) |
Set bullet list for text.
Before setting a bullet list, ensure the "wingding.ttf" font has been installed.
[in] | bullet_type | The type of bullet. Please refer to values starting from and this should be one of these values. |
def FoxitPDFSDKPython3.ParagraphEditing.SetCharHorizontalScale | ( | scale | ) |
Set char horizontal scale for text.
[in] | scale | The scale. It should be bigger than 0. |
def FoxitPDFSDKPython3.ParagraphEditing.SetCharSpace | ( | char_space | ) |
Set char space for text.
[in] | char_space | The char space (unit is 1/72 inch). |
def FoxitPDFSDKPython3.ParagraphEditing.SetFontName | ( | font_name | ) |
Set font name for text.
[in] | font_name | The font name. |
def FoxitPDFSDKPython3.ParagraphEditing.SetFontSize | ( | font_size | ) |
Set the font size for text.
[in] | font_size | The font size. |
def FoxitPDFSDKPython3.ParagraphEditing.SetItalic | ( | is_italic | ) |
Set italic status for text.
[in] | is_italic | Whether to set selected text as italic. true means current selected text will be set as italic, while false means not. |
def FoxitPDFSDKPython3.ParagraphEditing.SetLineSpace | ( | line_space | ) |
Set line space for text.
[in] | line_space | The line space (unit is 1/72 inch). |
def FoxitPDFSDKPython3.ParagraphEditing.SetNumberedList | ( | numbering_type | ) |
Set the look of numbering for text.
[in] | numbering_type | The type of numbering. Please refer to values starting from and this should be one of these values. |
def FoxitPDFSDKPython3.ParagraphEditing.SetParagraphSpacing | ( | paragraph_space | ) |
Set paragraph spacing for text.
[in] | paragraph_space | The paragraph spacing. |
def FoxitPDFSDKPython3.ParagraphEditing.SetStrikethrough | ( | is_striketrough | ) |
Set strikeout word style for text.
[in] | is_striketrough | true means to set the strikeout word style, while false means not. |
def FoxitPDFSDKPython3.ParagraphEditing.SetSubscript | ( | is_subscript | ) |
Set the word property of subscript type for text.
def FoxitPDFSDKPython3.ParagraphEditing.SetSuperscript | ( | is_superscript | ) |
Set the word property of superscript type for text.
def FoxitPDFSDKPython3.ParagraphEditing.SetTextColor | ( | text_color | ) |
Set text color for text.
[in] | text_color | The text color. |
def FoxitPDFSDKPython3.ParagraphEditing.SetUnderline | ( | is_underline | ) |
Set underline for text.
[in] | is_underline | true means to underline text, while false means not. |
def FoxitPDFSDKPython3.ParagraphEditing.StartEditing | ( | page_index, | |
start_point, | |||
end_point | |||
) |
Start paragraph editing.
[in] | page_index | The page index. |
[in] | start_point | A point to start editing on the page, in the device coordinate system. |
[in] | end_point | A point to end editing on the page, in the device coordinate system. |