core,app,web: дефолты лимитов входа 5 MiB / 100 страниц

This commit is contained in:
Pjandro
2026-10-19 21:30:45 +00:00
parent f09b629270
commit 45b78f7fc9
7 changed files with 25 additions and 25 deletions
@@ -9,11 +9,11 @@ package ru.pjandro.wordpdf;
*/
public final class WordPdfSettings {
/** Максимальный размер входного .docx (дефолт). 20 MiB = 20 × 1024 × 1024. */
public static final long MAX_INPUT_BYTES = 20L * 1024 * 1024;
/** Максимальный размер входного .docx (дефолт). 5 MiB = 5 × 1024 × 1024. */
public static final long MAX_INPUT_BYTES = 5L * 1024 * 1024;
/** Документ длиннее — ошибка (дефолт). */
public static final int MAX_PAGES = 1000;
public static final int MAX_PAGES = 100;
/**
* Генерация диаграмм (c:chart → PNG, chart-движок). {@code false} — диаграммы