Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/embedpre.../assets/pdf/build
File: pdf.worker.js
const blob = new Blob([buffer], {
[48500] Fix | Delete
type: this.contentType
[48501] Fix | Delete
});
[48502] Fix | Delete
let style;
[48503] Fix | Delete
switch (this.aspect) {
[48504] Fix | Delete
case "fit":
[48505] Fix | Delete
case "actual":
[48506] Fix | Delete
break;
[48507] Fix | Delete
case "height":
[48508] Fix | Delete
style = {
[48509] Fix | Delete
height: "100%",
[48510] Fix | Delete
objectFit: "fill"
[48511] Fix | Delete
};
[48512] Fix | Delete
break;
[48513] Fix | Delete
case "none":
[48514] Fix | Delete
style = {
[48515] Fix | Delete
width: "100%",
[48516] Fix | Delete
height: "100%",
[48517] Fix | Delete
objectFit: "fill"
[48518] Fix | Delete
};
[48519] Fix | Delete
break;
[48520] Fix | Delete
case "width":
[48521] Fix | Delete
style = {
[48522] Fix | Delete
width: "100%",
[48523] Fix | Delete
objectFit: "fill"
[48524] Fix | Delete
};
[48525] Fix | Delete
break;
[48526] Fix | Delete
}
[48527] Fix | Delete
const parent = this[$getParent]();
[48528] Fix | Delete
return HTMLResult.success({
[48529] Fix | Delete
name: "img",
[48530] Fix | Delete
attributes: {
[48531] Fix | Delete
class: ["xfaImage"],
[48532] Fix | Delete
style,
[48533] Fix | Delete
src: URL.createObjectURL(blob),
[48534] Fix | Delete
alt: parent ? ariaLabel(parent[$getParent]()) : null
[48535] Fix | Delete
}
[48536] Fix | Delete
});
[48537] Fix | Delete
}
[48538] Fix | Delete
}
[48539] Fix | Delete
class ImageEdit extends XFAObject {
[48540] Fix | Delete
constructor(attributes) {
[48541] Fix | Delete
super(TEMPLATE_NS_ID, "imageEdit", true);
[48542] Fix | Delete
this.data = getStringOption(attributes.data, ["link", "embed"]);
[48543] Fix | Delete
this.id = attributes.id || "";
[48544] Fix | Delete
this.use = attributes.use || "";
[48545] Fix | Delete
this.usehref = attributes.usehref || "";
[48546] Fix | Delete
this.border = null;
[48547] Fix | Delete
this.extras = null;
[48548] Fix | Delete
this.margin = null;
[48549] Fix | Delete
}
[48550] Fix | Delete
[$toHTML](availableSpace) {
[48551] Fix | Delete
if (this.data === "embed") {
[48552] Fix | Delete
return HTMLResult.success({
[48553] Fix | Delete
name: "div",
[48554] Fix | Delete
children: [],
[48555] Fix | Delete
attributes: {}
[48556] Fix | Delete
});
[48557] Fix | Delete
}
[48558] Fix | Delete
return HTMLResult.EMPTY;
[48559] Fix | Delete
}
[48560] Fix | Delete
}
[48561] Fix | Delete
class Integer extends ContentObject {
[48562] Fix | Delete
constructor(attributes) {
[48563] Fix | Delete
super(TEMPLATE_NS_ID, "integer");
[48564] Fix | Delete
this.id = attributes.id || "";
[48565] Fix | Delete
this.name = attributes.name || "";
[48566] Fix | Delete
this.use = attributes.use || "";
[48567] Fix | Delete
this.usehref = attributes.usehref || "";
[48568] Fix | Delete
}
[48569] Fix | Delete
[$finalize]() {
[48570] Fix | Delete
const number = parseInt(this[$content].trim(), 10);
[48571] Fix | Delete
this[$content] = isNaN(number) ? null : number;
[48572] Fix | Delete
}
[48573] Fix | Delete
[$toHTML](availableSpace) {
[48574] Fix | Delete
return valueToHtml(this[$content] !== null ? this[$content].toString() : "");
[48575] Fix | Delete
}
[48576] Fix | Delete
}
[48577] Fix | Delete
class Issuers extends XFAObject {
[48578] Fix | Delete
constructor(attributes) {
[48579] Fix | Delete
super(TEMPLATE_NS_ID, "issuers", true);
[48580] Fix | Delete
this.id = attributes.id || "";
[48581] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[48582] Fix | Delete
this.use = attributes.use || "";
[48583] Fix | Delete
this.usehref = attributes.usehref || "";
[48584] Fix | Delete
this.certificate = new XFAObjectArray();
[48585] Fix | Delete
}
[48586] Fix | Delete
}
[48587] Fix | Delete
class Items extends XFAObject {
[48588] Fix | Delete
constructor(attributes) {
[48589] Fix | Delete
super(TEMPLATE_NS_ID, "items", true);
[48590] Fix | Delete
this.id = attributes.id || "";
[48591] Fix | Delete
this.name = attributes.name || "";
[48592] Fix | Delete
this.presence = getStringOption(attributes.presence, ["visible", "hidden", "inactive", "invisible"]);
[48593] Fix | Delete
this.ref = attributes.ref || "";
[48594] Fix | Delete
this.save = getInteger({
[48595] Fix | Delete
data: attributes.save,
[48596] Fix | Delete
defaultValue: 0,
[48597] Fix | Delete
validate: x => x === 1
[48598] Fix | Delete
});
[48599] Fix | Delete
this.use = attributes.use || "";
[48600] Fix | Delete
this.usehref = attributes.usehref || "";
[48601] Fix | Delete
this.boolean = new XFAObjectArray();
[48602] Fix | Delete
this.date = new XFAObjectArray();
[48603] Fix | Delete
this.dateTime = new XFAObjectArray();
[48604] Fix | Delete
this.decimal = new XFAObjectArray();
[48605] Fix | Delete
this.exData = new XFAObjectArray();
[48606] Fix | Delete
this.float = new XFAObjectArray();
[48607] Fix | Delete
this.image = new XFAObjectArray();
[48608] Fix | Delete
this.integer = new XFAObjectArray();
[48609] Fix | Delete
this.text = new XFAObjectArray();
[48610] Fix | Delete
this.time = new XFAObjectArray();
[48611] Fix | Delete
}
[48612] Fix | Delete
[$toHTML]() {
[48613] Fix | Delete
const output = [];
[48614] Fix | Delete
for (const child of this[$getChildren]()) {
[48615] Fix | Delete
output.push(child[$text]());
[48616] Fix | Delete
}
[48617] Fix | Delete
return HTMLResult.success(output);
[48618] Fix | Delete
}
[48619] Fix | Delete
}
[48620] Fix | Delete
class Keep extends XFAObject {
[48621] Fix | Delete
constructor(attributes) {
[48622] Fix | Delete
super(TEMPLATE_NS_ID, "keep", true);
[48623] Fix | Delete
this.id = attributes.id || "";
[48624] Fix | Delete
const options = ["none", "contentArea", "pageArea"];
[48625] Fix | Delete
this.intact = getStringOption(attributes.intact, options);
[48626] Fix | Delete
this.next = getStringOption(attributes.next, options);
[48627] Fix | Delete
this.previous = getStringOption(attributes.previous, options);
[48628] Fix | Delete
this.use = attributes.use || "";
[48629] Fix | Delete
this.usehref = attributes.usehref || "";
[48630] Fix | Delete
this.extras = null;
[48631] Fix | Delete
}
[48632] Fix | Delete
}
[48633] Fix | Delete
class KeyUsage extends XFAObject {
[48634] Fix | Delete
constructor(attributes) {
[48635] Fix | Delete
super(TEMPLATE_NS_ID, "keyUsage");
[48636] Fix | Delete
const options = ["", "yes", "no"];
[48637] Fix | Delete
this.crlSign = getStringOption(attributes.crlSign, options);
[48638] Fix | Delete
this.dataEncipherment = getStringOption(attributes.dataEncipherment, options);
[48639] Fix | Delete
this.decipherOnly = getStringOption(attributes.decipherOnly, options);
[48640] Fix | Delete
this.digitalSignature = getStringOption(attributes.digitalSignature, options);
[48641] Fix | Delete
this.encipherOnly = getStringOption(attributes.encipherOnly, options);
[48642] Fix | Delete
this.id = attributes.id || "";
[48643] Fix | Delete
this.keyAgreement = getStringOption(attributes.keyAgreement, options);
[48644] Fix | Delete
this.keyCertSign = getStringOption(attributes.keyCertSign, options);
[48645] Fix | Delete
this.keyEncipherment = getStringOption(attributes.keyEncipherment, options);
[48646] Fix | Delete
this.nonRepudiation = getStringOption(attributes.nonRepudiation, options);
[48647] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[48648] Fix | Delete
this.use = attributes.use || "";
[48649] Fix | Delete
this.usehref = attributes.usehref || "";
[48650] Fix | Delete
}
[48651] Fix | Delete
}
[48652] Fix | Delete
class Line extends XFAObject {
[48653] Fix | Delete
constructor(attributes) {
[48654] Fix | Delete
super(TEMPLATE_NS_ID, "line", true);
[48655] Fix | Delete
this.hand = getStringOption(attributes.hand, ["even", "left", "right"]);
[48656] Fix | Delete
this.id = attributes.id || "";
[48657] Fix | Delete
this.slope = getStringOption(attributes.slope, ["\\", "/"]);
[48658] Fix | Delete
this.use = attributes.use || "";
[48659] Fix | Delete
this.usehref = attributes.usehref || "";
[48660] Fix | Delete
this.edge = null;
[48661] Fix | Delete
}
[48662] Fix | Delete
[$toHTML]() {
[48663] Fix | Delete
const parent = this[$getParent]()[$getParent]();
[48664] Fix | Delete
const edge = this.edge || new Edge({});
[48665] Fix | Delete
const edgeStyle = edge[$toStyle]();
[48666] Fix | Delete
const style = Object.create(null);
[48667] Fix | Delete
const thickness = edge.presence === "visible" ? edge.thickness : 0;
[48668] Fix | Delete
style.strokeWidth = measureToString(thickness);
[48669] Fix | Delete
style.stroke = edgeStyle.color;
[48670] Fix | Delete
let x1, y1, x2, y2;
[48671] Fix | Delete
let width = "100%";
[48672] Fix | Delete
let height = "100%";
[48673] Fix | Delete
if (parent.w <= thickness) {
[48674] Fix | Delete
[x1, y1, x2, y2] = ["50%", 0, "50%", "100%"];
[48675] Fix | Delete
width = style.strokeWidth;
[48676] Fix | Delete
} else if (parent.h <= thickness) {
[48677] Fix | Delete
[x1, y1, x2, y2] = [0, "50%", "100%", "50%"];
[48678] Fix | Delete
height = style.strokeWidth;
[48679] Fix | Delete
} else if (this.slope === "\\") {
[48680] Fix | Delete
[x1, y1, x2, y2] = [0, 0, "100%", "100%"];
[48681] Fix | Delete
} else {
[48682] Fix | Delete
[x1, y1, x2, y2] = [0, "100%", "100%", 0];
[48683] Fix | Delete
}
[48684] Fix | Delete
const line = {
[48685] Fix | Delete
name: "line",
[48686] Fix | Delete
attributes: {
[48687] Fix | Delete
xmlns: SVG_NS,
[48688] Fix | Delete
x1,
[48689] Fix | Delete
y1,
[48690] Fix | Delete
x2,
[48691] Fix | Delete
y2,
[48692] Fix | Delete
style
[48693] Fix | Delete
}
[48694] Fix | Delete
};
[48695] Fix | Delete
const svg = {
[48696] Fix | Delete
name: "svg",
[48697] Fix | Delete
children: [line],
[48698] Fix | Delete
attributes: {
[48699] Fix | Delete
xmlns: SVG_NS,
[48700] Fix | Delete
width,
[48701] Fix | Delete
height,
[48702] Fix | Delete
style: {
[48703] Fix | Delete
overflow: "visible"
[48704] Fix | Delete
}
[48705] Fix | Delete
}
[48706] Fix | Delete
};
[48707] Fix | Delete
if (hasMargin(parent)) {
[48708] Fix | Delete
return HTMLResult.success({
[48709] Fix | Delete
name: "div",
[48710] Fix | Delete
attributes: {
[48711] Fix | Delete
style: {
[48712] Fix | Delete
display: "inline",
[48713] Fix | Delete
width: "100%",
[48714] Fix | Delete
height: "100%"
[48715] Fix | Delete
}
[48716] Fix | Delete
},
[48717] Fix | Delete
children: [svg]
[48718] Fix | Delete
});
[48719] Fix | Delete
}
[48720] Fix | Delete
svg.attributes.style.position = "absolute";
[48721] Fix | Delete
return HTMLResult.success(svg);
[48722] Fix | Delete
}
[48723] Fix | Delete
}
[48724] Fix | Delete
class Linear extends XFAObject {
[48725] Fix | Delete
constructor(attributes) {
[48726] Fix | Delete
super(TEMPLATE_NS_ID, "linear", true);
[48727] Fix | Delete
this.id = attributes.id || "";
[48728] Fix | Delete
this.type = getStringOption(attributes.type, ["toRight", "toBottom", "toLeft", "toTop"]);
[48729] Fix | Delete
this.use = attributes.use || "";
[48730] Fix | Delete
this.usehref = attributes.usehref || "";
[48731] Fix | Delete
this.color = null;
[48732] Fix | Delete
this.extras = null;
[48733] Fix | Delete
}
[48734] Fix | Delete
[$toStyle](startColor) {
[48735] Fix | Delete
startColor = startColor ? startColor[$toStyle]() : "#FFFFFF";
[48736] Fix | Delete
const transf = this.type.replace(/([RBLT])/, " $1").toLowerCase();
[48737] Fix | Delete
const endColor = this.color ? this.color[$toStyle]() : "#000000";
[48738] Fix | Delete
return `linear-gradient(${transf}, ${startColor}, ${endColor})`;
[48739] Fix | Delete
}
[48740] Fix | Delete
}
[48741] Fix | Delete
class LockDocument extends ContentObject {
[48742] Fix | Delete
constructor(attributes) {
[48743] Fix | Delete
super(TEMPLATE_NS_ID, "lockDocument");
[48744] Fix | Delete
this.id = attributes.id || "";
[48745] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[48746] Fix | Delete
this.use = attributes.use || "";
[48747] Fix | Delete
this.usehref = attributes.usehref || "";
[48748] Fix | Delete
}
[48749] Fix | Delete
[$finalize]() {
[48750] Fix | Delete
this[$content] = getStringOption(this[$content], ["auto", "0", "1"]);
[48751] Fix | Delete
}
[48752] Fix | Delete
}
[48753] Fix | Delete
class Manifest extends XFAObject {
[48754] Fix | Delete
constructor(attributes) {
[48755] Fix | Delete
super(TEMPLATE_NS_ID, "manifest", true);
[48756] Fix | Delete
this.action = getStringOption(attributes.action, ["include", "all", "exclude"]);
[48757] Fix | Delete
this.id = attributes.id || "";
[48758] Fix | Delete
this.name = attributes.name || "";
[48759] Fix | Delete
this.use = attributes.use || "";
[48760] Fix | Delete
this.usehref = attributes.usehref || "";
[48761] Fix | Delete
this.extras = null;
[48762] Fix | Delete
this.ref = new XFAObjectArray();
[48763] Fix | Delete
}
[48764] Fix | Delete
}
[48765] Fix | Delete
class Margin extends XFAObject {
[48766] Fix | Delete
constructor(attributes) {
[48767] Fix | Delete
super(TEMPLATE_NS_ID, "margin", true);
[48768] Fix | Delete
this.bottomInset = getMeasurement(attributes.bottomInset, "0");
[48769] Fix | Delete
this.id = attributes.id || "";
[48770] Fix | Delete
this.leftInset = getMeasurement(attributes.leftInset, "0");
[48771] Fix | Delete
this.rightInset = getMeasurement(attributes.rightInset, "0");
[48772] Fix | Delete
this.topInset = getMeasurement(attributes.topInset, "0");
[48773] Fix | Delete
this.use = attributes.use || "";
[48774] Fix | Delete
this.usehref = attributes.usehref || "";
[48775] Fix | Delete
this.extras = null;
[48776] Fix | Delete
}
[48777] Fix | Delete
[$toStyle]() {
[48778] Fix | Delete
return {
[48779] Fix | Delete
margin: measureToString(this.topInset) + " " + measureToString(this.rightInset) + " " + measureToString(this.bottomInset) + " " + measureToString(this.leftInset)
[48780] Fix | Delete
};
[48781] Fix | Delete
}
[48782] Fix | Delete
}
[48783] Fix | Delete
class Mdp extends XFAObject {
[48784] Fix | Delete
constructor(attributes) {
[48785] Fix | Delete
super(TEMPLATE_NS_ID, "mdp");
[48786] Fix | Delete
this.id = attributes.id || "";
[48787] Fix | Delete
this.permissions = getInteger({
[48788] Fix | Delete
data: attributes.permissions,
[48789] Fix | Delete
defaultValue: 2,
[48790] Fix | Delete
validate: x => x === 1 || x === 3
[48791] Fix | Delete
});
[48792] Fix | Delete
this.signatureType = getStringOption(attributes.signatureType, ["filler", "author"]);
[48793] Fix | Delete
this.use = attributes.use || "";
[48794] Fix | Delete
this.usehref = attributes.usehref || "";
[48795] Fix | Delete
}
[48796] Fix | Delete
}
[48797] Fix | Delete
class Medium extends XFAObject {
[48798] Fix | Delete
constructor(attributes) {
[48799] Fix | Delete
super(TEMPLATE_NS_ID, "medium");
[48800] Fix | Delete
this.id = attributes.id || "";
[48801] Fix | Delete
this.imagingBBox = getBBox(attributes.imagingBBox);
[48802] Fix | Delete
this.long = getMeasurement(attributes.long);
[48803] Fix | Delete
this.orientation = getStringOption(attributes.orientation, ["portrait", "landscape"]);
[48804] Fix | Delete
this.short = getMeasurement(attributes.short);
[48805] Fix | Delete
this.stock = attributes.stock || "";
[48806] Fix | Delete
this.trayIn = getStringOption(attributes.trayIn, ["auto", "delegate", "pageFront"]);
[48807] Fix | Delete
this.trayOut = getStringOption(attributes.trayOut, ["auto", "delegate"]);
[48808] Fix | Delete
this.use = attributes.use || "";
[48809] Fix | Delete
this.usehref = attributes.usehref || "";
[48810] Fix | Delete
}
[48811] Fix | Delete
}
[48812] Fix | Delete
class Message extends XFAObject {
[48813] Fix | Delete
constructor(attributes) {
[48814] Fix | Delete
super(TEMPLATE_NS_ID, "message", true);
[48815] Fix | Delete
this.id = attributes.id || "";
[48816] Fix | Delete
this.use = attributes.use || "";
[48817] Fix | Delete
this.usehref = attributes.usehref || "";
[48818] Fix | Delete
this.text = new XFAObjectArray();
[48819] Fix | Delete
}
[48820] Fix | Delete
}
[48821] Fix | Delete
class NumericEdit extends XFAObject {
[48822] Fix | Delete
constructor(attributes) {
[48823] Fix | Delete
super(TEMPLATE_NS_ID, "numericEdit", true);
[48824] Fix | Delete
this.hScrollPolicy = getStringOption(attributes.hScrollPolicy, ["auto", "off", "on"]);
[48825] Fix | Delete
this.id = attributes.id || "";
[48826] Fix | Delete
this.use = attributes.use || "";
[48827] Fix | Delete
this.usehref = attributes.usehref || "";
[48828] Fix | Delete
this.border = null;
[48829] Fix | Delete
this.comb = null;
[48830] Fix | Delete
this.extras = null;
[48831] Fix | Delete
this.margin = null;
[48832] Fix | Delete
}
[48833] Fix | Delete
[$toHTML](availableSpace) {
[48834] Fix | Delete
const style = toStyle(this, "border", "font", "margin");
[48835] Fix | Delete
const field = this[$getParent]()[$getParent]();
[48836] Fix | Delete
const html = {
[48837] Fix | Delete
name: "input",
[48838] Fix | Delete
attributes: {
[48839] Fix | Delete
type: "text",
[48840] Fix | Delete
fieldId: field[$uid],
[48841] Fix | Delete
dataId: field[$data]?.[$uid] || field[$uid],
[48842] Fix | Delete
class: ["xfaTextfield"],
[48843] Fix | Delete
style,
[48844] Fix | Delete
"aria-label": ariaLabel(field),
[48845] Fix | Delete
"aria-required": false
[48846] Fix | Delete
}
[48847] Fix | Delete
};
[48848] Fix | Delete
if (isRequired(field)) {
[48849] Fix | Delete
html.attributes["aria-required"] = true;
[48850] Fix | Delete
html.attributes.required = true;
[48851] Fix | Delete
}
[48852] Fix | Delete
return HTMLResult.success({
[48853] Fix | Delete
name: "label",
[48854] Fix | Delete
attributes: {
[48855] Fix | Delete
class: ["xfaLabel"]
[48856] Fix | Delete
},
[48857] Fix | Delete
children: [html]
[48858] Fix | Delete
});
[48859] Fix | Delete
}
[48860] Fix | Delete
}
[48861] Fix | Delete
class Occur extends XFAObject {
[48862] Fix | Delete
constructor(attributes) {
[48863] Fix | Delete
super(TEMPLATE_NS_ID, "occur", true);
[48864] Fix | Delete
this.id = attributes.id || "";
[48865] Fix | Delete
this.initial = attributes.initial !== "" ? getInteger({
[48866] Fix | Delete
data: attributes.initial,
[48867] Fix | Delete
defaultValue: "",
[48868] Fix | Delete
validate: x => true
[48869] Fix | Delete
}) : "";
[48870] Fix | Delete
this.max = attributes.max !== "" ? getInteger({
[48871] Fix | Delete
data: attributes.max,
[48872] Fix | Delete
defaultValue: 1,
[48873] Fix | Delete
validate: x => true
[48874] Fix | Delete
}) : "";
[48875] Fix | Delete
this.min = attributes.min !== "" ? getInteger({
[48876] Fix | Delete
data: attributes.min,
[48877] Fix | Delete
defaultValue: 1,
[48878] Fix | Delete
validate: x => true
[48879] Fix | Delete
}) : "";
[48880] Fix | Delete
this.use = attributes.use || "";
[48881] Fix | Delete
this.usehref = attributes.usehref || "";
[48882] Fix | Delete
this.extras = null;
[48883] Fix | Delete
}
[48884] Fix | Delete
[$clean]() {
[48885] Fix | Delete
const parent = this[$getParent]();
[48886] Fix | Delete
const originalMin = this.min;
[48887] Fix | Delete
if (this.min === "") {
[48888] Fix | Delete
this.min = parent instanceof PageArea || parent instanceof PageSet ? 0 : 1;
[48889] Fix | Delete
}
[48890] Fix | Delete
if (this.max === "") {
[48891] Fix | Delete
if (originalMin === "") {
[48892] Fix | Delete
this.max = parent instanceof PageArea || parent instanceof PageSet ? -1 : 1;
[48893] Fix | Delete
} else {
[48894] Fix | Delete
this.max = this.min;
[48895] Fix | Delete
}
[48896] Fix | Delete
}
[48897] Fix | Delete
if (this.max !== -1 && this.max < this.min) {
[48898] Fix | Delete
this.max = this.min;
[48899] Fix | Delete
}
[48900] Fix | Delete
if (this.initial === "") {
[48901] Fix | Delete
this.initial = parent instanceof Template ? 1 : this.min;
[48902] Fix | Delete
}
[48903] Fix | Delete
}
[48904] Fix | Delete
}
[48905] Fix | Delete
class Oid extends StringObject {
[48906] Fix | Delete
constructor(attributes) {
[48907] Fix | Delete
super(TEMPLATE_NS_ID, "oid");
[48908] Fix | Delete
this.id = attributes.id || "";
[48909] Fix | Delete
this.name = attributes.name || "";
[48910] Fix | Delete
this.use = attributes.use || "";
[48911] Fix | Delete
this.usehref = attributes.usehref || "";
[48912] Fix | Delete
}
[48913] Fix | Delete
}
[48914] Fix | Delete
class Oids extends XFAObject {
[48915] Fix | Delete
constructor(attributes) {
[48916] Fix | Delete
super(TEMPLATE_NS_ID, "oids", true);
[48917] Fix | Delete
this.id = attributes.id || "";
[48918] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[48919] Fix | Delete
this.use = attributes.use || "";
[48920] Fix | Delete
this.usehref = attributes.usehref || "";
[48921] Fix | Delete
this.oid = new XFAObjectArray();
[48922] Fix | Delete
}
[48923] Fix | Delete
}
[48924] Fix | Delete
class Overflow extends XFAObject {
[48925] Fix | Delete
constructor(attributes) {
[48926] Fix | Delete
super(TEMPLATE_NS_ID, "overflow");
[48927] Fix | Delete
this.id = attributes.id || "";
[48928] Fix | Delete
this.leader = attributes.leader || "";
[48929] Fix | Delete
this.target = attributes.target || "";
[48930] Fix | Delete
this.trailer = attributes.trailer || "";
[48931] Fix | Delete
this.use = attributes.use || "";
[48932] Fix | Delete
this.usehref = attributes.usehref || "";
[48933] Fix | Delete
}
[48934] Fix | Delete
[$getExtra]() {
[48935] Fix | Delete
if (!this[$extra]) {
[48936] Fix | Delete
const parent = this[$getParent]();
[48937] Fix | Delete
const root = this[$getTemplateRoot]();
[48938] Fix | Delete
const target = root[$searchNode](this.target, parent);
[48939] Fix | Delete
const leader = root[$searchNode](this.leader, parent);
[48940] Fix | Delete
const trailer = root[$searchNode](this.trailer, parent);
[48941] Fix | Delete
this[$extra] = {
[48942] Fix | Delete
target: target?.[0] || null,
[48943] Fix | Delete
leader: leader?.[0] || null,
[48944] Fix | Delete
trailer: trailer?.[0] || null,
[48945] Fix | Delete
addLeader: false,
[48946] Fix | Delete
addTrailer: false
[48947] Fix | Delete
};
[48948] Fix | Delete
}
[48949] Fix | Delete
return this[$extra];
[48950] Fix | Delete
}
[48951] Fix | Delete
}
[48952] Fix | Delete
class PageArea extends XFAObject {
[48953] Fix | Delete
constructor(attributes) {
[48954] Fix | Delete
super(TEMPLATE_NS_ID, "pageArea", true);
[48955] Fix | Delete
this.blankOrNotBlank = getStringOption(attributes.blankOrNotBlank, ["any", "blank", "notBlank"]);
[48956] Fix | Delete
this.id = attributes.id || "";
[48957] Fix | Delete
this.initialNumber = getInteger({
[48958] Fix | Delete
data: attributes.initialNumber,
[48959] Fix | Delete
defaultValue: 1,
[48960] Fix | Delete
validate: x => true
[48961] Fix | Delete
});
[48962] Fix | Delete
this.name = attributes.name || "";
[48963] Fix | Delete
this.numbered = getInteger({
[48964] Fix | Delete
data: attributes.numbered,
[48965] Fix | Delete
defaultValue: 1,
[48966] Fix | Delete
validate: x => true
[48967] Fix | Delete
});
[48968] Fix | Delete
this.oddOrEven = getStringOption(attributes.oddOrEven, ["any", "even", "odd"]);
[48969] Fix | Delete
this.pagePosition = getStringOption(attributes.pagePosition, ["any", "first", "last", "only", "rest"]);
[48970] Fix | Delete
this.relevant = getRelevant(attributes.relevant);
[48971] Fix | Delete
this.use = attributes.use || "";
[48972] Fix | Delete
this.usehref = attributes.usehref || "";
[48973] Fix | Delete
this.desc = null;
[48974] Fix | Delete
this.extras = null;
[48975] Fix | Delete
this.medium = null;
[48976] Fix | Delete
this.occur = null;
[48977] Fix | Delete
this.area = new XFAObjectArray();
[48978] Fix | Delete
this.contentArea = new XFAObjectArray();
[48979] Fix | Delete
this.draw = new XFAObjectArray();
[48980] Fix | Delete
this.exclGroup = new XFAObjectArray();
[48981] Fix | Delete
this.field = new XFAObjectArray();
[48982] Fix | Delete
this.subform = new XFAObjectArray();
[48983] Fix | Delete
}
[48984] Fix | Delete
[$isUsable]() {
[48985] Fix | Delete
if (!this[$extra]) {
[48986] Fix | Delete
this[$extra] = {
[48987] Fix | Delete
numberOfUse: 0
[48988] Fix | Delete
};
[48989] Fix | Delete
return true;
[48990] Fix | Delete
}
[48991] Fix | Delete
return !this.occur || this.occur.max === -1 || this[$extra].numberOfUse < this.occur.max;
[48992] Fix | Delete
}
[48993] Fix | Delete
[$cleanPage]() {
[48994] Fix | Delete
delete this[$extra];
[48995] Fix | Delete
}
[48996] Fix | Delete
[$getNextPage]() {
[48997] Fix | Delete
if (!this[$extra]) {
[48998] Fix | Delete
this[$extra] = {
[48999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function