Pimcore\Web2Print\Processor\PdfReactor8::getProcessingOptions PHP Метод

getProcessingOptions() публичный Метод

    public function getProcessingOptions()
    {
        include_once 'Pimcore/Web2Print/Processor/api/v' . Config::getWeb2PrintConfig()->get('pdfreactorVersion', '8.0') . '/PDFreactor.class.php';
        $options = [];
        $options[] = ["name" => "author", "type" => "text", "default" => ""];
        $options[] = ["name" => "title", "type" => "text", "default" => ""];
        $options[] = ["name" => "printermarks", "type" => "bool", "default" => ""];
        $options[] = ["name" => "links", "type" => "bool", "default" => true];
        $options[] = ["name" => "bookmarks", "type" => "bool", "default" => true];
        $options[] = ["name" => "tags", "type" => "bool", "default" => true];
        $options[] = ["name" => "javaScriptMode", "type" => "select", "values" => [\JavaScriptMode::ENABLED, \JavaScriptMode::DISABLED, \JavaScriptMode::ENABLED_NO_LAYOUT], "default" => \JavaScriptMode::ENABLED];
        $options[] = ["name" => "viewerPreference", "type" => "select", "values" => [\ViewerPreferences::PAGE_LAYOUT_SINGLE_PAGE, \ViewerPreferences::PAGE_LAYOUT_TWO_COLUMN_LEFT, \ViewerPreferences::PAGE_LAYOUT_TWO_COLUMN_RIGHT], "default" => \ViewerPreferences::PAGE_LAYOUT_SINGLE_PAGE];
        $options[] = ["name" => "colorspace", "type" => "select", "values" => [\ColorSpace::CMYK, \ColorSpace::RGB], "default" => \ColorSpace::CMYK];
        $options[] = ["name" => "encryption", "type" => "select", "values" => [\Encryption::NONE, \Encryption::TYPE_40, \Encryption::TYPE_128], "default" => \Encryption::NONE];
        $options[] = ["name" => "loglevel", "type" => "select", "values" => [\LogLevel::FATAL, \LogLevel::WARN, \LogLevel::INFO, \LogLevel::DEBUG, \LogLevel::PERFORMANCE], "default" => \LogLevel::FATAL];
        return $options;
    }