This commit is contained in:
Anthony Stirling
2023-09-13 00:46:30 +01:00
parent 2c0fb33548
commit 82b641458f
23 changed files with 121 additions and 100 deletions
@@ -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;
}