UNPKG

@adobe/pdfservices-node-sdk

Version:

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

69 lines 2.21 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.FieldLocation = void 0; const ValidationUtil_1 = require("../../../internal/util/ValidationUtil"); /** * Parameters specifying options related to seal field location coordinates required for {@link FieldOptions}. */ class FieldLocation { /** * Constructs a `FieldLocation` instance. * * @param params - The parameters for constructing an instance of `FieldLocation`. * @param params.left the left coordinate of field location * @param params.top the top coordinate of field location * @param params.right the right coordinate of field location * @param params.bottom the bottom coordinate of field location */ constructor(params) { ValidationUtil_1.ValidationUtil.validateFieldLocation(params); this._left = params.left; this._top = params.top; this._right = params.right; this._bottom = params.bottom; } /** * Returns the left coordinate in default user space units for seal field. * * @returns left coordinate value */ get left() { return this._left; } /** * Returns the top coordinate in default user space units for seal field. * * @returns top coordinate value */ get top() { return this._top; } /** * Returns the right coordinate in default user space units for seal field. * * @returns right coordinate value */ get right() { return this._right; } /** * Returns the bottom coordinate in default user space units for seal field. * * @returns bottom coordinate value */ get bottom() { return this._bottom; } } exports.FieldLocation = FieldLocation; //# sourceMappingURL=FieldLocation.js.map