UNPKG

@adobe/pdfservices-node-sdk

Version:

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

49 lines 1.6 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.PageLayout = void 0; const ValidationUtil_1 = require("../../../internal/util/ValidationUtil"); /** * Class for specifying the layout of a page. */ class PageLayout { /** * Constructs a new `PageLayout` instance * * @param params The parameters for constructing an instance of `PageLayout`. * @param [params.pageHeight] The height (in inches) of the output paper size. Default value is 8.5. * @param [params.pageWidth] The width (in inches) of the output paper size. Default value is 11. */ constructor(params) { ValidationUtil_1.ValidationUtil.validatePageLayoutParams(params); this._pageHeight = params.pageHeight; this._pageWidth = params.pageWidth; } /** * Returns the page height in inches. * * @returns The page height in inches. */ get pageHeight() { return this._pageHeight; } /** * Returns the page width in inches. * * @returns The page width in inches. */ get pageWidth() { return this._pageWidth; } } exports.PageLayout = PageLayout; //# sourceMappingURL=PageLayout.js.map