@pdfme/pdf-lib
Version:
Create and modify PDF files with JavaScript
31 lines • 1.02 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const PDFAcroChoice_1 = __importDefault(require("./PDFAcroChoice"));
const flags_1 = require("./flags");
class PDFAcroComboBox extends PDFAcroChoice_1.default {
}
Object.defineProperty(PDFAcroComboBox, "fromDict", {
enumerable: true,
configurable: true,
writable: true,
value: (dict, ref) => new PDFAcroComboBox(dict, ref)
});
Object.defineProperty(PDFAcroComboBox, "create", {
enumerable: true,
configurable: true,
writable: true,
value: (context) => {
const dict = context.obj({
FT: 'Ch',
Ff: flags_1.AcroChoiceFlags.Combo,
Kids: [],
});
const ref = context.register(dict);
return new PDFAcroComboBox(dict, ref);
}
});
exports.default = PDFAcroComboBox;
//# sourceMappingURL=PDFAcroComboBox.js.map