Browse our Products

Aspose.OCR for CPP 21.12 Release Notes

All Features

KeySummaryCategory
OCRCPP-230Investigate how to read the .xlsx template and fill template with content.Investigation
OCRCPP-232Implement .xlsx document creationEnhancement

Enhancements

  • added ability to get XLSX (Excel) document as a result of images recognition

Public API and Backwards Incompatible Changes

New API

  • added new fields to the file_format enum: - file_format::xlsx;

Removed APIs

No Changes

Example (C++17 since filesystem)

#include <iostream>
#include <aspose_ocr.h>
#include <filesystem>
#include <corecrt_io.h>
#include <fcntl.h>
int main()
{
_setmode(_fileno(stdout), _O_U16TEXT);
//Current directory const
std::filesystem::path path{ std::filesystem::current_path() };
/* asposeocr_set_license */
const std::string lic = "/Aspose.Total.lic";
std::filesystem::path license = path.string() + lic;
asposeocr_set_license(license.string().c_str());
/* asposeocr_set_license */
bool lic_result = asposeocr_get_state();


/* Preprocess and save input images as Excel file */
	const size_t len = 4096;
    wchar_t buffer[len] = { 0 };
    RecognitionSettings settings;
    settings.save_format = file_format::xlsx;
    asposeocr_page_save("image1.jpg;image2.jpg", "result_cpp.xlsx", settings);
	
}