UNPKG

@adobe/pdfservices-node-sdk

Version:

The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.

51 lines 1.96 kB
"use strict"; /* * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CreatePDFParams = void 0; const ValidationUtil_1 = require("../../../internal/util/ValidationUtil"); /** * Marker base class for {@link CreatePDFJob} params. * The factory methods within this class can be used to create instances of params classes corresponding to the source * media type. */ class CreatePDFParams { /** * Constructs a new `CreatePDFParams` instance. * * @param params The parameters for constructing an instance of `CreatePDFParams`. * @param [params.documentLanguage] Specifies the default language for the input non-PDF document. * In absence of font info within file’s content, an appropriate font is chosen on its basis. * @param [params.createTaggedPDF] Whether to create a tagged PDF. The default value is `false`. * For internal use only. */ constructor(params) { ValidationUtil_1.ValidationUtil.validateCreatePDFParams(params); this._documentLanguage = params.documentLanguage; this._createTaggedPDF = params.createTaggedPDF; } /** * Returns the language of the input document. * * @returns the language of the input document */ get documentLanguage() { return this._documentLanguage; } /** * @internal Used internally by this SDK, not intended to be called by clients. */ get createTaggedPDF() { return this._createTaggedPDF; } } exports.CreatePDFParams = CreatePDFParams; //# sourceMappingURL=CreatePDFParams.js.map