Class OperationMergeFileData


  • public class OperationMergeFileData
    extends Object
    Contains the BASE64 encoded file that should be inserted or appended. The \"format\" attribute is used to define whether the file is a single PDF document, a ZIP file containing multiple PDF documents or a list of documents references by ID. If a ZIP archive is passed as the source document of the web service request, this parameter can be omitted. The parameter \"sourceIsZip\" must be set to \"true\" in that case.
    • Constructor Detail

      • OperationMergeFileData

        public OperationMergeFileData()
    • Method Detail

      • getFormat

        @Nullable
        public @Nullable OperationMergeFileData.FormatEnum getFormat()
        Specifies the format how to pass the documents to be used for merging. * pdf = A single PDF file * zip = It is a ZIP file that contains one or more PDF documents. * id = It is a semicolon separated list of document ID's referencing documents already on the server (REST API only). **Important:** The \"id\" parameter can be used only with REST API. Each document that has been uploaded to the server via REST API has a unique ID. This ID can be used to reference the document. In the content of the \"data\" element, the list is passed as BASE64 content. Example for two documents: * List of documents: 3bde686a47284a2da3bfce62bd6bb8bd;f5c2b314d0c74fd0878d1f4ca310b0ad * BASE64 encoded: M2JkZTY4NmE0NzI4NGEyZGEzYmZjZTYyYmQ2YmI4YmQ7ZjVjMmIzMTRkMGM3NGZkMDg3OGQxZjRjYTMxMGIwYWQ=
        Returns:
        format
      • getOutlineName

        @Nullable
        public @Nullable String getOutlineName()
        Used to define the base path that should be used for outline nodes of the appended document. This parameter can contain a slash separated path and should ideally end with the name of the document (\"A/B/filename\"). If this parameter is not set, all outlines will be appended to the root outline node.
        Returns:
        outlineName
      • setOutlineName

        public void setOutlineName​(String outlineName)
      • getSource

        @Nullable
        public @Nullable OperationMergeFileData.SourceEnum getSource()
        Selects the data source for the hereby expressed resource. Possible values are: * value = The element's value shall contain the BASE64 encoded data. * uri = The data shall be located at the given uri.
        Returns:
        source
      • getUri

        @Nullable
        public @Nullable String getUri()
        The uri the data shall be located at. (This shall only have effect, if the \"source\" is \"uri\".)
        Returns:
        uri
      • setUri

        public void setUri​(String uri)
      • getValue

        @Nullable
        public @org.jetbrains.annotations.Nullable byte[] getValue()
        Get value
        Returns:
        value
      • setValue

        public void setValue​(byte[] value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object