Class: TencentCloud::Mrs::V20200910::TurnPDFToObjectAsyncRequest

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

Overview

TurnPDFToObjectAsync请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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



11603
11604
11605
11606
# File 'lib/v20200910/models.rb', line 11603

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

Instance Attribute Details

#PdfInfoObject

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



11601
11602
11603
# File 'lib/v20200910/models.rb', line 11601

def PdfInfo
  @PdfInfo
end

#TextBasedPdfFlagObject

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



11601
11602
11603
# File 'lib/v20200910/models.rb', line 11601

def TextBasedPdfFlag
  @TextBasedPdfFlag
end

Instance Method Details

#deserialize(params) ⇒ Object



11608
11609
11610
11611
11612
11613
11614
# File 'lib/v20200910/models.rb', line 11608

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