enum Abbyy::ExportFormat

Defined in:

abbyy/export_format.cr

Enum Members

Txt = 0

The recognized text is exported to the file line by line from left to right. E.g. if the text was originally put in columns, the first lines of every column will be saved, then the second lines, etc.

Please take into account the fact that in this format only text will be saved. No images or barcodes will remain in the output file. If you want to save the barcode recognition results in the exported file, use the TXT_UNSTRUCTURED format.

TxtUnstructured = 1

The exported file contains the text that was saved according to the order of the original blocks.

Rtf = 2
Docx = 3
Xlsx = 4
Pptx = 5
PdfSearchable = 6

The entire image is saved as a picture, the recognized text is put under it.

PdfTextAndImages = 7

The recognized text is saved as text, and the pictures are saved as pictures.

Pdfa = 8

The file is saved in the PDF/A-1b format, with the entire image saved as a picture, and recognized text put under it.

Xml = 9

All coordinates are saved relative to the original image.

See Output XML Document for the description of tags. If you select this export format, barcodes are recognized on the image and saved to output XML no matter which profile is used for recognition.

XmlForCorrectedImage = 10

The same as xml, but all coordinates written into the output XML file relate to the corrected image, not the original.

Alto = 11
V_Card = 12

This format is only available with the processBusinessCard method.

Csv = 13

This format is only available with the processBusinessCard method.

Instance Method Summary

Instance Method Detail

def alto? #

[View source]
def csv? #

[View source]
def docx? #

[View source]
def pdf_searchable? #

[View source]
def pdf_text_and_images? #

[View source]
def pdfa? #

[View source]
def pptx? #

[View source]
def rtf? #

[View source]
def to_s #
Description copied from struct Enum

Returns a String representation of this enum member. In the case of regular enums, this is just the name of the member. In the case of flag enums, it's the names joined by vertical bars, or "None", if the value is zero.

If an enum's value doesn't match a member's value, the raw value is returned as a string.

Color::Red.to_s                     # => "Red"
IOMode::None.to_s                   # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"

Color.new(10).to_s # => "10"

[View source]
def txt? #

[View source]
def txt_unstructured? #

[View source]
def v_card? #

[View source]
def xlsx? #

[View source]
def xml? #

[View source]
def xml_for_corrected_image? #

[View source]