: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
this.renderPolicy = null;
this.submitFormat = null;
this.viewerPreferences = null;
class Pdfa extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "pdfa", true);
this.includeXDPContent = null;
class Permissions extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "permissions", true);
this.accessibleContent = null;
this.documentAssembly = null;
this.formFieldFilling = null;
this.modifyAnnots = null;
this.plaintextMetadata = null;
this.printHighQuality = null;
class PickTrayByPDFSize extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "pickTrayByPDFSize");
class config_Picture extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "picture");
class PlaintextMetadata extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "plaintextMetadata");
class Presence extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "presence", ["preserve", "dissolve", "dissolveStructure", "ignore", "remove"]);
class Present extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "present", true);
this.behaviorOverride = null;
this.incrementalMerge = null;
this.paginationOverride = null;
this.driver = new XFAObjectArray();
this.labelPrinter = new XFAObjectArray();
this.pcl = new XFAObjectArray();
this.pdf = new XFAObjectArray();
this.ps = new XFAObjectArray();
this.submitUrl = new XFAObjectArray();
this.webClient = new XFAObjectArray();
this.zpl = new XFAObjectArray();
class Print extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "print");
class PrintHighQuality extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "printHighQuality");
class PrintScaling extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "printScaling", ["appdefault", "noScaling"]);
class PrinterName extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "printerName");
class Producer extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "producer");
class Ps extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "ps", true);
this.name = attributes.name || "";
class Range extends ContentObject {
constructor(attributes) {
super(CONFIG_NS_ID, "range");
this[$content] = this[$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 => {
if (range.length === 1) {
class Record extends ContentObject {
constructor(attributes) {
super(CONFIG_NS_ID, "record");
this[$content] = this[$content].trim();
const n = parseInt(this[$content], 10);
if (!isNaN(n) && n >= 0) {
class Relevant extends ContentObject {
constructor(attributes) {
super(CONFIG_NS_ID, "relevant");
this[$content] = this[$content].trim().split(/\s+/);
class Rename extends ContentObject {
constructor(attributes) {
super(CONFIG_NS_ID, "rename");
this[$content] = this[$content].trim();
if (this[$content].toLowerCase().startsWith("xml") || new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*", "u").test(this[$content])) {
warn("XFA - Rename: invalid XFA name");
class RenderPolicy extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "renderPolicy", ["server", "client"]);
class RunScripts extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "runScripts", ["both", "client", "none", "server"]);
class config_Script extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "script", true);
class ScriptModel extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "scriptModel", ["XFA", "none"]);
class Severity extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "severity", ["ignore", "error", "information", "trace", "warning"]);
class SilentPrint extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "silentPrint", true);
this.addSilentPrint = null;
class Staple extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "staple");
this.mode = getStringOption(attributes.mode, ["usePrinterSetting", "on", "off"]);
class StartNode extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "startNode");
class StartPage extends IntegerObject {
constructor(attributes) {
super(CONFIG_NS_ID, "startPage", 0, n => true);
class SubmitFormat extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "submitFormat", ["html", "delegate", "fdf", "xml", "pdf"]);
class SubmitUrl extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "submitUrl");
class SubsetBelow extends IntegerObject {
constructor(attributes) {
super(CONFIG_NS_ID, "subsetBelow", 100, n => n >= 0 && n <= 100);
class SuppressBanner extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "suppressBanner");
class Tagged extends Option01 {
constructor(attributes) {
super(CONFIG_NS_ID, "tagged");
class config_Template extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "template", true);
class Threshold extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "threshold", ["trace", "error", "information", "warning"]);
class To extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "to", ["null", "memory", "stderr", "stdout", "system", "uri"]);
class TemplateCache extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "templateCache");
this.maxEntries = getInteger({
data: attributes.maxEntries,
class Trace extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "trace", true);
this.area = new XFAObjectArray();
class Transform extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "transform", true);
class Type extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "type", ["none", "ascii85", "asciiHex", "ccittfax", "flate", "lzw", "runLength", "native", "xdp", "mergedXDP"]);
class Uri extends StringObject {
constructor(attributes) {
super(CONFIG_NS_ID, "uri");
class config_Validate extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "validate", ["preSubmit", "prePrint", "preExecute", "preSave"]);
class ValidateApprovalSignatures extends ContentObject {
constructor(attributes) {
super(CONFIG_NS_ID, "validateApprovalSignatures");
this[$content] = this[$content].trim().split(/\s+/).filter(x => ["docReady", "postSign"].includes(x));
class ValidationMessaging extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "validationMessaging", ["allMessagesIndividually", "allMessagesTogether", "firstMessageOnly", "noMessages"]);
class Version extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "version", ["1.7", "1.6", "1.5", "1.4", "1.3", "1.2"]);
class VersionControl extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "VersionControl");
this.outputBelow = getStringOption(attributes.outputBelow, ["warn", "error", "update"]);
this.sourceAbove = getStringOption(attributes.sourceAbove, ["warn", "error"]);
this.sourceBelow = getStringOption(attributes.sourceBelow, ["update", "maintain"]);
class ViewerPreferences extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "viewerPreferences", true);
this.ADBE_JSConsole = null;
this.ADBE_JSDebugger = null;
this.addViewerPreferences = null;
this.duplexOption = null;
this.numberOfCopies = null;
this.pickTrayByPDFSize = null;
this.printScaling = null;
class WebClient extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "webClient", true);
this.name = attributes.name ? attributes.name.trim() : "";
class Whitespace extends OptionObject {
constructor(attributes) {
super(CONFIG_NS_ID, "whitespace", ["preserve", "ltrim", "normalize", "rtrim", "trim"]);
class Window extends ContentObject {
constructor(attributes) {
super(CONFIG_NS_ID, "window");
const pair = this[$content].trim().split(/\s*,\s*/, 2).map(x => parseInt(x, 10));
if (pair.some(x => isNaN(x))) {
class Xdc extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "xdc", true);
this.uri = new XFAObjectArray();
this.xsl = new XFAObjectArray();
class Xdp extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "xdp", true);
class Xsl extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "xsl", true);
class Zpl extends XFAObject {
constructor(attributes) {
super(CONFIG_NS_ID, "zpl", true);
this.name = attributes.name ? attributes.name.trim() : "";
static [$buildXFAObject](name, attributes) {
if (ConfigNamespace.hasOwnProperty(name)) {
return ConfigNamespace[name](attributes);
return new Acrobat(attrs);
return new Acrobat7(attrs);
static ADBE_JSConsole(attrs) {
return new ADBE_JSConsole(attrs);
static ADBE_JSDebugger(attrs) {
return new ADBE_JSDebugger(attrs);
static addSilentPrint(attrs) {
return new AddSilentPrint(attrs);
static addViewerPreferences(attrs) {
return new AddViewerPreferences(attrs);
static adjustData(attrs) {
return new AdjustData(attrs);
static adobeExtensionLevel(attrs) {
return new AdobeExtensionLevel(attrs);
static alwaysEmbed(attrs) {
return new AlwaysEmbed(attrs);
return new config_Area(attrs);
static attributes(attrs) {
return new Attributes(attrs);
return new AutoSave(attrs);
static batchOutput(attrs) {
return new BatchOutput(attrs);
static behaviorOverride(attrs) {
return new BehaviorOverride(attrs);
return new Change(attrs);
return new Common(attrs);
return new Compress(attrs);
static compressLogicalStructure(attrs) {
return new CompressLogicalStructure(attrs);
static compressObjectStream(attrs) {
return new CompressObjectStream(attrs);
static compression(attrs) {
return new Compression(attrs);
return new Config(attrs);
static conformance(attrs) {
return new Conformance(attrs);
static contentCopy(attrs) {
return new ContentCopy(attrs);
return new Copies(attrs);