Package net.webpdf.wsclient.openapi
Class OperationToolboxSplitSplit
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationToolboxSplitSplit
-
public class OperationToolboxSplitSplit extends Object
The split operation element can be used to split documents. **Important:** Acroforms are correctly split, but contained XFA data are removed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationToolboxSplitSplit.ModeEnumDefines the mode used to split the PDF document
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FILE_NAME_TEMPLATEstatic StringJSON_PROPERTY_MODEstatic StringJSON_PROPERTY_PAGESstatic StringJSON_PROPERTY_SINGLE_FILE_AS_ZIPstatic StringJSON_PROPERTY_START_PAGE
-
Constructor Summary
Constructors Constructor Description OperationToolboxSplitSplit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)OperationToolboxSplitSplitfileNameTemplate(String fileNameTemplate)@Nullable StringgetFileNameTemplate()If the \"split\" operation generates a ZIP document (please refer to \"mode\"), this template can be used to define the file name of the PDF document in the ZIP document.@Nullable OperationToolboxSplitSplit.ModeEnumgetMode()Defines the mode used to split the PDF document@Nullable StringgetPages()Defines which page(s) should be used for the split operation.@Nullable BooleangetSingleFileAsZip()Only mode with \"single\", \"burst\", \"each\", or \"group\".@Nullable IntegergetStartPage()Used for \"each\" and \"group\" in the \"mode\" attribute.inthashCode()OperationToolboxSplitSplitmode(OperationToolboxSplitSplit.ModeEnum mode)OperationToolboxSplitSplitpages(String pages)voidsetFileNameTemplate(String fileNameTemplate)voidsetMode(OperationToolboxSplitSplit.ModeEnum mode)voidsetPages(String pages)voidsetSingleFileAsZip(Boolean singleFileAsZip)voidsetStartPage(Integer startPage)OperationToolboxSplitSplitsingleFileAsZip(Boolean singleFileAsZip)OperationToolboxSplitSplitstartPage(Integer startPage)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_FILE_NAME_TEMPLATE
public static final String JSON_PROPERTY_FILE_NAME_TEMPLATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MODE
public static final String JSON_PROPERTY_MODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGES
public static final String JSON_PROPERTY_PAGES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SINGLE_FILE_AS_ZIP
public static final String JSON_PROPERTY_SINGLE_FILE_AS_ZIP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_START_PAGE
public static final String JSON_PROPERTY_START_PAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
fileNameTemplate
public OperationToolboxSplitSplit fileNameTemplate(String fileNameTemplate)
-
getFileNameTemplate
@Nullable public @Nullable String getFileNameTemplate()
If the \"split\" operation generates a ZIP document (please refer to \"mode\"), this template can be used to define the file name of the PDF document in the ZIP document. The \"%d\" placeholder must be used in the template in order to define the PDF document page.- Returns:
- fileNameTemplate
-
setFileNameTemplate
public void setFileNameTemplate(String fileNameTemplate)
-
mode
public OperationToolboxSplitSplit mode(OperationToolboxSplitSplit.ModeEnum mode)
-
getMode
@Nullable public @Nullable OperationToolboxSplitSplit.ModeEnum getMode()
Defines the mode used to split the PDF document. * last = Last page - Uses \"pages\" to define the last page that will be contained in the new PDF document. * first = First page - Uses \"pages\" to define the first page that will be contained in the new PDF document. * list = List of pages - Uses \"pages\" to define a list of pages that should be extracted from the document. A single PDF document will be created on the basis of this list. * single = Selected pages - Uses the \"pages\" attribute to define a list of pages that should be extracted from the document. And creates a ZIP file with the corresponding pages. * each = Every nth page - Uses the \"pages\" attribute to define the interval at which pages should be extracted. The \"startPage\" attribute is used to define the page on which the process will start. The result will be a ZIP file. * group = Group pages - Multiple pages will be added to a single PDF document. The \"pages\" attribute can be used to define how many pages will be saved in a single PDF document. The \"startPage\" attribute is used to define the page on which the process will start. The result will be a ZIP file. * burst = Ungroup pages - A new PDF document will be generated from each page. The result will be a ZIP file.- Returns:
- mode
-
setMode
public void setMode(OperationToolboxSplitSplit.ModeEnum mode)
-
pages
public OperationToolboxSplitSplit pages(String pages)
-
getPages
@Nullable public @Nullable String getPages()
Defines which page(s) should be used for the split operation. The page number can be an individual page, a page range, or a list (separated with commas) (e.g. \"1,5-6,9\"). The \"mode\" attribute defines whether a single page or a range of pages can be used: With \"last\" and \"first,\" an individual page is specified; with \"list,\" a list of pages can be used.- Returns:
- pages
-
setPages
public void setPages(String pages)
-
singleFileAsZip
public OperationToolboxSplitSplit singleFileAsZip(Boolean singleFileAsZip)
-
getSingleFileAsZip
@Nullable public @Nullable Boolean getSingleFileAsZip()
Only mode with \"single\", \"burst\", \"each\", or \"group\". The returned pages will be generated as a ZIP file even if selection is used to select only one single file. You can change this behaviour by setting this option to \"false\". In this case, the page will not be zipped, and will instead be returned directly as is. However, this will only work if selection has been used to select one page and one page only.- Returns:
- singleFileAsZip
-
setSingleFileAsZip
public void setSingleFileAsZip(Boolean singleFileAsZip)
-
startPage
public OperationToolboxSplitSplit startPage(Integer startPage)
-
getStartPage
@Nullable public @Nullable Integer getStartPage()
Used for \"each\" and \"group\" in the \"mode\" attribute. minimum: 1- Returns:
- startPage
-
setStartPage
public void setStartPage(Integer startPage)
-
-