2023-12-16 19:29:43 +00:00
|
|
|
package stirling.software.SPDF.model.api;
|
2023-12-30 19:11:27 +00:00
|
|
|
|
2023-12-16 19:29:43 +00:00
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
2023-12-30 19:11:27 +00:00
|
|
|
|
2023-12-16 19:29:43 +00:00
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
|
|
|
|
|
@Data
|
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
|
|
public class SplitPdfBySectionsRequest extends PDFFile {
|
2025-05-16 13:23:01 +02:00
|
|
|
@Schema(
|
|
|
|
|
description = "Number of horizontal divisions for each PDF page",
|
|
|
|
|
defaultValue = "0",
|
|
|
|
|
minimum = "0",
|
|
|
|
|
requiredMode = Schema.RequiredMode.REQUIRED)
|
2023-12-16 19:29:43 +00:00
|
|
|
private int horizontalDivisions;
|
|
|
|
|
|
2025-05-16 13:23:01 +02:00
|
|
|
@Schema(
|
|
|
|
|
description = "Number of vertical divisions for each PDF page",
|
|
|
|
|
defaultValue = "1",
|
|
|
|
|
minimum = "0",
|
|
|
|
|
requiredMode = Schema.RequiredMode.REQUIRED)
|
2023-12-16 19:29:43 +00:00
|
|
|
private int verticalDivisions;
|
2024-02-25 04:26:35 +08:00
|
|
|
|
2025-05-16 13:23:01 +02:00
|
|
|
@Schema(
|
|
|
|
|
description = "Merge the split documents into a single PDF",
|
|
|
|
|
defaultValue = "true",
|
|
|
|
|
requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
|
|
private Boolean merge;
|
2023-12-16 19:29:43 +00:00
|
|
|
}
|