pdf-lib
Version:
Create and modify PDF files with JavaScript
21 lines (17 loc) • 572 B
text/typescript
import PDFDict from 'src/core/objects/PDFDict';
import PDFAcroChoice from 'src/core/acroform/PDFAcroChoice';
import PDFContext from 'src/core/PDFContext';
import PDFRef from 'src/core/objects/PDFRef';
class PDFAcroListBox extends PDFAcroChoice {
static fromDict = (dict: PDFDict, ref: PDFRef) =>
new PDFAcroListBox(dict, ref);
static create = (context: PDFContext) => {
const dict = context.obj({
FT: 'Ch',
Kids: [],
});
const ref = context.register(dict);
return new PDFAcroListBox(dict, ref);
};
}
export default PDFAcroListBox;