Conversions

public struct Conversions : Codable, Equatable

Document conversion settings.

  • pdf

    A list of PDF conversion settings.

    Declaration

    Swift

    public var pdf: PDFSettings?
  • A list of Word conversion settings.

    Declaration

    Swift

    public var word: WordSettings?
  • A list of HTML conversion settings.

    Declaration

    Swift

    public var html: HTMLSettings?
  • A list of Document Segmentation settings.

    Declaration

    Swift

    public var segment: SegmentSettings?
  • Defines operations that can be used to transform the final output JSON into a normalized form. Operations are executed in the order that they appear in the array.

    Declaration

    Swift

    public var jsonNormalizations: [NormalizationOperation]?
  • When true, automatic text extraction from images (this includes images embedded in supported document formats, for example PDF, and suppported image formats, for example TIFF) is performed on documents uploaded to the collection. This field is supported on Advanced and higher plans only. Lite plans do not support image text recognition.

    Declaration

    Swift

    public var imageTextRecognition: Bool?
  • Initialize a Conversions with member variables.

    Declaration

    Swift

    public init(
        pdf: PDFSettings? = nil,
        word: WordSettings? = nil,
        html: HTMLSettings? = nil,
        segment: SegmentSettings? = nil,
        jsonNormalizations: [NormalizationOperation]? = nil,
        imageTextRecognition: Bool? = nil
    )

    Parameters

    pdf

    A list of PDF conversion settings.

    word

    A list of Word conversion settings.

    html

    A list of HTML conversion settings.

    segment

    A list of Document Segmentation settings.

    jsonNormalizations

    Defines operations that can be used to transform the final output JSON into a normalized form. Operations are executed in the order that they appear in the array.

    imageTextRecognition

    When true, automatic text extraction from images (this includes images embedded in supported document formats, for example PDF, and suppported image formats, for example TIFF) is performed on documents uploaded to the collection. This field is supported on Advanced and higher plans only. Lite plans do not support image text recognition.

    Return Value

    An initialized Conversions.