mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 11:23:10 +02:00
fixes
This commit is contained in:
@@ -10,5 +10,5 @@ import stirling.software.SPDF.model.api.PDFFile;
|
||||
public class ExtractHeaderRequest extends PDFFile {
|
||||
|
||||
@Schema(description = "Flag indicating whether to use the first text as a fallback if no suitable title is found. Defaults to false.", required = false, defaultValue = "false")
|
||||
private Boolean useFirstTextAsFallback;
|
||||
private boolean useFirstTextAsFallback;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ import stirling.software.SPDF.model.api.PDFFile;
|
||||
public class MetadataRequest extends PDFFile {
|
||||
|
||||
@Schema(description = "Delete all metadata if set to true")
|
||||
private Boolean deleteAll;
|
||||
private boolean deleteAll;
|
||||
|
||||
@Schema(description = "The author of the document")
|
||||
private String author;
|
||||
|
||||
@@ -14,5 +14,5 @@ public class OptimizePdfRequest extends PDFFile {
|
||||
private Integer optimizeLevel;
|
||||
|
||||
@Schema(description = "The expected output size, e.g. '100MB', '25KB', etc.")
|
||||
private String expectedOutputSizeString;
|
||||
private String expectedOutputSize;
|
||||
}
|
||||
|
||||
@@ -12,19 +12,19 @@ import stirling.software.SPDF.model.api.PDFFile;
|
||||
public class ProcessPdfWithOcrRequest extends PDFFile {
|
||||
|
||||
@Schema(description = "List of languages to use in OCR processing")
|
||||
private List<String> selectedLanguages;
|
||||
private List<String> languages;
|
||||
|
||||
@Schema(description = "Include OCR text in a sidecar text file if set to true")
|
||||
private Boolean sidecar;
|
||||
private boolean sidecar;
|
||||
|
||||
@Schema(description = "Deskew the input file if set to true")
|
||||
private Boolean deskew;
|
||||
private boolean deskew;
|
||||
|
||||
@Schema(description = "Clean the input file if set to true")
|
||||
private Boolean clean;
|
||||
private boolean clean;
|
||||
|
||||
@Schema(description = "Clean the final output if set to true")
|
||||
private Boolean cleanFinal;
|
||||
private boolean cleanFinal;
|
||||
|
||||
@Schema(description = "Specify the OCR type, e.g., 'skip-text', 'force-ocr', or 'Normal'", allowableValues = {"skip-text", "force-ocr", "Normal"})
|
||||
private String ocrType;
|
||||
@@ -33,5 +33,5 @@ public class ProcessPdfWithOcrRequest extends PDFFile {
|
||||
private String ocrRenderType = "hocr";
|
||||
|
||||
@Schema(description = "Remove images from the output PDF if set to true")
|
||||
private Boolean removeImagesAfter;
|
||||
private boolean removeImagesAfter;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user