UNPKG

@adobe/pdfservices-node-sdk

Version:

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

50 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.ExportPDFParams = void 0; const ValidationUtil_1 = require("../../../internal/util/ValidationUtil"); /** * Parameters for exporting a source PDF file to a supported format using {@link ExportPDFJob}. */ class ExportPDFParams { /** * Constructs a new `ExportPDFParams` instance. * * @param params - The parameters for constructing an instance of `ExportPDFParams`. * @param params.targetFormat The target format to which the source PDF file will be exported. Cannot be undefined. * @param [params.ocrLocale] The OCR language to be used for exporting the source PDF file. * Default value is {@link ExportOCRLocale#EN_US EN_US}. */ constructor(params) { ValidationUtil_1.ValidationUtil.validateExportPDFParams(params); this._exportPDFTargetFormat = params.targetFormat; this._exportOcrLocale = params.ocrLocale; } /** * Returns the target format to which the source PDF file will be exported. * * @returns The target format to which the source PDF file will be exported. */ get exportPDFTargetFormat() { return this._exportPDFTargetFormat; } /** * Returns the OCR language to be used for exporting the source PDF file. * * @returns The OCR language to be used for exporting the source PDF file. */ get exportOcrLocale() { return this._exportOcrLocale; } } exports.ExportPDFParams = ExportPDFParams; //# sourceMappingURL=ExportPDFParams.js.map