: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
class Base extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "base");
class BatchOutput extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "batchOutput");
this.format = getStringOption(attributes.format, ["none", "concat", "zip", "zipCompress"]);
class BehaviorOverride extends ContentObject {
constructor(attributes) {
super(CONFIG_NS_ID, "behaviorOverride");
this[$content] = new Map(this[$content].trim().split(/\s+/).filter(x => x.includes(":")).map(x => x.split(":", 2)));
class Cache extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "cache", true);
this.templateCache = null;
class Change extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "change");
class Common extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "common", true);
this.suppressBanner = null;
this.validationMessaging = null;
this.versionControl = null;
this.log = new XFAObjectArray();
class Compress extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "compress");
this.scope = getStringOption(attributes.scope, ["imageOnly", "document"]);
class CompressLogicalStructure extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "compressLogicalStructure");
class CompressObjectStream extends Option10 {
constructor(attributes) {
super(CONFIG_NS_ID, "compressObjectStream");
class Compression extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "compression", true);
this.compressLogicalStructure = null;
this.compressObjectStream = null;
class Config extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "config", true);
this.agent = new XFAObjectArray();
class Conformance extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "conformance", ["A", "B"]);
class ContentCopy extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "contentCopy");
class Copies extends IntegerObject {
constructor(attributes) {
super(CONFIG_NS_ID, "copies", 1, n => n >= 1);
class Creator extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "creator");
class CurrentPage extends IntegerObject {
constructor(attributes) {
super(CONFIG_NS_ID, "currentPage", 0, n => n >= 0);
class Data extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "data", true);
this.incrementalLoad = null;
this.excludeNS = new XFAObjectArray();
this.transform = new XFAObjectArray();
class Debug extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "debug", true);
class DefaultTypeface extends ContentObject {
constructor(attributes) {
super(CONFIG_NS_ID, "defaultTypeface");
this.writingScript = getStringOption(attributes.writingScript, ["*", "Arabic", "Cyrillic", "EastEuropeanRoman", "Greek", "Hebrew", "Japanese", "Korean", "Roman", "SimplifiedChinese", "Thai", "TraditionalChinese", "Vietnamese"]);
class Destination extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "destination", ["pdf", "pcl", "ps", "webClient", "zpl"]);
class DocumentAssembly extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "documentAssembly");
class Driver extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "driver", true);
this.name = attributes.name ? attributes.name.trim() : "";
class DuplexOption extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "duplexOption", ["simplex", "duplexFlipLongEdge", "duplexFlipShortEdge"]);
class DynamicRender extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "dynamicRender", ["forbidden", "required"]);
class Embed extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "embed");
class config_Encrypt extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "encrypt");
class config_Encryption extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "encryption", true);
this.encryptionLevel = null;
class EncryptionLevel extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "encryptionLevel", ["40bit", "128bit"]);
class Enforce extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "enforce");
class Equate extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "equate");
this.force = getInteger({
this.from = attributes.from || "";
this.to = attributes.to || "";
class EquateRange extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "equateRange");
this.from = attributes.from || "";
this.to = attributes.to || "";
this._unicodeRange = attributes.unicodeRange || "";
const unicodeRegex = /U\+([0-9a-fA-F]+)/;
const unicodeRange = this._unicodeRange;
for (let range of unicodeRange.split(",").map(x => x.trim()).filter(x => !!x)) {
range = range.split("-", 2).map(x => {
const found = x.match(unicodeRegex);
return parseInt(found[1], 16);
if (range.length === 1) {
return shadow(this, "unicodeRange", ranges);
class Exclude extends ContentObject {
constructor(attributes) {
super(CONFIG_NS_ID, "exclude");
this[$content] = this[$content].trim().split(/\s+/).filter(x => x && ["calculate", "close", "enter", "exit", "initialize", "ready", "validate"].includes(x));
class ExcludeNS extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "excludeNS");
class FlipLabel extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "flipLabel", ["usePrinterSetting", "on", "off"]);
class config_FontInfo extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "fontInfo", true);
this.alwaysEmbed = new XFAObjectArray();
this.defaultTypeface = new XFAObjectArray();
this.neverEmbed = new XFAObjectArray();
class FormFieldFilling extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "formFieldFilling");
class GroupParent extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "groupParent");
class IfEmpty extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "ifEmpty", ["dataValue", "dataGroup", "ignore", "remove"]);
class IncludeXDPContent extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "includeXDPContent");
class IncrementalLoad extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "incrementalLoad", ["none", "forwardOnly"]);
class IncrementalMerge extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "incrementalMerge");
class Interactive extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "interactive");
class Jog extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "jog", ["usePrinterSetting", "none", "pageSet"]);
class LabelPrinter extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "labelPrinter", true);
this.name = getStringOption(attributes.name, ["zpl", "dpl", "ipl", "tcpl"]);
class Layout extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "layout", ["paginate", "panel"]);
class Level extends IntegerObject {
constructor(attributes) {
super(CONFIG_NS_ID, "level", 0, n => n > 0);
class Linearized extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "linearized");
class Locale extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "locale");
class LocaleSet extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "localeSet");
class Log extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "log", true);
class MapElement extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "map", true);
this.equate = new XFAObjectArray();
this.equateRange = new XFAObjectArray();
class MediumInfo extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "mediumInfo", true);
class config_Message extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "message", true);
class Messaging extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "messaging", true);
this.message = new XFAObjectArray();
class Mode extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "mode", ["append", "overwrite"]);
class ModifyAnnots extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "modifyAnnots");
class MsgId extends IntegerObject {
constructor(attributes) {
super(CONFIG_NS_ID, "msgId", 1, n => n >= 1);
class NameAttr extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "nameAttr");
class NeverEmbed extends ContentObject {
constructor(attributes) {
super(CONFIG_NS_ID, "neverEmbed");
class NumberOfCopies extends IntegerObject {
constructor(attributes) {
super(CONFIG_NS_ID, "numberOfCopies", null, n => n >= 2 && n <= 5);
class OpenAction extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "openAction", true);
class Output extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "output", true);
class OutputBin extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "outputBin");
class OutputXSL extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "outputXSL", true);
class Overprint extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "overprint", ["none", "both", "draw", "field"]);
class Packets extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "packets");
if (this[$content] === "*") {
this[$content] = this[$content].trim().split(/\s+/).filter(x => ["config", "datasets", "template", "xfdf", "xslt"].includes(x));
class PageOffset extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "pageOffset");
defaultValue: "useXDCSetting",
defaultValue: "useXDCSetting",
class PageRange extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "pageRange");
const numbers = this[$content].trim().split(/\s+/).map(x => parseInt(x, 10));
for (let i = 0, ii = numbers.length; i < ii; i += 2) {
ranges.push(numbers.slice(i, i + 2));
class Pagination extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "pagination", ["simplex", "duplexShortEdge", "duplexLongEdge"]);
class PaginationOverride extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "paginationOverride", ["none", "forceDuplex", "forceDuplexLongEdge", "forceDuplexShortEdge", "forceSimplex"]);
class Part extends IntegerObject {
constructor(attributes) {
super(CONFIG_NS_ID, "part", 1, n => false);
class Pcl extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "pcl", true);
this.name = attributes.name || "";
class Pdf extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "pdf", true);
this.name = attributes.name || "";
this.adobeExtensionLevel = null;