UNPKG

rtf-stream-parser

Version:

Stream Transform class to tokenize RTF, and another to de-encapsulate text or HTML

15 lines (14 loc) 504 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ignoreOptionalDestOutput = void 0; exports.ignoreOptionalDestOutput = { outputDataFilter: global => { if (global._state.destIgnorable) { return true; } const allDests = global._state.allDestinations; if (allDests && (allDests['fonttbl'] || allDests['colortbl'] || allDests['stylesheet'] || allDests['pntext'])) { return true; } } };