Package net.webpdf.wsclient.openapi
Class OperationExtractionImages
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationExtractionImages
-
public class OperationExtractionImages extends Object
Extract the PDF document's image contents Generates a ZIP file that is returned as a result when the web service is called. This file will contain all the images contained at the page level in a freely selectable page range. **Important:** The images mode can only be used to extract raster graphics (bitmap images). The extraction vector graphics, as well as the rendering of vector graphics based on vectorial drawing paths, is not supported. **Important:** Due to licensing reasons, the images mode currently only supports the extraction of basic JPEG2000 images that conform to the part-1 core coding system definition in ISO/IEC 15444-1. **Important:** It cannot be guaranteed that an image will be exported in its original source format, as the image may have already been converted when embedded in the PDF (this depends on whether the source format was supported by the PDF standard and on the application that was used to embed the image).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationExtractionImages.FallbackFormatEnumUsed to specify the format that should be used as the fallback format if extracting an image would result in a format that is not supportedstatic classOperationExtractionImages.FileFormatEnumUsed to define the output format for the PDF document text contents being extracted
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FALLBACK_FORMATstatic StringJSON_PROPERTY_FILE_FORMATstatic StringJSON_PROPERTY_FILE_NAME_TEMPLATEstatic StringJSON_PROPERTY_FOLDER_NAME_TEMPLATEstatic StringJSON_PROPERTY_PAGES
-
Constructor Summary
Constructors Constructor Description OperationExtractionImages()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)OperationExtractionImagesfallbackFormat(OperationExtractionImages.FallbackFormatEnum fallbackFormat)OperationExtractionImagesfileFormat(OperationExtractionImages.FileFormatEnum fileFormat)OperationExtractionImagesfileNameTemplate(String fileNameTemplate)OperationExtractionImagesfolderNameTemplate(String folderNameTemplate)@Nullable OperationExtractionImages.FallbackFormatEnumgetFallbackFormat()Used to specify the format that should be used as the fallback format if extracting an image would result in a format that is not supported@Nullable OperationExtractionImages.FileFormatEnumgetFileFormat()Used to define the output format for the PDF document text contents being extracted@Nullable StringgetFileNameTemplate()Used to set the template for the image files in the returned ZIP file@Nullable StringgetFolderNameTemplate()Used to set the template for the page folders in the returned ZIP file@Nullable StringgetPages()Used to define which page(s) should be used for the image's mode.inthashCode()OperationExtractionImagespages(String pages)voidsetFallbackFormat(OperationExtractionImages.FallbackFormatEnum fallbackFormat)voidsetFileFormat(OperationExtractionImages.FileFormatEnum fileFormat)voidsetFileNameTemplate(String fileNameTemplate)voidsetFolderNameTemplate(String folderNameTemplate)voidsetPages(String pages)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_FALLBACK_FORMAT
public static final String JSON_PROPERTY_FALLBACK_FORMAT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILE_FORMAT
public static final String JSON_PROPERTY_FILE_FORMAT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILE_NAME_TEMPLATE
public static final String JSON_PROPERTY_FILE_NAME_TEMPLATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FOLDER_NAME_TEMPLATE
public static final String JSON_PROPERTY_FOLDER_NAME_TEMPLATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGES
public static final String JSON_PROPERTY_PAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
fallbackFormat
public OperationExtractionImages fallbackFormat(OperationExtractionImages.FallbackFormatEnum fallbackFormat)
-
getFallbackFormat
@Nullable public @Nullable OperationExtractionImages.FallbackFormatEnum getFallbackFormat()
Used to specify the format that should be used as the fallback format if extracting an image would result in a format that is not supported. * png = PNG file * jpeg = JPEG file- Returns:
- fallbackFormat
-
setFallbackFormat
public void setFallbackFormat(OperationExtractionImages.FallbackFormatEnum fallbackFormat)
-
fileFormat
public OperationExtractionImages fileFormat(OperationExtractionImages.FileFormatEnum fileFormat)
-
getFileFormat
@Nullable public @Nullable OperationExtractionImages.FileFormatEnum getFileFormat()
Used to define the output format for the PDF document text contents being extracted. * text = Text document * xml = XML document * json = JSON data structure- Returns:
- fileFormat
-
setFileFormat
public void setFileFormat(OperationExtractionImages.FileFormatEnum fileFormat)
-
fileNameTemplate
public OperationExtractionImages fileNameTemplate(String fileNameTemplate)
-
getFileNameTemplate
@Nullable public @Nullable String getFileNameTemplate()
Used to set the template for the image files in the returned ZIP file. \"file\\[%d\\]\", for example, would result in a \"file\\[1\\].png\" entry for a PNG image.- Returns:
- fileNameTemplate
-
setFileNameTemplate
public void setFileNameTemplate(String fileNameTemplate)
-
folderNameTemplate
public OperationExtractionImages folderNameTemplate(String folderNameTemplate)
-
getFolderNameTemplate
@Nullable public @Nullable String getFolderNameTemplate()
Used to set the template for the page folders in the returned ZIP file. \"page\\[%d\\]\", for example, would result in a folder called \"page\\[1\\]\" for page 1, etc.- Returns:
- folderNameTemplate
-
setFolderNameTemplate
public void setFolderNameTemplate(String folderNameTemplate)
-
pages
public OperationExtractionImages pages(String pages)
-
getPages
@Nullable public @Nullable String getPages()
Used to define which page(s) should be used for the image's mode. The page number can be an individual page, a page range, or a list (separated with commas) (e.g., \"1,5-6,9\"). A blank value or \"\\*\" selects all pages of the PDF document.- Returns:
- pages
-
setPages
public void setPages(String pages)
-
-