Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Style.
Annotation for common text style attributes. This adheres to CSS conventions as much as possible.
Generated from protobuf message google.cloud.documentai.v1.Document.Style
Namespace
Google \ Cloud \ DocumentAI \ V1 \ DocumentMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text_anchor
↳ color
↳ background_color
↳ font_weight
↳ text_style
↳ text_decoration
↳ font_size
↳ font_family
string
Font family such as Arial
, Times New Roman
. https://www.w3schools.com/cssref/pr_font_font-family.asp
getTextAnchor
Text anchor indexing into the Document.text .
hasTextAnchor
clearTextAnchor
setTextAnchor
Text anchor indexing into the Document.text .
$this
getColor
Text color.
hasColor
clearColor
setColor
Text color.
$this
getBackgroundColor
Text background color.
hasBackgroundColor
clearBackgroundColor
setBackgroundColor
Text background color.
$this
getFontWeight
Possible values are normal
, bold
, bolder
, and lighter
.
string
setFontWeight
Possible values are normal
, bold
, bolder
, and lighter
.
var
string
$this
getTextStyle
Possible values are normal
, italic
, and oblique
.
string
setTextStyle
Possible values are normal
, italic
, and oblique
.
var
string
$this
getTextDecoration
Follows CSS standard.
string
setTextDecoration
Follows CSS standard.
var
string
$this
getFontSize
Font size.
hasFontSize
clearFontSize
setFontSize
Font size.
$this
getFontFamily
Font family such as Arial
, Times New Roman
.
string
setFontFamily
Font family such as Arial
, Times New Roman
.
var
string
$this