Foxit PDF SDK
FoxitPDFSDKPython2.DefaultAppearance Class Reference

Inherits FoxitPDFSDKPython2._object.

Public Member Functions

def DefaultAppearance (flags, font, text_size, text_color)
 Constructor, with parameters. More...
 
def Set (flags, font, text_size, text_color)
 Set value. More...
 

Static Public Attributes

 e_FlagFont = _fsdk.DefaultAppearance_e_FlagFont
 Indicates property font of FoxitPDFSDKPython2.DefaultAppearance is meaningful.
 
 e_FlagFontSize = _fsdk.DefaultAppearance_e_FlagFontSize
 Indicates property text size of FoxitPDFSDKPython2.DefaultAppearance is meaningful.
 
 e_FlagTextColor = _fsdk.DefaultAppearance_e_FlagTextColor
 Indicates property text color of FoxitPDFSDKPython2.DefaultAppearance is meaningful.
 
 flags = _swig_property(_fsdk.DefaultAppearance_flags_get, _fsdk.DefaultAppearance_flags_set)
 Flags to indicate which properties of default appearance are meaningful. More...
 
 font = _swig_property(_fsdk.DefaultAppearance_font_get, _fsdk.DefaultAppearance_font_set)
 A font for default appearance. It should be a valid font object when it is useful. More...
 
 text_color = _swig_property(_fsdk.DefaultAppearance_text_color_get, _fsdk.DefaultAppearance_text_color_set)
 Text color for default appearance. Format: 0xRRGGBB. More...
 
 text_size = _swig_property(_fsdk.DefaultAppearance_text_size_get, _fsdk.DefaultAppearance_text_size_set)
 Text size for default appearance. More...
 

Detailed Description

This class represents default appearance data, which is used for free text annotation and form.

Constructor & Destructor Documentation

◆ DefaultAppearance()

def FoxitPDFSDKPython2.DefaultAppearance.DefaultAppearance (   flags,
  font,
  text_size,
  text_color 
)

Constructor, with parameters.

Constructor, with another default appearance object.

Constructor.

Parameters
[in]flagsFlags to indicate which properties of default appearance are meaningful. Please refer to values starting from FoxitPDFSDKPython2.DefaultAppearance.e_FlagFont and this can be one or a combination of these values.
[in]fontA valid font object for default appearance when parameter flags includes FoxitPDFSDKPython2.DefaultAppearance.e_FlagFont .
[in]text_sizeFont size for default appearance when parameter flags includes FoxitPDFSDKPython2.DefaultAppearance.e_FlagFontSize . Usually it should be above 0. For some objects, the size 0 has special meaning. Please refer to the comment of functions which are used to set default appearance data to other object.
[in]text_colorText color for default appearance. Format: 0xRRGGBB.
[in]default_appearanceAnother default appearance object.

Member Function Documentation

◆ Set()

def FoxitPDFSDKPython2.DefaultAppearance.Set (   flags,
  font,
  text_size,
  text_color 
)

Set value.

Parameters
[in]flagsFlags to indicate which properties of default appearance are meaningful. Please refer to values starting from FoxitPDFSDKPython2.DefaultAppearance.e_FlagFont and this can be one or a combination of these values.
[in]fontA font for default appearance. Please ensure this is a valid font object when parameter flags includes FoxitPDFSDKPython2.DefaultAppearance.e_FlagFont .
[in]text_sizeFont size for default appearance when parameter flags includes FoxitPDFSDKPython2.DefaultAppearance.e_FlagFontSize . Usually it should be above 0. For some objects, the size 0 has special meaning. Please refer to the comment of functions which are used to set default appearance data to other object.
[in]text_colorText color for default appearance. Format: 0xRRGGBB.
Returns
None.

Member Data Documentation

◆ flags

FoxitPDFSDKPython2.DefaultAppearance.flags = _swig_property(_fsdk.DefaultAppearance_flags_get, _fsdk.DefaultAppearance_flags_set)
static

Flags to indicate which properties of default appearance are meaningful.

Please refer to values starting from FoxitPDFSDKPython2.DefaultAppearance.e_FlagFont and this can be one or a combination of these values. 0 means no property of default appearance is meaningful.

◆ font

FoxitPDFSDKPython2.DefaultAppearance.font = _swig_property(_fsdk.DefaultAppearance_font_get, _fsdk.DefaultAppearance_font_set)
static

A font for default appearance. It should be a valid font object when it is useful.

Note
Useful only when flags of current object includes FoxitPDFSDKPython2.DefaultAppearance.e_FlagFont .

◆ text_color

FoxitPDFSDKPython2.DefaultAppearance.text_color = _swig_property(_fsdk.DefaultAppearance_text_color_get, _fsdk.DefaultAppearance_text_color_set)
static

Text color for default appearance. Format: 0xRRGGBB.

Note
Useful only when flags of current object includes FoxitPDFSDKPython2.DefaultAppearance.e_FlagTextColor .

◆ text_size

FoxitPDFSDKPython2.DefaultAppearance.text_size = _swig_property(_fsdk.DefaultAppearance_text_size_get, _fsdk.DefaultAppearance_text_size_set)
static

Text size for default appearance.

Usually it should be above 0 when it is useful. For some objects, the size 0 has special meaning. Please refer to the comment of functions which are used to set default appearance data to other object.

Note
Useful only when flags of current object includes FoxitPDFSDKPython2.DefaultAppearance.e_FlagFontSize .