/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */


const CorrectDocumentParam = require("./CorrectDocumentParam");

/**
 * Параметры создания документа UnitextDocument функцией CreateDocument
 * Параметры создания документа
 */
class CreateDocumentParam {
    
    constructor() {
        this.onlyForPureText = false;
        this.ignoreInnerDocuments = false;
        this.extractPageImageContent = false;
        this.splitTableRows = false;
        this.loadDocumentStructure = false;
        this.correctParams = new CorrectDocumentParam();
        this.dontGenerateItemsId = false;
        this.ignoreWord6 = false;
        this.maxTableRows = 0;
        this.maxImageSize = 0;
        this.setFormulaAsImage = false;
        this.correctParams = new CorrectDocumentParam();
        this.correctParams.chooseAll = true;
    }
    
    /**
     * В наследной функции можно переопределить это для получения бегунка 
     * (используется для PDF, когда он очень большой, то прогресс обработки страниц)
     * @param percent 
     */
    progress(percent) {
        
    }
    
    static _new361(_arg1) {
        let res = new CreateDocumentParam();
        res.correctParams = _arg1;
        return res;
    }
    
    static _new674(_arg1, _arg2) {
        let res = new CreateDocumentParam();
        res.onlyForPureText = _arg1;
        res.ignoreInnerDocuments = _arg2;
        return res;
    }
}


module.exports = CreateDocumentParam