mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-11-16 01:21:16 +01:00
feat(api): add rows, columns, and direction fields to page layout request model
This commit is contained in:
parent
5fceacb808
commit
66787bcc08
@ -15,10 +15,33 @@ public class MergeMultiplePagesRequest extends PDFFile {
|
|||||||
description = "The number of pages to fit onto a single sheet in the output PDF.",
|
description = "The number of pages to fit onto a single sheet in the output PDF.",
|
||||||
type = "number",
|
type = "number",
|
||||||
defaultValue = "2",
|
defaultValue = "2",
|
||||||
requiredMode = Schema.RequiredMode.REQUIRED,
|
|
||||||
allowableValues = {"2", "3", "4", "9", "16"})
|
allowableValues = {"2", "3", "4", "9", "16"})
|
||||||
private int pagesPerSheet;
|
private int pagesPerSheet;
|
||||||
|
|
||||||
|
@Schema(
|
||||||
|
description = "The layout direction of content on the page",
|
||||||
|
type = "string",
|
||||||
|
defaultValue = "TOP_DOWN_LEFT_RIGHT",
|
||||||
|
allowableValues = {
|
||||||
|
"TOP_DOWN_LEFT_RIGHT",
|
||||||
|
"TOP_DOWN_RIGHT_LEFT",
|
||||||
|
"BOTTOM_UP_LEFT_RIGHT",
|
||||||
|
"BOTTOM_UP_RIGHT_LEFT"
|
||||||
|
})
|
||||||
|
private String direction;
|
||||||
|
|
||||||
|
@Schema(
|
||||||
|
description = "Number of rows in the page layout",
|
||||||
|
type = "integer",
|
||||||
|
example = "3")
|
||||||
|
private Integer rows;
|
||||||
|
|
||||||
|
@Schema(
|
||||||
|
description = "Number of columns in the page layout",
|
||||||
|
type = "integer",
|
||||||
|
example = "2")
|
||||||
|
private Integer columns;
|
||||||
|
|
||||||
@Schema(
|
@Schema(
|
||||||
description = "The orientation of the output PDF pages",
|
description = "The orientation of the output PDF pages",
|
||||||
type = "string",
|
type = "string",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user