Package net.webpdf.wsclient.openapi
Class OperationConverter
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationConverter
-
public class OperationConverter extends Object
Performs the conversion of a document.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCESS_PASSWORDstatic StringJSON_PROPERTY_COMPRESSIONstatic StringJSON_PROPERTY_DPIstatic StringJSON_PROPERTY_EMBED_FONTSstatic StringJSON_PROPERTY_FILE_EXTENSIONstatic StringJSON_PROPERTY_HTMLstatic StringJSON_PROPERTY_IMAGEstatic StringJSON_PROPERTY_JPEG_QUALITYstatic StringJSON_PROPERTY_MAILstatic StringJSON_PROPERTY_MAX_RECURSIONstatic StringJSON_PROPERTY_OFFICE_BRIDGEstatic StringJSON_PROPERTY_PAGEstatic StringJSON_PROPERTY_PAGESstatic StringJSON_PROPERTY_PDFAstatic StringJSON_PROPERTY_REDUCE_RESOLUTIONstatic StringJSON_PROPERTY_REPORTstatic StringJSON_PROPERTY_SHARE_POINT_BRIDGEstatic StringJSON_PROPERTY_SIGNATUREstatic StringJSON_PROPERTY_TEMPLATEstatic StringJSON_PROPERTY_TEXTstatic StringJSON_PROPERTY_TRANSFORM
-
Constructor Summary
Constructors Constructor Description OperationConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationConverteraccessPassword(String accessPassword)OperationConvertercompression(Boolean compression)OperationConverterdpi(Integer dpi)OperationConverterembedFonts(Boolean embedFonts)booleanequals(Object o)OperationConverterfileExtension(String fileExtension)@Nullable StringgetAccessPassword()This parameter can be used to declare a password that will be used to open the source document if it is protected.@Nullable BooleangetCompression()If \"true,\" the data objects in the PDF document will be compressed (ZLib compression), reducing the size of the document.@Nullable IntegergetDpi()Used to set the DPI solution (pixels per inch) for images.@Nullable BooleangetEmbedFonts()If \"true,\" fonts will be embedded in the PDF document that is created.@Nullable StringgetFileExtension()If you use this attribute to enter an extension for the file (e.g., \"doc\") that is currently being processed, automatic file format detection will be disabled.@Nullable OperationConverterHtmlgetHtml()Get html@Nullable OperationConverterImagegetImage()Get image@Nullable IntegergetJpegQuality()Used to set the quality (as a percentage) of JPEG images in the PDF document.@Nullable OperationConverterMailgetMail()Get mail@Nullable IntegergetMaxRecursion()Sets the maximum recursions, that may occur when converting a document's attachments.@Nullable ObjectgetOfficeBridge()Used to specify whether \"Office Bridge\" should be used when converting Word, Excel, and PowerPoint documents.@Nullable OperationConverterPagegetPage()Get page@Nullable StringgetPages()A text that defines the page range for the export.@Nullable OperationPdfagetPdfa()Get pdfa@Nullable BooleangetReduceResolution()If \"true,\" then the DPI resolution of graphics is reduced.@Nullable OperationConverterReportgetReport()Get report@Nullable ObjectgetSharePointBridge()Used to specify whether \"SharePoint Bridge\" should be used when converting a Word document.@Nullable OperationSignaturegetSignature()Get signature@Nullable OperationConverterTemplategetTemplate()Get template@Nullable OperationConverterTextgetText()Get text@Nullable OperationConverterTransformgetTransform()Get transforminthashCode()OperationConverterhtml(OperationConverterHtml html)OperationConverterimage(OperationConverterImage image)OperationConverterjpegQuality(Integer jpegQuality)OperationConvertermail(OperationConverterMail mail)OperationConvertermaxRecursion(Integer maxRecursion)OperationConverterofficeBridge(Object officeBridge)OperationConverterpage(OperationConverterPage page)OperationConverterpages(String pages)OperationConverterpdfa(OperationPdfa pdfa)OperationConverterreduceResolution(Boolean reduceResolution)OperationConverterreport(OperationConverterReport report)voidsetAccessPassword(String accessPassword)voidsetCompression(Boolean compression)voidsetDpi(Integer dpi)voidsetEmbedFonts(Boolean embedFonts)voidsetFileExtension(String fileExtension)voidsetHtml(OperationConverterHtml html)voidsetImage(OperationConverterImage image)voidsetJpegQuality(Integer jpegQuality)voidsetMail(OperationConverterMail mail)voidsetMaxRecursion(Integer maxRecursion)voidsetOfficeBridge(Object officeBridge)voidsetPage(OperationConverterPage page)voidsetPages(String pages)voidsetPdfa(OperationPdfa pdfa)voidsetReduceResolution(Boolean reduceResolution)voidsetReport(OperationConverterReport report)voidsetSharePointBridge(Object sharePointBridge)voidsetSignature(OperationSignature signature)voidsetTemplate(OperationConverterTemplate template)voidsetText(OperationConverterText text)voidsetTransform(OperationConverterTransform transform)OperationConvertersharePointBridge(Object sharePointBridge)OperationConvertersignature(OperationSignature signature)OperationConvertertemplate(OperationConverterTemplate template)OperationConvertertext(OperationConverterText text)StringtoString()OperationConvertertransform(OperationConverterTransform transform)
-
-
-
Field Detail
-
JSON_PROPERTY_ACCESS_PASSWORD
public static final String JSON_PROPERTY_ACCESS_PASSWORD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPRESSION
public static final String JSON_PROPERTY_COMPRESSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DPI
public static final String JSON_PROPERTY_DPI
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EMBED_FONTS
public static final String JSON_PROPERTY_EMBED_FONTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILE_EXTENSION
public static final String JSON_PROPERTY_FILE_EXTENSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HTML
public static final String JSON_PROPERTY_HTML
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IMAGE
public static final String JSON_PROPERTY_IMAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_JPEG_QUALITY
public static final String JSON_PROPERTY_JPEG_QUALITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAIL
public static final String JSON_PROPERTY_MAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAX_RECURSION
public static final String JSON_PROPERTY_MAX_RECURSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OFFICE_BRIDGE
public static final String JSON_PROPERTY_OFFICE_BRIDGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGE
public static final String JSON_PROPERTY_PAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGES
public static final String JSON_PROPERTY_PAGES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PDFA
public static final String JSON_PROPERTY_PDFA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REDUCE_RESOLUTION
public static final String JSON_PROPERTY_REDUCE_RESOLUTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REPORT
public static final String JSON_PROPERTY_REPORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHARE_POINT_BRIDGE
public static final String JSON_PROPERTY_SHARE_POINT_BRIDGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIGNATURE
public static final String JSON_PROPERTY_SIGNATURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TEMPLATE
public static final String JSON_PROPERTY_TEMPLATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TEXT
public static final String JSON_PROPERTY_TEXT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSFORM
public static final String JSON_PROPERTY_TRANSFORM
- See Also:
- Constant Field Values
-
-
Method Detail
-
accessPassword
public OperationConverter accessPassword(String accessPassword)
-
getAccessPassword
@Nullable public @Nullable String getAccessPassword()
This parameter can be used to declare a password that will be used to open the source document if it is protected. **Important:** This option is currently only supported for Microsoft Office 97-2003 binary documents and Microsoft Office 2007 documents. Only the default password methods are supported. Encryption based on digital certificates is not supported.- Returns:
- accessPassword
-
setAccessPassword
public void setAccessPassword(String accessPassword)
-
compression
public OperationConverter compression(Boolean compression)
-
getCompression
@Nullable public @Nullable Boolean getCompression()
If \"true,\" the data objects in the PDF document will be compressed (ZLib compression), reducing the size of the document.- Returns:
- compression
-
setCompression
public void setCompression(Boolean compression)
-
dpi
public OperationConverter dpi(Integer dpi)
-
getDpi
@Nullable public @Nullable Integer getDpi()
Used to set the DPI solution (pixels per inch) for images. minimum: 0 maximum: 9600- Returns:
- dpi
-
setDpi
public void setDpi(Integer dpi)
-
embedFonts
public OperationConverter embedFonts(Boolean embedFonts)
-
getEmbedFonts
@Nullable public @Nullable Boolean getEmbedFonts()
If \"true,\" fonts will be embedded in the PDF document that is created. **Important:**: If the original fonts are not available on the conversion system, substitute fonts may be embedded instead. **Important:**: If, after the conversion, you want to convert the PDF document to PDF/A, you should not embed any of the fonts, but should instead let the \"Pdfa\" web service do this.- Returns:
- embedFonts
-
setEmbedFonts
public void setEmbedFonts(Boolean embedFonts)
-
fileExtension
public OperationConverter fileExtension(String fileExtension)
-
getFileExtension
@Nullable public @Nullable String getFileExtension()
If you use this attribute to enter an extension for the file (e.g., \"doc\") that is currently being processed, automatic file format detection will be disabled. Normally, webPDF does not detect file formats based on the corresponding file extension, but on the file contents instead. Accordingly, webPDF will analyze the file and assign the file the appropriate \"mime-type\" so that the appropriate file converter can then be selected. **Important:**: You should only set a file extension in exceptional cases, as this will completely disable automatic detection. If, for instance, you specify an extension for which webPDF does not have a \"mime-type,\" the conversion will fail.- Returns:
- fileExtension
-
setFileExtension
public void setFileExtension(String fileExtension)
-
html
public OperationConverter html(OperationConverterHtml html)
-
getHtml
@Nullable public @Nullable OperationConverterHtml getHtml()
Get html- Returns:
- html
-
setHtml
public void setHtml(OperationConverterHtml html)
-
image
public OperationConverter image(OperationConverterImage image)
-
getImage
@Nullable public @Nullable OperationConverterImage getImage()
Get image- Returns:
- image
-
setImage
public void setImage(OperationConverterImage image)
-
jpegQuality
public OperationConverter jpegQuality(Integer jpegQuality)
-
getJpegQuality
@Nullable public @Nullable Integer getJpegQuality()
Used to set the quality (as a percentage) of JPEG images in the PDF document. minimum: 0 maximum: 100- Returns:
- jpegQuality
-
setJpegQuality
public void setJpegQuality(Integer jpegQuality)
-
mail
public OperationConverter mail(OperationConverterMail mail)
-
getMail
@Nullable public @Nullable OperationConverterMail getMail()
Get mail- Returns:
-
setMail
public void setMail(OperationConverterMail mail)
-
maxRecursion
public OperationConverter maxRecursion(Integer maxRecursion)
-
getMaxRecursion
@Nullable public @Nullable Integer getMaxRecursion()
Sets the maximum recursions, that may occur when converting a document's attachments. **Important:** This parameter is intended for internal use only. Please only use this, if you really are sure you need to do so. minimum: 1- Returns:
- maxRecursion
-
setMaxRecursion
public void setMaxRecursion(Integer maxRecursion)
-
officeBridge
public OperationConverter officeBridge(Object officeBridge)
-
getOfficeBridge
@Nullable public @Nullable Object getOfficeBridge()
Used to specify whether \"Office Bridge\" should be used when converting Word, Excel, and PowerPoint documents. If this element is set (and Office Bridge is enabled), the document will be converted using the Office software installed on the server.- Returns:
- officeBridge
-
setOfficeBridge
public void setOfficeBridge(Object officeBridge)
-
page
public OperationConverter page(OperationConverterPage page)
-
getPage
@Nullable public @Nullable OperationConverterPage getPage()
Get page- Returns:
- page
-
setPage
public void setPage(OperationConverterPage page)
-
pages
public OperationConverter pages(String pages)
-
getPages
@Nullable public @Nullable String getPages()
A text that defines the page range for the export. Individual pages or a range of pages can be defined here. If the text is empty, the entire file will be exported (e.g.: \"1-10\" or \"1,2,5-10\")- Returns:
- pages
-
setPages
public void setPages(String pages)
-
pdfa
public OperationConverter pdfa(OperationPdfa pdfa)
-
getPdfa
@Nullable public @Nullable OperationPdfa getPdfa()
Get pdfa- Returns:
- pdfa
-
setPdfa
public void setPdfa(OperationPdfa pdfa)
-
reduceResolution
public OperationConverter reduceResolution(Boolean reduceResolution)
-
getReduceResolution
@Nullable public @Nullable Boolean getReduceResolution()
If \"true,\" then the DPI resolution of graphics is reduced. The reduction value is set with \"dpi.\"- Returns:
- reduceResolution
-
setReduceResolution
public void setReduceResolution(Boolean reduceResolution)
-
report
public OperationConverter report(OperationConverterReport report)
-
getReport
@Nullable public @Nullable OperationConverterReport getReport()
Get report- Returns:
- report
-
setReport
public void setReport(OperationConverterReport report)
-
sharePointBridge
public OperationConverter sharePointBridge(Object sharePointBridge)
-
getSharePointBridge
@Nullable public @Nullable Object getSharePointBridge()
Used to specify whether \"SharePoint Bridge\" should be used when converting a Word document. If the element is set, the Word document will be converted using the SharePoint service (if SharePoint Bridge is enabled).- Returns:
- sharePointBridge
-
setSharePointBridge
public void setSharePointBridge(Object sharePointBridge)
-
signature
public OperationConverter signature(OperationSignature signature)
-
getSignature
@Nullable public @Nullable OperationSignature getSignature()
Get signature- Returns:
- signature
-
setSignature
public void setSignature(OperationSignature signature)
-
template
public OperationConverter template(OperationConverterTemplate template)
-
getTemplate
@Nullable public @Nullable OperationConverterTemplate getTemplate()
Get template- Returns:
- template
-
setTemplate
public void setTemplate(OperationConverterTemplate template)
-
text
public OperationConverter text(OperationConverterText text)
-
getText
@Nullable public @Nullable OperationConverterText getText()
Get text- Returns:
- text
-
setText
public void setText(OperationConverterText text)
-
transform
public OperationConverter transform(OperationConverterTransform transform)
-
getTransform
@Nullable public @Nullable OperationConverterTransform getTransform()
Get transform- Returns:
- transform
-
setTransform
public void setTransform(OperationConverterTransform transform)
-
-