UNPKG

@compdfkit_pdf_sdk/react_native

Version:

ComPDFKit for React Native is a comprehensive SDK that allows you to quickly add PDF functionality to Android, iOS, and React Native applications.

56 lines (53 loc) 2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RadioButtonAttr = exports.ListBoxAttr = exports.ComboBoxAttr = exports.CheckBoxAttr = exports.CPDFConfiguration = void 0; /** * Copyright © 2014-2025 PDF Technologies, Inc. All Rights Reserved. * * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT. * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. * This notice may not be removed from this file. */ /** * Configuration information for displaying PDF using the ComPDFKit.openDocument method. * Used to configure UI elements, PDF properties, etc. * * @example * const configuration : CPDFConfiguration = { * modeConfig: { * initialViewMode: CPDFModeConfig.ViewMode.VIEWER, * availableViewModes: [ * CPDFModeConfig.ViewMode.VIEWER, * CPDFModeConfig.ViewMode.ANNOTATIONS, * CPDFModeConfig.ViewMode.CONTENT_EDITOR, * CPDFModeConfig.ViewMode.FORMS, * CPDFModeConfig.ViewMode.SIGNATURES * ] * } * } * * ComPDFKit.openDocument(document, 'password', JSON.stringify(configuration)) */ class CPDFConfiguration {} exports.CPDFConfiguration = CPDFConfiguration; ; /** * @param { HexColor } [fillColor] HEX color: #1460F3 * @param { HexColor } [borderColor] HEX color: #1460F3 * @param { BorderWidth } [borderWidth] border thickness, value range:0~10 * @param { HexColor } [checkedColor] * @param { boolean } [isChecked] * @param { CPDFCheckStyle } [checkedStyle] */ class CheckBoxAttr {} exports.CheckBoxAttr = CheckBoxAttr; class RadioButtonAttr extends CheckBoxAttr {} exports.RadioButtonAttr = RadioButtonAttr; class ListBoxAttr {} exports.ListBoxAttr = ListBoxAttr; class ComboBoxAttr extends ListBoxAttr {} exports.ComboBoxAttr = ComboBoxAttr; //# sourceMappingURL=CPDFConfiguration.js.map