config.js 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905
  1. /**
  2. * @licstart The following is the entire license notice for the
  3. * Javascript code in this page
  4. *
  5. * Copyright 2021 Mozilla Foundation
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. * @licend The above is the entire license notice for the
  20. * Javascript code in this page
  21. */
  22. "use strict";
  23. Object.defineProperty(exports, "__esModule", {
  24. value: true
  25. });
  26. exports.ConfigNamespace = void 0;
  27. var _namespaces = require("./namespaces.js");
  28. var _xfa_object = require("./xfa_object.js");
  29. var _utils = require("./utils.js");
  30. var _util = require("../../shared/util.js");
  31. const CONFIG_NS_ID = _namespaces.NamespaceIds.config.id;
  32. class Acrobat extends _xfa_object.XFAObject {
  33. constructor(attributes) {
  34. super(CONFIG_NS_ID, "acrobat", true);
  35. this.acrobat7 = null;
  36. this.autoSave = null;
  37. this.common = null;
  38. this.validate = null;
  39. this.validateApprovalSignatures = null;
  40. this.submitUrl = new _xfa_object.XFAObjectArray();
  41. }
  42. }
  43. class Acrobat7 extends _xfa_object.XFAObject {
  44. constructor(attributes) {
  45. super(CONFIG_NS_ID, "acrobat7", true);
  46. this.dynamicRender = null;
  47. }
  48. }
  49. class ADBE_JSConsole extends _xfa_object.OptionObject {
  50. constructor(attributes) {
  51. super(CONFIG_NS_ID, "ADBE_JSConsole", ["delegate", "Enable", "Disable"]);
  52. }
  53. }
  54. class ADBE_JSDebugger extends _xfa_object.OptionObject {
  55. constructor(attributes) {
  56. super(CONFIG_NS_ID, "ADBE_JSDebugger", ["delegate", "Enable", "Disable"]);
  57. }
  58. }
  59. class AddSilentPrint extends _xfa_object.Option01 {
  60. constructor(attributes) {
  61. super(CONFIG_NS_ID, "addSilentPrint");
  62. }
  63. }
  64. class AddViewerPreferences extends _xfa_object.Option01 {
  65. constructor(attributes) {
  66. super(CONFIG_NS_ID, "addViewerPreferences");
  67. }
  68. }
  69. class AdjustData extends _xfa_object.Option10 {
  70. constructor(attributes) {
  71. super(CONFIG_NS_ID, "adjustData");
  72. }
  73. }
  74. class AdobeExtensionLevel extends _xfa_object.IntegerObject {
  75. constructor(attributes) {
  76. super(CONFIG_NS_ID, "adobeExtensionLevel", 0, n => n >= 1 && n <= 8);
  77. }
  78. }
  79. class Agent extends _xfa_object.XFAObject {
  80. constructor(attributes) {
  81. super(CONFIG_NS_ID, "agent", true);
  82. this.name = attributes.name ? attributes.name.trim() : "";
  83. this.common = new _xfa_object.XFAObjectArray();
  84. }
  85. }
  86. class AlwaysEmbed extends _xfa_object.ContentObject {
  87. constructor(attributes) {
  88. super(CONFIG_NS_ID, "alwaysEmbed");
  89. }
  90. }
  91. class Amd extends _xfa_object.StringObject {
  92. constructor(attributes) {
  93. super(CONFIG_NS_ID, "amd");
  94. }
  95. }
  96. class Area extends _xfa_object.XFAObject {
  97. constructor(attributes) {
  98. super(CONFIG_NS_ID, "area");
  99. this.level = (0, _utils.getInteger)({
  100. data: attributes.level,
  101. defaultValue: 0,
  102. validate: n => n >= 1 && n <= 3
  103. });
  104. this.name = (0, _utils.getStringOption)(attributes.name, ["", "barcode", "coreinit", "deviceDriver", "font", "general", "layout", "merge", "script", "signature", "sourceSet", "templateCache"]);
  105. }
  106. }
  107. class Attributes extends _xfa_object.OptionObject {
  108. constructor(attributes) {
  109. super(CONFIG_NS_ID, "attributes", ["preserve", "delegate", "ignore"]);
  110. }
  111. }
  112. class AutoSave extends _xfa_object.OptionObject {
  113. constructor(attributes) {
  114. super(CONFIG_NS_ID, "autoSave", ["disabled", "enabled"]);
  115. }
  116. }
  117. class Base extends _xfa_object.StringObject {
  118. constructor(attributes) {
  119. super(CONFIG_NS_ID, "base");
  120. }
  121. }
  122. class BatchOutput extends _xfa_object.XFAObject {
  123. constructor(attributes) {
  124. super(CONFIG_NS_ID, "batchOutput");
  125. this.format = (0, _utils.getStringOption)(attributes.format, ["none", "concat", "zip", "zipCompress"]);
  126. }
  127. }
  128. class BehaviorOverride extends _xfa_object.ContentObject {
  129. constructor(attributes) {
  130. super(CONFIG_NS_ID, "behaviorOverride");
  131. }
  132. [_xfa_object.$finalize]() {
  133. this[_xfa_object.$content] = new Map(this[_xfa_object.$content].trim().split(/\s+/).filter(x => !!x && x.include(":")).map(x => x.split(":", 2)));
  134. }
  135. }
  136. class Cache extends _xfa_object.XFAObject {
  137. constructor(attributes) {
  138. super(CONFIG_NS_ID, "cache", true);
  139. this.templateCache = null;
  140. }
  141. }
  142. class Change extends _xfa_object.Option01 {
  143. constructor(attributes) {
  144. super(CONFIG_NS_ID, "change");
  145. }
  146. }
  147. class Common extends _xfa_object.XFAObject {
  148. constructor(attributes) {
  149. super(CONFIG_NS_ID, "common", true);
  150. this.data = null;
  151. this.locale = null;
  152. this.localeSet = null;
  153. this.messaging = null;
  154. this.suppressBanner = null;
  155. this.template = null;
  156. this.validationMessaging = null;
  157. this.versionControl = null;
  158. this.log = new _xfa_object.XFAObjectArray();
  159. }
  160. }
  161. class Compress extends _xfa_object.XFAObject {
  162. constructor(attributes) {
  163. super(CONFIG_NS_ID, "compress");
  164. this.scope = (0, _utils.getStringOption)(attributes.scope, ["imageOnly", "document"]);
  165. }
  166. }
  167. class CompressLogicalStructure extends _xfa_object.Option01 {
  168. constructor(attributes) {
  169. super(CONFIG_NS_ID, "compressLogicalStructure");
  170. }
  171. }
  172. class CompressObjectStream extends _xfa_object.Option10 {
  173. constructor(attributes) {
  174. super(CONFIG_NS_ID, "compressObjectStream");
  175. }
  176. }
  177. class Compression extends _xfa_object.XFAObject {
  178. constructor(attributes) {
  179. super(CONFIG_NS_ID, "compression", true);
  180. this.compressLogicalStructure = null;
  181. this.compressObjectStream = null;
  182. this.level = null;
  183. this.type = null;
  184. }
  185. }
  186. class Config extends _xfa_object.XFAObject {
  187. constructor(attributes) {
  188. super(CONFIG_NS_ID, "config", true);
  189. this.acrobat = null;
  190. this.present = null;
  191. this.trace = null;
  192. this.agent = new _xfa_object.XFAObjectArray();
  193. }
  194. }
  195. class Conformance extends _xfa_object.OptionObject {
  196. constructor(attributes) {
  197. super(CONFIG_NS_ID, "conformance", ["A", "B"]);
  198. }
  199. }
  200. class ContentCopy extends _xfa_object.Option01 {
  201. constructor(attributes) {
  202. super(CONFIG_NS_ID, "contentCopy");
  203. }
  204. }
  205. class Copies extends _xfa_object.IntegerObject {
  206. constructor(attributes) {
  207. super(CONFIG_NS_ID, "copies", 1, n => n >= 1);
  208. }
  209. }
  210. class Creator extends _xfa_object.StringObject {
  211. constructor(attributes) {
  212. super(CONFIG_NS_ID, "creator");
  213. }
  214. }
  215. class CurrentPage extends _xfa_object.IntegerObject {
  216. constructor(attributes) {
  217. super(CONFIG_NS_ID, "currentPage", 0, n => n >= 0);
  218. }
  219. }
  220. class Data extends _xfa_object.XFAObject {
  221. constructor(attributes) {
  222. super(CONFIG_NS_ID, "data", true);
  223. this.adjustData = null;
  224. this.attributes = null;
  225. this.incrementalLoad = null;
  226. this.outputXSL = null;
  227. this.range = null;
  228. this.record = null;
  229. this.startNode = null;
  230. this.uri = null;
  231. this.window = null;
  232. this.xsl = null;
  233. this.excludeNS = new _xfa_object.XFAObjectArray();
  234. this.transform = new _xfa_object.XFAObjectArray();
  235. }
  236. }
  237. class Debug extends _xfa_object.XFAObject {
  238. constructor(attributes) {
  239. super(CONFIG_NS_ID, "debug", true);
  240. this.uri = null;
  241. }
  242. }
  243. class DefaultTypeface extends _xfa_object.ContentObject {
  244. constructor(attributes) {
  245. super(CONFIG_NS_ID, "defaultTypeface");
  246. this.writingScript = (0, _utils.getStringOption)(attributes.writingScript, ["*", "Arabic", "Cyrillic", "EastEuropeanRoman", "Greek", "Hebrew", "Japanese", "Korean", "Roman", "SimplifiedChinese", "Thai", "TraditionalChinese", "Vietnamese"]);
  247. }
  248. }
  249. class Destination extends _xfa_object.OptionObject {
  250. constructor(attributes) {
  251. super(CONFIG_NS_ID, "destination", ["pdf", "pcl", "ps", "webClient", "zpl"]);
  252. }
  253. }
  254. class DocumentAssembly extends _xfa_object.Option01 {
  255. constructor(attributes) {
  256. super(CONFIG_NS_ID, "documentAssembly");
  257. }
  258. }
  259. class Driver extends _xfa_object.XFAObject {
  260. constructor(attributes) {
  261. super(CONFIG_NS_ID, "driver", true);
  262. this.name = attributes.name ? attributes.name.trim() : "";
  263. this.fontInfo = null;
  264. this.xdc = null;
  265. }
  266. }
  267. class DuplexOption extends _xfa_object.OptionObject {
  268. constructor(attributes) {
  269. super(CONFIG_NS_ID, "duplexOption", ["simplex", "duplexFlipLongEdge", "duplexFlipShortEdge"]);
  270. }
  271. }
  272. class DynamicRender extends _xfa_object.OptionObject {
  273. constructor(attributes) {
  274. super(CONFIG_NS_ID, "dynamicRender", ["forbidden", "required"]);
  275. }
  276. }
  277. class Embed extends _xfa_object.Option01 {
  278. constructor(attributes) {
  279. super(CONFIG_NS_ID, "embed");
  280. }
  281. }
  282. class Encrypt extends _xfa_object.Option01 {
  283. constructor(attributes) {
  284. super(CONFIG_NS_ID, "encrypt");
  285. }
  286. }
  287. class Encryption extends _xfa_object.XFAObject {
  288. constructor(attributes) {
  289. super(CONFIG_NS_ID, "encryption", true);
  290. this.encrypt = null;
  291. this.encryptionLevel = null;
  292. this.permissions = null;
  293. }
  294. }
  295. class EncryptionLevel extends _xfa_object.OptionObject {
  296. constructor(attributes) {
  297. super(CONFIG_NS_ID, "encryptionLevel", ["40bit", "128bit"]);
  298. }
  299. }
  300. class Enforce extends _xfa_object.StringObject {
  301. constructor(attributes) {
  302. super(CONFIG_NS_ID, "enforce");
  303. }
  304. }
  305. class Equate extends _xfa_object.XFAObject {
  306. constructor(attributes) {
  307. super(CONFIG_NS_ID, "equate");
  308. this.force = (0, _utils.getInteger)({
  309. data: attributes.force,
  310. defaultValue: 1,
  311. validate: n => n === 0
  312. });
  313. this.from = attributes.from || "";
  314. this.to = attributes.to || "";
  315. }
  316. }
  317. class EquateRange extends _xfa_object.XFAObject {
  318. constructor(attributes) {
  319. super(CONFIG_NS_ID, "equateRange");
  320. this.from = attributes.from || "";
  321. this.to = attributes.to || "";
  322. this._unicodeRange = attributes.unicodeRange || "";
  323. }
  324. get unicodeRange() {
  325. const ranges = [];
  326. const unicodeRegex = /U\+([0-9a-fA-F]+)/;
  327. const unicodeRange = this._unicodeRange;
  328. for (let range of unicodeRange.split(",").map(x => x.trim()).filter(x => !!x)) {
  329. range = range.split("-", 2).map(x => {
  330. const found = x.match(unicodeRegex);
  331. if (!found) {
  332. return 0;
  333. }
  334. return parseInt(found[1], 16);
  335. });
  336. if (range.length === 1) {
  337. range.push(range[0]);
  338. }
  339. ranges.push(range);
  340. }
  341. return (0, _util.shadow)(this, "unicodeRange", ranges);
  342. }
  343. }
  344. class Exclude extends _xfa_object.ContentObject {
  345. constructor(attributes) {
  346. super(CONFIG_NS_ID, "exclude");
  347. }
  348. [_xfa_object.$finalize]() {
  349. this[_xfa_object.$content] = this[_xfa_object.$content].trim().split(/\s+/).filter(x => x && ["calculate", "close", "enter", "exit", "initialize", "ready", "validate"].includes(x));
  350. }
  351. }
  352. class ExcludeNS extends _xfa_object.StringObject {
  353. constructor(attributes) {
  354. super(CONFIG_NS_ID, "excludeNS");
  355. }
  356. }
  357. class FlipLabel extends _xfa_object.OptionObject {
  358. constructor(attributes) {
  359. super(CONFIG_NS_ID, "flipLabel", ["usePrinterSetting", "on", "off"]);
  360. }
  361. }
  362. class FontInfo extends _xfa_object.XFAObject {
  363. constructor(attributes) {
  364. super(CONFIG_NS_ID, "fontInfo", true);
  365. this.embed = null;
  366. this.map = null;
  367. this.subsetBelow = null;
  368. this.alwaysEmbed = new _xfa_object.XFAObjectArray();
  369. this.defaultTypeface = new _xfa_object.XFAObjectArray();
  370. this.neverEmbed = new _xfa_object.XFAObjectArray();
  371. }
  372. }
  373. class FormFieldFilling extends _xfa_object.Option01 {
  374. constructor(attributes) {
  375. super(CONFIG_NS_ID, "formFieldFilling");
  376. }
  377. }
  378. class GroupParent extends _xfa_object.StringObject {
  379. constructor(attributes) {
  380. super(CONFIG_NS_ID, "groupParent");
  381. }
  382. }
  383. class IfEmpty extends _xfa_object.OptionObject {
  384. constructor(attributes) {
  385. super(CONFIG_NS_ID, "ifEmpty", ["dataValue", "dataGroup", "ignore", "remove"]);
  386. }
  387. }
  388. class IncludeXDPContent extends _xfa_object.StringObject {
  389. constructor(attributes) {
  390. super(CONFIG_NS_ID, "includeXDPContent");
  391. }
  392. }
  393. class IncrementalLoad extends _xfa_object.OptionObject {
  394. constructor(attributes) {
  395. super(CONFIG_NS_ID, "incrementalLoad", ["none", "forwardOnly"]);
  396. }
  397. }
  398. class IncrementalMerge extends _xfa_object.Option01 {
  399. constructor(attributes) {
  400. super(CONFIG_NS_ID, "incrementalMerge");
  401. }
  402. }
  403. class Interactive extends _xfa_object.Option01 {
  404. constructor(attributes) {
  405. super(CONFIG_NS_ID, "interactive");
  406. }
  407. }
  408. class Jog extends _xfa_object.OptionObject {
  409. constructor(attributes) {
  410. super(CONFIG_NS_ID, "jog", ["usePrinterSetting", "none", "pageSet"]);
  411. }
  412. }
  413. class LabelPrinter extends _xfa_object.XFAObject {
  414. constructor(attributes) {
  415. super(CONFIG_NS_ID, "labelPrinter", true);
  416. this.name = (0, _utils.getStringOption)(attributes.name, ["zpl", "dpl", "ipl", "tcpl"]);
  417. this.batchOutput = null;
  418. this.flipLabel = null;
  419. this.fontInfo = null;
  420. this.xdc = null;
  421. }
  422. }
  423. class Layout extends _xfa_object.OptionObject {
  424. constructor(attributes) {
  425. super(CONFIG_NS_ID, "layout", ["paginate", "panel"]);
  426. }
  427. }
  428. class Level extends _xfa_object.IntegerObject {
  429. constructor(attributes) {
  430. super(CONFIG_NS_ID, "level", 0, n => n > 0);
  431. }
  432. }
  433. class Linearized extends _xfa_object.Option01 {
  434. constructor(attributes) {
  435. super(CONFIG_NS_ID, "linearized");
  436. }
  437. }
  438. class Locale extends _xfa_object.StringObject {
  439. constructor(attributes) {
  440. super(CONFIG_NS_ID, "locale");
  441. }
  442. }
  443. class LocaleSet extends _xfa_object.StringObject {
  444. constructor(attributes) {
  445. super(CONFIG_NS_ID, "localeSet");
  446. }
  447. }
  448. class Log extends _xfa_object.XFAObject {
  449. constructor(attributes) {
  450. super(CONFIG_NS_ID, "log", true);
  451. this.mode = null;
  452. this.threshold = null;
  453. this.to = null;
  454. this.uri = null;
  455. }
  456. }
  457. class MapElement extends _xfa_object.XFAObject {
  458. constructor(attributes) {
  459. super(CONFIG_NS_ID, "map", true);
  460. this.equate = new _xfa_object.XFAObjectArray();
  461. this.equateRange = new _xfa_object.XFAObjectArray();
  462. }
  463. }
  464. class MediumInfo extends _xfa_object.XFAObject {
  465. constructor(attributes) {
  466. super(CONFIG_NS_ID, "mediumInfo", true);
  467. this.map = null;
  468. }
  469. }
  470. class Message extends _xfa_object.XFAObject {
  471. constructor(attributes) {
  472. super(CONFIG_NS_ID, "message", true);
  473. this.msgId = null;
  474. this.severity = null;
  475. }
  476. }
  477. class Messaging extends _xfa_object.XFAObject {
  478. constructor(attributes) {
  479. super(CONFIG_NS_ID, "messaging", true);
  480. this.message = new _xfa_object.XFAObjectArray();
  481. }
  482. }
  483. class Mode extends _xfa_object.OptionObject {
  484. constructor(attributes) {
  485. super(CONFIG_NS_ID, "mode", ["append", "overwrite"]);
  486. }
  487. }
  488. class ModifyAnnots extends _xfa_object.Option01 {
  489. constructor(attributes) {
  490. super(CONFIG_NS_ID, "modifyAnnots");
  491. }
  492. }
  493. class MsgId extends _xfa_object.IntegerObject {
  494. constructor(attributes) {
  495. super(CONFIG_NS_ID, "msgId", 1, n => n >= 1);
  496. }
  497. }
  498. class NameAttr extends _xfa_object.StringObject {
  499. constructor(attributes) {
  500. super(CONFIG_NS_ID, "nameAttr");
  501. }
  502. }
  503. class NeverEmbed extends _xfa_object.ContentObject {
  504. constructor(attributes) {
  505. super(CONFIG_NS_ID, "neverEmbed");
  506. }
  507. }
  508. class NumberOfCopies extends _xfa_object.IntegerObject {
  509. constructor(attributes) {
  510. super(CONFIG_NS_ID, "numberOfCopies", null, n => n >= 2 && n <= 5);
  511. }
  512. }
  513. class OpenAction extends _xfa_object.XFAObject {
  514. constructor(attributes) {
  515. super(CONFIG_NS_ID, "openAction", true);
  516. this.destination = null;
  517. }
  518. }
  519. class Output extends _xfa_object.XFAObject {
  520. constructor(attributes) {
  521. super(CONFIG_NS_ID, "output", true);
  522. this.to = null;
  523. this.type = null;
  524. this.uri = null;
  525. }
  526. }
  527. class OutputBin extends _xfa_object.StringObject {
  528. constructor(attributes) {
  529. super(CONFIG_NS_ID, "outputBin");
  530. }
  531. }
  532. class OutputXSL extends _xfa_object.XFAObject {
  533. constructor(attributes) {
  534. super(CONFIG_NS_ID, "outputXSL", true);
  535. this.uri = null;
  536. }
  537. }
  538. class Overprint extends _xfa_object.OptionObject {
  539. constructor(attributes) {
  540. super(CONFIG_NS_ID, "overprint", ["none", "both", "draw", "field"]);
  541. }
  542. }
  543. class Packets extends _xfa_object.StringObject {
  544. constructor(attributes) {
  545. super(CONFIG_NS_ID, "packets");
  546. }
  547. [_xfa_object.$finalize]() {
  548. if (this[_xfa_object.$content] === "*") {
  549. return;
  550. }
  551. this[_xfa_object.$content] = this[_xfa_object.$content].trim().split(/\s+/).filter(x => ["config", "datasets", "template", "xfdf", "xslt"].includes(x));
  552. }
  553. }
  554. class PageOffset extends _xfa_object.XFAObject {
  555. constructor(attributes) {
  556. super(CONFIG_NS_ID, "pageOffset");
  557. this.x = (0, _utils.getInteger)({
  558. data: attributes.x,
  559. defaultValue: "useXDCSetting",
  560. validate: n => true
  561. });
  562. this.y = (0, _utils.getInteger)({
  563. data: attributes.y,
  564. defaultValue: "useXDCSetting",
  565. validate: n => true
  566. });
  567. }
  568. }
  569. class PageRange extends _xfa_object.StringObject {
  570. constructor(attributes) {
  571. super(CONFIG_NS_ID, "pageRange");
  572. }
  573. [_xfa_object.$finalize]() {
  574. const numbers = this[_xfa_object.$content].trim().split(/\s+/).map(x => parseInt(x, 10));
  575. const ranges = [];
  576. for (let i = 0, ii = numbers.length; i < ii; i += 2) {
  577. ranges.push(numbers.slice(i, i + 2));
  578. }
  579. this[_xfa_object.$content] = ranges;
  580. }
  581. }
  582. class Pagination extends _xfa_object.OptionObject {
  583. constructor(attributes) {
  584. super(CONFIG_NS_ID, "pagination", ["simplex", "duplexShortEdge", "duplexLongEdge"]);
  585. }
  586. }
  587. class PaginationOverride extends _xfa_object.OptionObject {
  588. constructor(attributes) {
  589. super(CONFIG_NS_ID, "paginationOverride", ["none", "forceDuplex", "forceDuplexLongEdge", "forceDuplexShortEdge", "forceSimplex"]);
  590. }
  591. }
  592. class Part extends _xfa_object.IntegerObject {
  593. constructor(attributes) {
  594. super(CONFIG_NS_ID, "part", 1, n => false);
  595. }
  596. }
  597. class Pcl extends _xfa_object.XFAObject {
  598. constructor(attributes) {
  599. super(CONFIG_NS_ID, "pcl", true);
  600. this.name = attributes.name || "";
  601. this.batchOutput = null;
  602. this.fontInfo = null;
  603. this.jog = null;
  604. this.mediumInfo = null;
  605. this.outputBin = null;
  606. this.pageOffset = null;
  607. this.staple = null;
  608. this.xdc = null;
  609. }
  610. }
  611. class Pdf extends _xfa_object.XFAObject {
  612. constructor(attributes) {
  613. super(CONFIG_NS_ID, "pdf", true);
  614. this.name = attributes.name || "";
  615. this.adobeExtensionLevel = null;
  616. this.batchOutput = null;
  617. this.compression = null;
  618. this.creator = null;
  619. this.encryption = null;
  620. this.fontInfo = null;
  621. this.interactive = null;
  622. this.linearized = null;
  623. this.openAction = null;
  624. this.pdfa = null;
  625. this.producer = null;
  626. this.renderPolicy = null;
  627. this.scriptModel = null;
  628. this.silentPrint = null;
  629. this.submitFormat = null;
  630. this.tagged = null;
  631. this.version = null;
  632. this.viewerPreferences = null;
  633. this.xdc = null;
  634. }
  635. }
  636. class Pdfa extends _xfa_object.XFAObject {
  637. constructor(attributes) {
  638. super(CONFIG_NS_ID, "pdfa", true);
  639. this.amd = null;
  640. this.conformance = null;
  641. this.includeXDPContent = null;
  642. this.part = null;
  643. }
  644. }
  645. class Permissions extends _xfa_object.XFAObject {
  646. constructor(attributes) {
  647. super(CONFIG_NS_ID, "permissions", true);
  648. this.accessibleContent = null;
  649. this.change = null;
  650. this.contentCopy = null;
  651. this.documentAssembly = null;
  652. this.formFieldFilling = null;
  653. this.modifyAnnots = null;
  654. this.plaintextMetadata = null;
  655. this.print = null;
  656. this.printHighQuality = null;
  657. }
  658. }
  659. class PickTrayByPDFSize extends _xfa_object.Option01 {
  660. constructor(attributes) {
  661. super(CONFIG_NS_ID, "pickTrayByPDFSize");
  662. }
  663. }
  664. class Picture extends _xfa_object.StringObject {
  665. constructor(attributes) {
  666. super(CONFIG_NS_ID, "picture");
  667. }
  668. }
  669. class PlaintextMetadata extends _xfa_object.Option01 {
  670. constructor(attributes) {
  671. super(CONFIG_NS_ID, "plaintextMetadata");
  672. }
  673. }
  674. class Presence extends _xfa_object.OptionObject {
  675. constructor(attributes) {
  676. super(CONFIG_NS_ID, "presence", ["preserve", "dissolve", "dissolveStructure", "ignore", "remove"]);
  677. }
  678. }
  679. class Present extends _xfa_object.XFAObject {
  680. constructor(attributes) {
  681. super(CONFIG_NS_ID, "present", true);
  682. this.behaviorOverride = null;
  683. this.cache = null;
  684. this.common = null;
  685. this.copies = null;
  686. this.destination = null;
  687. this.incrementalMerge = null;
  688. this.layout = null;
  689. this.output = null;
  690. this.overprint = null;
  691. this.pagination = null;
  692. this.paginationOverride = null;
  693. this.script = null;
  694. this.validate = null;
  695. this.xdp = null;
  696. this.driver = new _xfa_object.XFAObjectArray();
  697. this.labelPrinter = new _xfa_object.XFAObjectArray();
  698. this.pcl = new _xfa_object.XFAObjectArray();
  699. this.pdf = new _xfa_object.XFAObjectArray();
  700. this.ps = new _xfa_object.XFAObjectArray();
  701. this.submitUrl = new _xfa_object.XFAObjectArray();
  702. this.webClient = new _xfa_object.XFAObjectArray();
  703. this.zpl = new _xfa_object.XFAObjectArray();
  704. }
  705. }
  706. class Print extends _xfa_object.Option01 {
  707. constructor(attributes) {
  708. super(CONFIG_NS_ID, "print");
  709. }
  710. }
  711. class PrintHighQuality extends _xfa_object.Option01 {
  712. constructor(attributes) {
  713. super(CONFIG_NS_ID, "printHighQuality");
  714. }
  715. }
  716. class PrintScaling extends _xfa_object.OptionObject {
  717. constructor(attributes) {
  718. super(CONFIG_NS_ID, "printScaling", ["appdefault", "noScaling"]);
  719. }
  720. }
  721. class PrinterName extends _xfa_object.StringObject {
  722. constructor(attributes) {
  723. super(CONFIG_NS_ID, "printerName");
  724. }
  725. }
  726. class Producer extends _xfa_object.StringObject {
  727. constructor(attributes) {
  728. super(CONFIG_NS_ID, "producer");
  729. }
  730. }
  731. class Ps extends _xfa_object.XFAObject {
  732. constructor(attributes) {
  733. super(CONFIG_NS_ID, "ps", true);
  734. this.name = attributes.name || "";
  735. this.batchOutput = null;
  736. this.fontInfo = null;
  737. this.jog = null;
  738. this.mediumInfo = null;
  739. this.outputBin = null;
  740. this.staple = null;
  741. this.xdc = null;
  742. }
  743. }
  744. class Range extends _xfa_object.ContentObject {
  745. constructor(attributes) {
  746. super(CONFIG_NS_ID, "range");
  747. }
  748. [_xfa_object.$finalize]() {
  749. this[_xfa_object.$content] = this[_xfa_object.$content].trim().split(/\s*,\s*/, 2).map(range => range.split("-").map(x => parseInt(x.trim(), 10))).filter(range => range.every(x => !isNaN(x))).map(range => {
  750. if (range.length === 1) {
  751. range.push(range[0]);
  752. }
  753. return range;
  754. });
  755. }
  756. }
  757. class Record extends _xfa_object.ContentObject {
  758. constructor(attributes) {
  759. super(CONFIG_NS_ID, "record");
  760. }
  761. [_xfa_object.$finalize]() {
  762. this[_xfa_object.$content] = this[_xfa_object.$content].trim();
  763. const n = parseInt(this[_xfa_object.$content], 10);
  764. if (!isNaN(n) && n >= 0) {
  765. this[_xfa_object.$content] = n;
  766. }
  767. }
  768. }
  769. class Relevant extends _xfa_object.ContentObject {
  770. constructor(attributes) {
  771. super(CONFIG_NS_ID, "relevant");
  772. }
  773. [_xfa_object.$finalize]() {
  774. this[_xfa_object.$content] = this[_xfa_object.$content].trim().split(/\s+/);
  775. }
  776. }
  777. class Rename extends _xfa_object.ContentObject {
  778. constructor(attributes) {
  779. super(CONFIG_NS_ID, "rename");
  780. }
  781. [_xfa_object.$finalize]() {
  782. this[_xfa_object.$content] = this[_xfa_object.$content].trim();
  783. if (this[_xfa_object.$content].toLowerCase().startsWith("xml") || this[_xfa_object.$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*", "u"))) {
  784. (0, _util.warn)("XFA - Rename: invalid XFA name");
  785. }
  786. }
  787. }
  788. class RenderPolicy extends _xfa_object.OptionObject {
  789. constructor(attributes) {
  790. super(CONFIG_NS_ID, "renderPolicy", ["server", "client"]);
  791. }
  792. }
  793. class RunScripts extends _xfa_object.OptionObject {
  794. constructor(attributes) {
  795. super(CONFIG_NS_ID, "runScripts", ["both", "client", "none", "server"]);
  796. }
  797. }
  798. class Script extends _xfa_object.XFAObject {
  799. constructor(attributes) {
  800. super(CONFIG_NS_ID, "script", true);
  801. this.currentPage = null;
  802. this.exclude = null;
  803. this.runScripts = null;
  804. }
  805. }
  806. class ScriptModel extends _xfa_object.OptionObject {
  807. constructor(attributes) {
  808. super(CONFIG_NS_ID, "scriptModel", ["XFA", "none"]);
  809. }
  810. }
  811. class Severity extends _xfa_object.OptionObject {
  812. constructor(attributes) {
  813. super(CONFIG_NS_ID, "severity", ["ignore", "error", "information", "trace", "warning"]);
  814. }
  815. }
  816. class SilentPrint extends _xfa_object.XFAObject {
  817. constructor(attributes) {
  818. super(CONFIG_NS_ID, "silentPrint", true);
  819. this.addSilentPrint = null;
  820. this.printerName = null;
  821. }
  822. }
  823. class Staple extends _xfa_object.XFAObject {
  824. constructor(attributes) {
  825. super(CONFIG_NS_ID, "staple");
  826. this.mode = (0, _utils.getStringOption)(attributes.mode, ["usePrinterSetting", "on", "off"]);
  827. }
  828. }
  829. class StartNode extends _xfa_object.StringObject {
  830. constructor(attributes) {
  831. super(CONFIG_NS_ID, "startNode");
  832. }
  833. }
  834. class StartPage extends _xfa_object.IntegerObject {
  835. constructor(attributes) {
  836. super(CONFIG_NS_ID, "startPage", 0, n => true);
  837. }
  838. }
  839. class SubmitFormat extends _xfa_object.OptionObject {
  840. constructor(attributes) {
  841. super(CONFIG_NS_ID, "submitFormat", ["html", "delegate", "fdf", "xml", "pdf"]);
  842. }
  843. }
  844. class SubmitUrl extends _xfa_object.StringObject {
  845. constructor(attributes) {
  846. super(CONFIG_NS_ID, "submitUrl");
  847. }
  848. }
  849. class SubsetBelow extends _xfa_object.IntegerObject {
  850. constructor(attributes) {
  851. super(CONFIG_NS_ID, "subsetBelow", 100, n => n >= 0 && n <= 100);
  852. }
  853. }
  854. class SuppressBanner extends _xfa_object.Option01 {
  855. constructor(attributes) {
  856. super(CONFIG_NS_ID, "suppressBanner");
  857. }
  858. }
  859. class Tagged extends _xfa_object.Option01 {
  860. constructor(attributes) {
  861. super(CONFIG_NS_ID, "tagged");
  862. }
  863. }
  864. class Template extends _xfa_object.XFAObject {
  865. constructor(attributes) {
  866. super(CONFIG_NS_ID, "template", true);
  867. this.base = null;
  868. this.relevant = null;
  869. this.startPage = null;
  870. this.uri = null;
  871. this.xsl = null;
  872. }
  873. }
  874. class Threshold extends _xfa_object.OptionObject {
  875. constructor(attributes) {
  876. super(CONFIG_NS_ID, "threshold", ["trace", "error", "information", "warning"]);
  877. }
  878. }
  879. class To extends _xfa_object.OptionObject {
  880. constructor(attributes) {
  881. super(CONFIG_NS_ID, "to", ["null", "memory", "stderr", "stdout", "system", "uri"]);
  882. }
  883. }
  884. class TemplateCache extends _xfa_object.XFAObject {
  885. constructor(attributes) {
  886. super(CONFIG_NS_ID, "templateCache");
  887. this.maxEntries = (0, _utils.getInteger)({
  888. data: attributes.maxEntries,
  889. defaultValue: 5,
  890. validate: n => n >= 0
  891. });
  892. }
  893. }
  894. class Trace extends _xfa_object.XFAObject {
  895. constructor(attributes) {
  896. super(CONFIG_NS_ID, "trace", true);
  897. this.area = new _xfa_object.XFAObjectArray();
  898. }
  899. }
  900. class Transform extends _xfa_object.XFAObject {
  901. constructor(attributes) {
  902. super(CONFIG_NS_ID, "transform", true);
  903. this.groupParent = null;
  904. this.ifEmpty = null;
  905. this.nameAttr = null;
  906. this.picture = null;
  907. this.presence = null;
  908. this.rename = null;
  909. this.whitespace = null;
  910. }
  911. }
  912. class Type extends _xfa_object.OptionObject {
  913. constructor(attributes) {
  914. super(CONFIG_NS_ID, "type", ["none", "ascii85", "asciiHex", "ccittfax", "flate", "lzw", "runLength", "native", "xdp", "mergedXDP"]);
  915. }
  916. }
  917. class Uri extends _xfa_object.StringObject {
  918. constructor(attributes) {
  919. super(CONFIG_NS_ID, "uri");
  920. }
  921. }
  922. class Validate extends _xfa_object.OptionObject {
  923. constructor(attributes) {
  924. super(CONFIG_NS_ID, "validate", ["preSubmit", "prePrint", "preExecute", "preSave"]);
  925. }
  926. }
  927. class ValidateApprovalSignatures extends _xfa_object.ContentObject {
  928. constructor(attributes) {
  929. super(CONFIG_NS_ID, "validateApprovalSignatures");
  930. }
  931. [_xfa_object.$finalize]() {
  932. this[_xfa_object.$content] = this[_xfa_object.$content].trim().split(/\s+/).filter(x => ["docReady", "postSign"].includes(x));
  933. }
  934. }
  935. class ValidationMessaging extends _xfa_object.OptionObject {
  936. constructor(attributes) {
  937. super(CONFIG_NS_ID, "validationMessaging", ["allMessagesIndividually", "allMessagesTogether", "firstMessageOnly", "noMessages"]);
  938. }
  939. }
  940. class Version extends _xfa_object.OptionObject {
  941. constructor(attributes) {
  942. super(CONFIG_NS_ID, "version", ["1.7", "1.6", "1.5", "1.4", "1.3", "1.2"]);
  943. }
  944. }
  945. class VersionControl extends _xfa_object.XFAObject {
  946. constructor(attributes) {
  947. super(CONFIG_NS_ID, "VersionControl");
  948. this.outputBelow = (0, _utils.getStringOption)(attributes.outputBelow, ["warn", "error", "update"]);
  949. this.sourceAbove = (0, _utils.getStringOption)(attributes.sourceAbove, ["warn", "error"]);
  950. this.sourceBelow = (0, _utils.getStringOption)(attributes.sourceBelow, ["update", "maintain"]);
  951. }
  952. }
  953. class ViewerPreferences extends _xfa_object.XFAObject {
  954. constructor(attributes) {
  955. super(CONFIG_NS_ID, "viewerPreferences", true);
  956. this.ADBE_JSConsole = null;
  957. this.ADBE_JSDebugger = null;
  958. this.addViewerPreferences = null;
  959. this.duplexOption = null;
  960. this.enforce = null;
  961. this.numberOfCopies = null;
  962. this.pageRange = null;
  963. this.pickTrayByPDFSize = null;
  964. this.printScaling = null;
  965. }
  966. }
  967. class WebClient extends _xfa_object.XFAObject {
  968. constructor(attributes) {
  969. super(CONFIG_NS_ID, "webClient", true);
  970. this.name = attributes.name ? attributes.name.trim() : "";
  971. this.fontInfo = null;
  972. this.xdc = null;
  973. }
  974. }
  975. class Whitespace extends _xfa_object.OptionObject {
  976. constructor(attributes) {
  977. super(CONFIG_NS_ID, "whitespace", ["preserve", "ltrim", "normalize", "rtrim", "trim"]);
  978. }
  979. }
  980. class Window extends _xfa_object.ContentObject {
  981. constructor(attributes) {
  982. super(CONFIG_NS_ID, "window");
  983. }
  984. [_xfa_object.$finalize]() {
  985. const pair = this[_xfa_object.$content].trim().split(/\s*,\s*/, 2).map(x => parseInt(x, 10));
  986. if (pair.some(x => isNaN(x))) {
  987. this[_xfa_object.$content] = [0, 0];
  988. return;
  989. }
  990. if (pair.length === 1) {
  991. pair.push(pair[0]);
  992. }
  993. this[_xfa_object.$content] = pair;
  994. }
  995. }
  996. class Xdc extends _xfa_object.XFAObject {
  997. constructor(attributes) {
  998. super(CONFIG_NS_ID, "xdc", true);
  999. this.uri = new _xfa_object.XFAObjectArray();
  1000. this.xsl = new _xfa_object.XFAObjectArray();
  1001. }
  1002. }
  1003. class Xdp extends _xfa_object.XFAObject {
  1004. constructor(attributes) {
  1005. super(CONFIG_NS_ID, "xdp", true);
  1006. this.packets = null;
  1007. }
  1008. }
  1009. class Xsl extends _xfa_object.XFAObject {
  1010. constructor(attributes) {
  1011. super(CONFIG_NS_ID, "xsl", true);
  1012. this.debug = null;
  1013. this.uri = null;
  1014. }
  1015. }
  1016. class Zpl extends _xfa_object.XFAObject {
  1017. constructor(attributes) {
  1018. super(CONFIG_NS_ID, "zpl", true);
  1019. this.name = attributes.name ? attributes.name.trim() : "";
  1020. this.batchOutput = null;
  1021. this.flipLabel = null;
  1022. this.fontInfo = null;
  1023. this.xdc = null;
  1024. }
  1025. }
  1026. class ConfigNamespace {
  1027. static [_namespaces.$buildXFAObject](name, attributes) {
  1028. if (ConfigNamespace.hasOwnProperty(name)) {
  1029. return ConfigNamespace[name](attributes);
  1030. }
  1031. return undefined;
  1032. }
  1033. static acrobat(attrs) {
  1034. return new Acrobat(attrs);
  1035. }
  1036. static acrobat7(attrs) {
  1037. return new Acrobat7(attrs);
  1038. }
  1039. static ADBE_JSConsole(attrs) {
  1040. return new ADBE_JSConsole(attrs);
  1041. }
  1042. static ADBE_JSDebugger(attrs) {
  1043. return new ADBE_JSDebugger(attrs);
  1044. }
  1045. static addSilentPrint(attrs) {
  1046. return new AddSilentPrint(attrs);
  1047. }
  1048. static addViewerPreferences(attrs) {
  1049. return new AddViewerPreferences(attrs);
  1050. }
  1051. static adjustData(attrs) {
  1052. return new AdjustData(attrs);
  1053. }
  1054. static adobeExtensionLevel(attrs) {
  1055. return new AdobeExtensionLevel(attrs);
  1056. }
  1057. static agent(attrs) {
  1058. return new Agent(attrs);
  1059. }
  1060. static alwaysEmbed(attrs) {
  1061. return new AlwaysEmbed(attrs);
  1062. }
  1063. static amd(attrs) {
  1064. return new Amd(attrs);
  1065. }
  1066. static area(attrs) {
  1067. return new Area(attrs);
  1068. }
  1069. static attributes(attrs) {
  1070. return new Attributes(attrs);
  1071. }
  1072. static autoSave(attrs) {
  1073. return new AutoSave(attrs);
  1074. }
  1075. static base(attrs) {
  1076. return new Base(attrs);
  1077. }
  1078. static batchOutput(attrs) {
  1079. return new BatchOutput(attrs);
  1080. }
  1081. static behaviorOverride(attrs) {
  1082. return new BehaviorOverride(attrs);
  1083. }
  1084. static cache(attrs) {
  1085. return new Cache(attrs);
  1086. }
  1087. static change(attrs) {
  1088. return new Change(attrs);
  1089. }
  1090. static common(attrs) {
  1091. return new Common(attrs);
  1092. }
  1093. static compress(attrs) {
  1094. return new Compress(attrs);
  1095. }
  1096. static compressLogicalStructure(attrs) {
  1097. return new CompressLogicalStructure(attrs);
  1098. }
  1099. static compressObjectStream(attrs) {
  1100. return new CompressObjectStream(attrs);
  1101. }
  1102. static compression(attrs) {
  1103. return new Compression(attrs);
  1104. }
  1105. static config(attrs) {
  1106. return new Config(attrs);
  1107. }
  1108. static conformance(attrs) {
  1109. return new Conformance(attrs);
  1110. }
  1111. static contentCopy(attrs) {
  1112. return new ContentCopy(attrs);
  1113. }
  1114. static copies(attrs) {
  1115. return new Copies(attrs);
  1116. }
  1117. static creator(attrs) {
  1118. return new Creator(attrs);
  1119. }
  1120. static currentPage(attrs) {
  1121. return new CurrentPage(attrs);
  1122. }
  1123. static data(attrs) {
  1124. return new Data(attrs);
  1125. }
  1126. static debug(attrs) {
  1127. return new Debug(attrs);
  1128. }
  1129. static defaultTypeface(attrs) {
  1130. return new DefaultTypeface(attrs);
  1131. }
  1132. static destination(attrs) {
  1133. return new Destination(attrs);
  1134. }
  1135. static documentAssembly(attrs) {
  1136. return new DocumentAssembly(attrs);
  1137. }
  1138. static driver(attrs) {
  1139. return new Driver(attrs);
  1140. }
  1141. static duplexOption(attrs) {
  1142. return new DuplexOption(attrs);
  1143. }
  1144. static dynamicRender(attrs) {
  1145. return new DynamicRender(attrs);
  1146. }
  1147. static embed(attrs) {
  1148. return new Embed(attrs);
  1149. }
  1150. static encrypt(attrs) {
  1151. return new Encrypt(attrs);
  1152. }
  1153. static encryption(attrs) {
  1154. return new Encryption(attrs);
  1155. }
  1156. static encryptionLevel(attrs) {
  1157. return new EncryptionLevel(attrs);
  1158. }
  1159. static enforce(attrs) {
  1160. return new Enforce(attrs);
  1161. }
  1162. static equate(attrs) {
  1163. return new Equate(attrs);
  1164. }
  1165. static equateRange(attrs) {
  1166. return new EquateRange(attrs);
  1167. }
  1168. static exclude(attrs) {
  1169. return new Exclude(attrs);
  1170. }
  1171. static excludeNS(attrs) {
  1172. return new ExcludeNS(attrs);
  1173. }
  1174. static flipLabel(attrs) {
  1175. return new FlipLabel(attrs);
  1176. }
  1177. static fontInfo(attrs) {
  1178. return new FontInfo(attrs);
  1179. }
  1180. static formFieldFilling(attrs) {
  1181. return new FormFieldFilling(attrs);
  1182. }
  1183. static groupParent(attrs) {
  1184. return new GroupParent(attrs);
  1185. }
  1186. static ifEmpty(attrs) {
  1187. return new IfEmpty(attrs);
  1188. }
  1189. static includeXDPContent(attrs) {
  1190. return new IncludeXDPContent(attrs);
  1191. }
  1192. static incrementalLoad(attrs) {
  1193. return new IncrementalLoad(attrs);
  1194. }
  1195. static incrementalMerge(attrs) {
  1196. return new IncrementalMerge(attrs);
  1197. }
  1198. static interactive(attrs) {
  1199. return new Interactive(attrs);
  1200. }
  1201. static jog(attrs) {
  1202. return new Jog(attrs);
  1203. }
  1204. static labelPrinter(attrs) {
  1205. return new LabelPrinter(attrs);
  1206. }
  1207. static layout(attrs) {
  1208. return new Layout(attrs);
  1209. }
  1210. static level(attrs) {
  1211. return new Level(attrs);
  1212. }
  1213. static linearized(attrs) {
  1214. return new Linearized(attrs);
  1215. }
  1216. static locale(attrs) {
  1217. return new Locale(attrs);
  1218. }
  1219. static localeSet(attrs) {
  1220. return new LocaleSet(attrs);
  1221. }
  1222. static log(attrs) {
  1223. return new Log(attrs);
  1224. }
  1225. static map(attrs) {
  1226. return new MapElement(attrs);
  1227. }
  1228. static mediumInfo(attrs) {
  1229. return new MediumInfo(attrs);
  1230. }
  1231. static message(attrs) {
  1232. return new Message(attrs);
  1233. }
  1234. static messaging(attrs) {
  1235. return new Messaging(attrs);
  1236. }
  1237. static mode(attrs) {
  1238. return new Mode(attrs);
  1239. }
  1240. static modifyAnnots(attrs) {
  1241. return new ModifyAnnots(attrs);
  1242. }
  1243. static msgId(attrs) {
  1244. return new MsgId(attrs);
  1245. }
  1246. static nameAttr(attrs) {
  1247. return new NameAttr(attrs);
  1248. }
  1249. static neverEmbed(attrs) {
  1250. return new NeverEmbed(attrs);
  1251. }
  1252. static numberOfCopies(attrs) {
  1253. return new NumberOfCopies(attrs);
  1254. }
  1255. static openAction(attrs) {
  1256. return new OpenAction(attrs);
  1257. }
  1258. static output(attrs) {
  1259. return new Output(attrs);
  1260. }
  1261. static outputBin(attrs) {
  1262. return new OutputBin(attrs);
  1263. }
  1264. static outputXSL(attrs) {
  1265. return new OutputXSL(attrs);
  1266. }
  1267. static overprint(attrs) {
  1268. return new Overprint(attrs);
  1269. }
  1270. static packets(attrs) {
  1271. return new Packets(attrs);
  1272. }
  1273. static pageOffset(attrs) {
  1274. return new PageOffset(attrs);
  1275. }
  1276. static pageRange(attrs) {
  1277. return new PageRange(attrs);
  1278. }
  1279. static pagination(attrs) {
  1280. return new Pagination(attrs);
  1281. }
  1282. static paginationOverride(attrs) {
  1283. return new PaginationOverride(attrs);
  1284. }
  1285. static part(attrs) {
  1286. return new Part(attrs);
  1287. }
  1288. static pcl(attrs) {
  1289. return new Pcl(attrs);
  1290. }
  1291. static pdf(attrs) {
  1292. return new Pdf(attrs);
  1293. }
  1294. static pdfa(attrs) {
  1295. return new Pdfa(attrs);
  1296. }
  1297. static permissions(attrs) {
  1298. return new Permissions(attrs);
  1299. }
  1300. static pickTrayByPDFSize(attrs) {
  1301. return new PickTrayByPDFSize(attrs);
  1302. }
  1303. static picture(attrs) {
  1304. return new Picture(attrs);
  1305. }
  1306. static plaintextMetadata(attrs) {
  1307. return new PlaintextMetadata(attrs);
  1308. }
  1309. static presence(attrs) {
  1310. return new Presence(attrs);
  1311. }
  1312. static present(attrs) {
  1313. return new Present(attrs);
  1314. }
  1315. static print(attrs) {
  1316. return new Print(attrs);
  1317. }
  1318. static printHighQuality(attrs) {
  1319. return new PrintHighQuality(attrs);
  1320. }
  1321. static printScaling(attrs) {
  1322. return new PrintScaling(attrs);
  1323. }
  1324. static printerName(attrs) {
  1325. return new PrinterName(attrs);
  1326. }
  1327. static producer(attrs) {
  1328. return new Producer(attrs);
  1329. }
  1330. static ps(attrs) {
  1331. return new Ps(attrs);
  1332. }
  1333. static range(attrs) {
  1334. return new Range(attrs);
  1335. }
  1336. static record(attrs) {
  1337. return new Record(attrs);
  1338. }
  1339. static relevant(attrs) {
  1340. return new Relevant(attrs);
  1341. }
  1342. static rename(attrs) {
  1343. return new Rename(attrs);
  1344. }
  1345. static renderPolicy(attrs) {
  1346. return new RenderPolicy(attrs);
  1347. }
  1348. static runScripts(attrs) {
  1349. return new RunScripts(attrs);
  1350. }
  1351. static script(attrs) {
  1352. return new Script(attrs);
  1353. }
  1354. static scriptModel(attrs) {
  1355. return new ScriptModel(attrs);
  1356. }
  1357. static severity(attrs) {
  1358. return new Severity(attrs);
  1359. }
  1360. static silentPrint(attrs) {
  1361. return new SilentPrint(attrs);
  1362. }
  1363. static staple(attrs) {
  1364. return new Staple(attrs);
  1365. }
  1366. static startNode(attrs) {
  1367. return new StartNode(attrs);
  1368. }
  1369. static startPage(attrs) {
  1370. return new StartPage(attrs);
  1371. }
  1372. static submitFormat(attrs) {
  1373. return new SubmitFormat(attrs);
  1374. }
  1375. static submitUrl(attrs) {
  1376. return new SubmitUrl(attrs);
  1377. }
  1378. static subsetBelow(attrs) {
  1379. return new SubsetBelow(attrs);
  1380. }
  1381. static suppressBanner(attrs) {
  1382. return new SuppressBanner(attrs);
  1383. }
  1384. static tagged(attrs) {
  1385. return new Tagged(attrs);
  1386. }
  1387. static template(attrs) {
  1388. return new Template(attrs);
  1389. }
  1390. static templateCache(attrs) {
  1391. return new TemplateCache(attrs);
  1392. }
  1393. static threshold(attrs) {
  1394. return new Threshold(attrs);
  1395. }
  1396. static to(attrs) {
  1397. return new To(attrs);
  1398. }
  1399. static trace(attrs) {
  1400. return new Trace(attrs);
  1401. }
  1402. static transform(attrs) {
  1403. return new Transform(attrs);
  1404. }
  1405. static type(attrs) {
  1406. return new Type(attrs);
  1407. }
  1408. static uri(attrs) {
  1409. return new Uri(attrs);
  1410. }
  1411. static validate(attrs) {
  1412. return new Validate(attrs);
  1413. }
  1414. static validateApprovalSignatures(attrs) {
  1415. return new ValidateApprovalSignatures(attrs);
  1416. }
  1417. static validationMessaging(attrs) {
  1418. return new ValidationMessaging(attrs);
  1419. }
  1420. static version(attrs) {
  1421. return new Version(attrs);
  1422. }
  1423. static versionControl(attrs) {
  1424. return new VersionControl(attrs);
  1425. }
  1426. static viewerPreferences(attrs) {
  1427. return new ViewerPreferences(attrs);
  1428. }
  1429. static webClient(attrs) {
  1430. return new WebClient(attrs);
  1431. }
  1432. static whitespace(attrs) {
  1433. return new Whitespace(attrs);
  1434. }
  1435. static window(attrs) {
  1436. return new Window(attrs);
  1437. }
  1438. static xdc(attrs) {
  1439. return new Xdc(attrs);
  1440. }
  1441. static xdp(attrs) {
  1442. return new Xdp(attrs);
  1443. }
  1444. static xsl(attrs) {
  1445. return new Xsl(attrs);
  1446. }
  1447. static zpl(attrs) {
  1448. return new Zpl(attrs);
  1449. }
  1450. }
  1451. exports.ConfigNamespace = ConfigNamespace;