Class: TencentCloud::Mrs::V20200910::TurnPDFToObjectRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200910/models.rb

Overview

TurnPDFToObject请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pdfinfo = nil, textbasedpdfflag = nil) ⇒ TurnPDFToObjectRequest



11653
11654
11655
11656
# File 'lib/v20200910/models.rb', line 11653

def initialize(pdfinfo=nil, textbasedpdfflag=nil)
  @PdfInfo = pdfinfo
  @TextBasedPdfFlag = textbasedpdfflag
end

Instance Attribute Details

#PdfInfoObject

如果该字段为true,那么就会自动判断是电子版还是图片,自动选择直接读取文字还是 OCR 方式. 如果该字段为false, 那么始终采用 OCR 方式



11651
11652
11653
# File 'lib/v20200910/models.rb', line 11651

def PdfInfo
  @PdfInfo
end

#TextBasedPdfFlagObject

如果该字段为true,那么就会自动判断是电子版还是图片,自动选择直接读取文字还是 OCR 方式. 如果该字段为false, 那么始终采用 OCR 方式



11651
11652
11653
# File 'lib/v20200910/models.rb', line 11651

def TextBasedPdfFlag
  @TextBasedPdfFlag
end

Instance Method Details

#deserialize(params) ⇒ Object



11658
11659
11660
11661
11662
11663
11664
# File 'lib/v20200910/models.rb', line 11658

def deserialize(params)
  unless params['PdfInfo'].nil?
    @PdfInfo = PdfInfo.new
    @PdfInfo.deserialize(params['PdfInfo'])
  end
  @TextBasedPdfFlag = params['TextBasedPdfFlag']
end