All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.pdfservices.operation.pdfjobs.params.createpdf.ppt.CreatePDFFromPPTParams Maven / Gradle / Ivy

Go to download

Adobe PDF Services SDK allows you to access RESTful APIs to create, convert, and manipulate PDFs within your applications. Older versions can be found under groupId: com.adobe.documentservices, artifactId: pdftools-sdk

There is a newer version: 4.2.0
Show newest version
/*
 * Copyright 2024 Adobe
 * All Rights Reserved.
 *
 * NOTICE: Adobe permits you to use, modify, and distribute this file in
 * accordance with the terms of the Adobe license agreement accompanying
 * it. If you have received this file from a source other than Adobe,
 * then your use, modification, or distribution of it requires the prior
 * written permission of Adobe.
 */

package com.adobe.pdfservices.operation.pdfjobs.params.createpdf.ppt;


import com.adobe.pdfservices.operation.internal.constants.CustomErrorMessages;
import com.adobe.pdfservices.operation.internal.util.ObjectUtil;
import com.adobe.pdfservices.operation.pdfjobs.params.createpdf.CreatePDFParams;

public class CreatePDFFromPPTParams extends CreatePDFParams {

    private DocumentLanguage documentLanguage;
    private Boolean createTaggedPDF;

    private CreatePDFFromPPTParams(DocumentLanguage documentLanguage, boolean createTaggedPDF) {
        this.documentLanguage = documentLanguage;
        this.createTaggedPDF = createTaggedPDF;
    }

    public DocumentLanguage getDocumentLanguage() {
        return documentLanguage;
    }

    public Boolean getCreateTaggedPDF() {
        return createTaggedPDF;
    }

    public static class Builder {
        private DocumentLanguage documentLanguage;
        private Boolean createTaggedPDF;

        /**
         * Constructs a {@code CreatePDFFromPPTParams.Builder} instance.
         */
        public Builder() {
        }

        /**
         * Sets office preferred editing language to be used for conversion, specified by {@link DocumentLanguage}.
         *
         * @param supportedDocumentLanguage see {@link DocumentLanguage}; can not be null. Default value is
         * {@link DocumentLanguage#EN_US}
         * @return this Builder instance to add any additional parameters
         */
        public Builder withDocumentLanguage(DocumentLanguage supportedDocumentLanguage) {
            ObjectUtil.requireNonNull(supportedDocumentLanguage,
                                      String.format(CustomErrorMessages.GENERIC_CAN_NOT_BE_NULL, "Document Language"));
            this.documentLanguage = supportedDocumentLanguage;
            return this;
        }

        public Builder withCreateTaggedPdf(Boolean createTaggedPDF) {
            ObjectUtil.requireNonNull(createTaggedPDF, String.format(CustomErrorMessages.GENERIC_CAN_NOT_BE_NULL,
                                                                     "Create Tagged PDF"));
            this.createTaggedPDF = createTaggedPDF;
            return this;
        }

        /**
         * Returns a new {@link CreatePDFFromPPTParams} instance built from the current state of this builder.
         *
         * @return a new {@code CreatePDFFromPPTParams} instance
         */
        public CreatePDFFromPPTParams build() {
            return new CreatePDFFromPPTParams(documentLanguage, createTaggedPDF);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy