survey-pdf 2.5.31 → 2.5.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/fesm/pdf-form-filler-shared.mjs +209 -0
  2. package/fesm/pdf-form-filler-shared.mjs.map +1 -0
  3. package/fesm/pdf-form-filler.mjs +35 -0
  4. package/fesm/pdf-form-filler.mjs.map +1 -0
  5. package/fesm/pdf-form-filler.node.mjs +27 -0
  6. package/fesm/pdf-form-filler.node.mjs.map +1 -0
  7. package/fesm/pdf-shared.mjs +2 -2
  8. package/fesm/survey.pdf.fonts.mjs +17 -0
  9. package/fesm/survey.pdf.fonts.mjs.map +1 -0
  10. package/fesm/survey.pdf.mjs +1 -1
  11. package/fesm/survey.pdf.node.mjs +1 -1
  12. package/forms-typings/entries/forms-node.d.ts +3 -0
  13. package/forms-typings/entries/forms.d.ts +3 -0
  14. package/forms-typings/pdf_forms/adapters/adapter.d.ts +3 -0
  15. package/forms-typings/pdf_forms/adapters/pdf-lib.d.ts +6 -0
  16. package/forms-typings/pdf_forms/adapters/pdfjs.d.ts +6 -0
  17. package/forms-typings/pdf_forms/forms-base.d.ts +124 -0
  18. package/forms-typings/pdf_forms/forms-node.d.ts +4 -0
  19. package/forms-typings/pdf_forms/forms.d.ts +13 -0
  20. package/forms-typings/pdf_forms/map.d.ts +7 -0
  21. package/package.json +2 -2
  22. package/pdf-form-filler.js +351 -0
  23. package/pdf-form-filler.js.map +1 -0
  24. package/pdf-form-filler.min.js +5 -0
  25. package/pdf-form-filler.min.js.LICENSE.txt +10 -0
  26. package/pdf-form-filler.node.js +340 -0
  27. package/pdf-form-filler.node.js.map +1 -0
  28. package/pdf-form-filler.node.min.js +5 -0
  29. package/pdf-form-filler.node.min.js.LICENSE.txt +10 -0
  30. package/survey.pdf.fonts.js +28 -0
  31. package/survey.pdf.fonts.js.map +1 -0
  32. package/survey.pdf.fonts.min.js +5 -0
  33. package/survey.pdf.fonts.min.js.LICENSE.txt +5 -0
  34. package/survey.pdf.js +2 -2
  35. package/survey.pdf.min.js +1 -1
  36. package/survey.pdf.min.js.LICENSE.txt +1 -1
  37. package/survey.pdf.node.js +2 -2
  38. package/survey.pdf.node.min.js +1 -1
  39. package/survey.pdf.node.min.js.LICENSE.txt +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-form-filler.js","sources":["../node_modules/tslib/tslib.es6.js","../src/pdf_forms/map.ts","../src/pdf_forms/forms-base.ts","../src/pdf_forms/forms.ts","../src/pdf_forms/adapters/pdf-lib.ts","../src/pdf_forms/adapters/pdfjs.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","export default class FormsMap {\n private res: any = {};\n constructor(private map: any) { }\n private mapDataRecursive(data: any, map: any) {\n if(data === undefined || data === null) return;\n if (typeof(data) !== 'object') {\n if(Array.isArray(map)) {\n map.forEach((m) => {\n this.mapDataRecursive(data, m);\n });\n return;\n }\n if (typeof(map) !== 'object') {\n this.res[map] = data;\n } else {\n this.res[map[data].field] = map[data].value;\n }\n return;\n }\n if (Array.isArray(data)) {\n data.forEach((d, i) => {\n this.mapDataRecursive(d, Array.isArray(map) ? map[i] : map);\n });\n return;\n }\n Object.keys(data).forEach(key => {\n this.mapDataRecursive(data[key], map[key]);\n });\n }\n mapData(data: any) {\n this.res = {};\n this.mapDataRecursive(data, this.map);\n return this.res;\n }\n}","import FormMap from './map';\r\nimport { IPDFFormAdapter } from './adapters/adapter';\r\n\r\n/**\r\n * An object that configures the [`PDFFormFiller`](https://surveyjs.io/pdf-generator/documentation/api-reference/pdfformfiller) plugin.\r\n *\r\n * Pass this object to the `PDFFormFiller` constructor:\r\n *\r\n * ```js\r\n * const form = new PDFFormFiller.PDFFormFiller(pdfFormFillerOptions);\r\n *\r\n * // In modular applications:\r\n * import { PDFFormFiller } from \"survey-pdf/pdf-form-filler\";\r\n * const form = new PDFFormFiller(pdfFormFillerOptions);\r\n * ```\r\n *\r\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\r\n *\r\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\r\n */\r\ninterface IPDFFormFillerOptions {\r\n /**\r\n * An object that maps survey fields to PDF form fields. Object keys are survey field names and object values are PDF form field IDs.\r\n *\r\n * The easiest way to build a field map is to access the data object with respondent answers using the `SurveyModel`'s `data` property and replace the values with the PDF form field IDs. To find the IDs, open your PDF document in any editor that allows viewing them. Note that certain field types, such as [Checkboxes](https://surveyjs.io/form-library/examples/create-checkboxes-question-in-javascript/), [Dynamic Matrix](https://surveyjs.io/form-library/examples/dynamic-matrix-add-new-rows/), and [Dynamic Panel](https://surveyjs.io/form-library/examples/duplicate-group-of-fields-in-form/) require a different configuration. Refer to the following demos for code examples.\r\n *\r\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\r\n *\r\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\r\n */\r\n fieldMap?: any;\r\n /**\r\n * An object with data used to populate the PDF document.\r\n *\r\n * Use the [`SurveyModel`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model)'s [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data) property to access this data object.\r\n *\r\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\r\n *\r\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\r\n */\r\n data?: any;\r\n /**\r\n * A PDF document with interactive form fields that you want to fill.\r\n *\r\n * Because this document is passed on to a third-party library, the type of accepted values depends on this library.\r\n *\r\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\r\n *\r\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\r\n */\r\n pdfTemplate?: any;\r\n /**\r\n * An adapter that serves as a bridge between the `PDFFormFiller` plugin and a specific third-party library.\r\n *\r\n * SurveyJS PDF Generator provides adapters for [`pdf-lib`](https://pdf-lib.js.org/) and [PDF.js](https://mozilla.github.io/pdf.js/) out of the box. Pass the libraries to the `PDFLibAdapter` or `PDFJSAdapter` constructor and assign the resulting instance to the `pdfLibraryAdapter` property.\r\n *\r\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\r\n *\r\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\r\n */\r\n pdfLibraryAdapter?: IPDFFormAdapter;\r\n}\r\n/**\r\n * A base class for the `PDFFormFiller` plugin.\r\n */\r\nexport abstract class PDFFormFillerBase {\r\n constructor (options?: IPDFFormFillerOptions) {\r\n if(options) {\r\n this.data = options.data;\r\n this.fieldMap = options.fieldMap;\r\n this.pdfTemplate = options.pdfTemplate;\r\n this.pdfLibraryAdapter = options.pdfLibraryAdapter;\r\n }\r\n }\r\n /**\r\n * A PDF document with interactive form fields that you want to fill.\r\n *\r\n * Because this document is passed on to a third-party library, the type of accepted values depends on this library.\r\n *\r\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\r\n *\r\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\r\n */\r\n public pdfTemplate: any;\r\n /**\r\n * An object that maps survey fields to PDF form fields. Object keys are survey field names and object values are PDF form field IDs.\r\n *\r\n * The easiest way to build a field map is to access the data object with respondent answers using the `SurveyModel`'s `data` property and replace the values with the PDF form field IDs. To find the IDs, open your PDF document in any editor that allows viewing them. Note that certain field types, such as [Checkboxes](https://surveyjs.io/form-library/examples/create-checkboxes-question-in-javascript/), [Dynamic Matrix](https://surveyjs.io/form-library/examples/dynamic-matrix-add-new-rows/), and [Dynamic Panel](https://surveyjs.io/form-library/examples/duplicate-group-of-fields-in-form/) require a different configuration. Refer to the following demos for code examples.\r\n *\r\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\r\n *\r\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\r\n */\r\n public fieldMap: any;\r\n /**\r\n * An object with data used to populate the PDF document.\r\n *\r\n * Use the [`SurveyModel`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model)'s [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data) property to access this data object.\r\n *\r\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\r\n *\r\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\r\n */\r\n public data: any;\r\n /**\r\n * An adapter that serves as a bridge between the `PDFFormFiller` plugin and a specific third-party library.\r\n *\r\n * SurveyJS PDF Generator provides adapters for [`pdf-lib`](https://pdf-lib.js.org/) and [PDF.js](https://mozilla.github.io/pdf.js/) out of the box. Pass the libraries to the `PDFLibAdapter` or `PDFJSAdapter` constructor and assign the resulting instance to the `pdfLibraryAdapter` property.\r\n *\r\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\r\n *\r\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\r\n */\r\n public pdfLibraryAdapter?: IPDFFormAdapter;\r\n\r\n protected async getPDFBytes() {\r\n const map = new FormMap(this.fieldMap);\r\n const plainData = map.mapData(this.data);\r\n return await this.pdfLibraryAdapter?.fillForm(this.pdfTemplate, plainData);\r\n }\r\n\r\n private fromCharCode(array: ArrayLike<number>) {\r\n const strings: string[] = [];\r\n const chunkSize = 0xffff;\r\n for (let i = 0; i < array.length; i += chunkSize) {\r\n const chunk = Array.prototype.slice.call(array, i, i + chunkSize) as number[];\r\n strings.push(String.fromCharCode.apply(null, chunk));\r\n }\r\n return strings.join('');\r\n }\r\n /**\r\n * An asynchronous method that allows you to get PDF content in different formats.\r\n * @param type *(Optional)* One of `\"blob\"`, `\"bloburl\"`, `\"dataurlstring\"`. Do not specify this parameter if you want to get raw PDF content as a string value.\r\n */\r\n public async raw(type?: 'blob' | 'bloburl' | 'dataurlstring') {\r\n const pdfBytes = await this.getPDFBytes();\r\n if (!type || !pdfBytes) return pdfBytes;\r\n if (type == 'dataurlstring') return 'data:application/pdf;base64,' + btoa(this.fromCharCode(pdfBytes as any));\r\n const blob = new Blob([pdfBytes], { type: 'application/pdf' });\r\n if (type == 'blob') return blob;\r\n if (type == 'bloburl') return URL.createObjectURL(blob);\r\n return pdfBytes;\r\n }\r\n\r\n protected abstract saveToFile(pdfBytes:string, fileName: string): Promise<void>;\r\n /**\r\n * An asynchronous method that starts to download the filled PDF form in the web browser.\r\n *\r\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\r\n *\r\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\r\n * @param fileName *(Optional)* A file name with the \".pdf\" extension. Default value: `\"FilledForm.pdf\"`.\r\n */\r\n public async save(fileName: string = 'FilledForm.pdf') {\r\n const pdfBytes = await this.getPDFBytes();\r\n if(!pdfBytes) return;\r\n await this.saveToFile(pdfBytes, fileName);\r\n }\r\n}","import { PDFFormFillerBase } from './forms-base';\n\n/**\n * A plugin that enables you to fill interactive fields in existing PDF forms.\n *\n * This plugin requires a third-party library, such as [`pdf-lib`](https://pdf-lib.js.org/) or [PDF.js](https://mozilla.github.io/pdf.js/):\n *\n * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))\n *\n * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))\n */\nexport class PDFFormFiller extends PDFFormFillerBase {\n protected async saveToFile(pdfBytes: string, fileName: string) {\n const blob = new Blob([pdfBytes], { type: 'application/pdf' });\n const link = document.createElement('a');\n link.href = URL.createObjectURL(blob);\n link.download = fileName;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n URL.revokeObjectURL(link.href);\n }\n}","import { IPDFFormAdapter } from './adapter';\nexport class PDFLibAdapter implements IPDFFormAdapter {\n constructor (private pdfLibrary: any) { }\n public async fillForm(template: any, data: any) {\n const { PDFDocument, PDFTextField, PDFCheckBox, PDFRadioGroup, PDFDropdown } = this.pdfLibrary;\n const pdfDoc = await PDFDocument.load(template);\n const form = pdfDoc.getForm();\n const fields = form.getFields();\n fields.forEach((field: any) => {\n const fieldName = field.getName();\n const value = data[fieldName];\n if(value === null || value === undefined) return;\n if (field instanceof PDFTextField) {\n field.setText(value);\n }\n else if (field instanceof PDFCheckBox) {\n if (value) field.check(); else field.uncheck();\n }\n else if (field instanceof PDFRadioGroup || field instanceof PDFDropdown) {\n field.select(value.toString());\n }\n });\n\n return await pdfDoc.save();\n }\n}\n","import { IPDFFormAdapter } from './adapter';\nexport class PDFJSAdapter implements IPDFFormAdapter {\n constructor (private pdfLibrary: any) { }\n public async fillForm(template: any, data: any) {\n const pdfjsLib = this.pdfLibrary;\n const doc = await pdfjsLib.getDocument(template).promise;\n const numPages = doc.numPages;\n\n // Process all pages\n for (let pageNum = 1; pageNum <= numPages; pageNum++) {\n const page = await doc.getPage(pageNum);\n const annotations = await page.getAnnotations();\n annotations.forEach((field: any) => {\n if (field.fieldType == undefined) return;\n const value = data[field.fieldName];\n if (value) {\n if(field.radioButton && field.buttonValue != value) {\n return;\n }\n doc.annotationStorage.setValue(field.id, { value });\n }\n });\n }\n\n return await doc.saveDocument();\n }\n}\n"],"names":["FormMap"],"mappings":";;;;;;;;;;;;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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AAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,QAAwB,CAAA;;;;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;QACL,OAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC;AAAD,CAAA,CAAA,CAAA,CAAA,CAAC,CAAA,CAzBD,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * For license information please see pdf-form-filler.min.js.LICENSE.txt
3
+ */
4
+
5
+ (function(d,h){typeof exports=="object"&&typeof module<"u"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(d=typeof globalThis<"u"?globalThis:d||self,h(d.PDFFormFiller={}))})(this,(function(d){"use strict";var h=function(a,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},h(a,t)};function m(a,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");h(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function y(a,t,e,n){function i(r){return r instanceof e?r:new e(function(u){u(r)})}return new(e||(e=Promise))(function(r,u){function c(s){try{o(n.next(s))}catch(f){u(f)}}function l(s){try{o(n.throw(s))}catch(f){u(f)}}function o(s){s.done?r(s.value):i(s.value).then(c,l)}o((n=n.apply(a,t||[])).next())})}function v(a,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,i,r,u=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(o){return function(s){return l([o,s])}}function l(o){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,o[0]&&(e=0)),e;)try{if(n=1,i&&(r=o[0]&2?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[o[0]&2,r.value]),o[0]){case 0:case 1:r=o;break;case 4:return e.label++,{value:o[1],done:!1};case 5:e.label++,i=o[1],o=[0];continue;case 7:o=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){e.label=o[1];break}if(o[0]===6&&e.label<r[1]){e.label=r[1],r=o;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(o);break}r[2]&&e.ops.pop(),e.trys.pop();continue}o=t.call(a,e)}catch(s){o=[6,s],i=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var D=(function(){function a(t){this.map=t,this.res={}}return a.prototype.mapDataRecursive=function(t,e){var n=this;if(t!=null){if(typeof t!="object"){if(Array.isArray(e)){e.forEach(function(i){n.mapDataRecursive(t,i)});return}typeof e!="object"?this.res[e]=t:this.res[e[t].field]=e[t].value;return}if(Array.isArray(t)){t.forEach(function(i,r){n.mapDataRecursive(i,Array.isArray(e)?e[r]:e)});return}Object.keys(t).forEach(function(i){n.mapDataRecursive(t[i],e[i])})}},a.prototype.mapData=function(t){return this.res={},this.mapDataRecursive(t,this.map),this.res},a})(),w=(function(){function a(t){t&&(this.data=t.data,this.fieldMap=t.fieldMap,this.pdfTemplate=t.pdfTemplate,this.pdfLibraryAdapter=t.pdfLibraryAdapter)}return a.prototype.getPDFBytes=function(){return y(this,void 0,void 0,function(){var t,e,n;return v(this,function(i){switch(i.label){case 0:return t=new D(this.fieldMap),e=t.mapData(this.data),[4,(n=this.pdfLibraryAdapter)===null||n===void 0?void 0:n.fillForm(this.pdfTemplate,e)];case 1:return[2,i.sent()]}})})},a.prototype.fromCharCode=function(t){for(var e=[],n=65535,i=0;i<t.length;i+=n){var r=Array.prototype.slice.call(t,i,i+n);e.push(String.fromCharCode.apply(null,r))}return e.join("")},a.prototype.raw=function(t){return y(this,void 0,void 0,function(){var e,n;return v(this,function(i){switch(i.label){case 0:return[4,this.getPDFBytes()];case 1:return e=i.sent(),!t||!e?[2,e]:t=="dataurlstring"?[2,"data:application/pdf;base64,"+btoa(this.fromCharCode(e))]:(n=new Blob([e],{type:"application/pdf"}),t=="blob"?[2,n]:t=="bloburl"?[2,URL.createObjectURL(n)]:[2,e])}})})},a.prototype.save=function(){return y(this,arguments,void 0,function(t){var e;return t===void 0&&(t="FilledForm.pdf"),v(this,function(n){switch(n.label){case 0:return[4,this.getPDFBytes()];case 1:return e=n.sent(),e?[4,this.saveToFile(e,t)]:[2];case 2:return n.sent(),[2]}})})},a})(),P=(function(a){m(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.saveToFile=function(e,n){return y(this,void 0,void 0,function(){var i,r;return v(this,function(u){return i=new Blob([e],{type:"application/pdf"}),r=document.createElement("a"),r.href=URL.createObjectURL(i),r.download=n,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(r.href),[2]})})},t})(w),g=(function(){function a(t){this.pdfLibrary=t}return a.prototype.fillForm=function(t,e){return y(this,void 0,void 0,function(){var n,i,r,u,c,l,o,s,f;return v(this,function(b){switch(b.label){case 0:return n=this.pdfLibrary,i=n.PDFDocument,r=n.PDFTextField,u=n.PDFCheckBox,c=n.PDFRadioGroup,l=n.PDFDropdown,[4,i.load(t)];case 1:return o=b.sent(),s=o.getForm(),f=s.getFields(),f.forEach(function(p){var L=p.getName(),F=e[L];F!=null&&(p instanceof r?p.setText(F):p instanceof u?F?p.check():p.uncheck():(p instanceof c||p instanceof l)&&p.select(F.toString()))}),[4,o.save()];case 2:return[2,b.sent()]}})})},a})(),A=(function(){function a(t){this.pdfLibrary=t}return a.prototype.fillForm=function(t,e){return y(this,void 0,void 0,function(){var n,i,r,u,c,l;return v(this,function(o){switch(o.label){case 0:return n=this.pdfLibrary,[4,n.getDocument(t).promise];case 1:i=o.sent(),r=i.numPages,u=1,o.label=2;case 2:return u<=r?[4,i.getPage(u)]:[3,6];case 3:return c=o.sent(),[4,c.getAnnotations()];case 4:l=o.sent(),l.forEach(function(s){if(s.fieldType!=null){var f=e[s.fieldName];if(f){if(s.radioButton&&s.buttonValue!=f)return;i.annotationStorage.setValue(s.id,{value:f})}}}),o.label=5;case 5:return u++,[3,2];case 6:return[4,i.saveDocument()];case 7:return[2,o.sent()]}})})},a})();d.PDFFormFiller=P,d.PDFJSAdapter=A,d.PDFLibAdapter=g}));
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * surveyjs - SurveyJS PDF library v2.5.33
3
+ * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
+ */
6
+
7
+ /*!
8
+ * tslib v2.8.1 | https://www.typescriptlang.org/
9
+ * (c) Microsoft Corp. | Released under the 0BSD license
10
+ */
@@ -0,0 +1,340 @@
1
+ /*!
2
+ * surveyjs - SurveyJS PDF library v2.5.33
3
+ * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
+ */
6
+
7
+ (function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('fs')) :
9
+ typeof define === 'function' && define.amd ? define(['exports', 'fs'], factory) :
10
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PDFFormFiller = {}, global.fs));
11
+ })(this, (function (exports, fs) { 'use strict';
12
+
13
+ /******************************************************************************
14
+ Copyright (c) Microsoft Corporation.
15
+
16
+ Permission to use, copy, modify, and/or distribute this software for any
17
+ purpose with or without fee is hereby granted.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
20
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
21
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
22
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25
+ PERFORMANCE OF THIS SOFTWARE.
26
+ ***************************************************************************** */
27
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
28
+
29
+ var extendStatics = function(d, b) {
30
+ extendStatics = Object.setPrototypeOf ||
31
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
32
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
33
+ return extendStatics(d, b);
34
+ };
35
+
36
+ function __extends(d, b) {
37
+ if (typeof b !== "function" && b !== null)
38
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
39
+ extendStatics(d, b);
40
+ function __() { this.constructor = d; }
41
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
42
+ }
43
+
44
+ function __awaiter(thisArg, _arguments, P, generator) {
45
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
46
+ return new (P || (P = Promise))(function (resolve, reject) {
47
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
48
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
49
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
50
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
51
+ });
52
+ }
53
+
54
+ function __generator(thisArg, body) {
55
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
56
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
57
+ function verb(n) { return function (v) { return step([n, v]); }; }
58
+ function step(op) {
59
+ if (f) throw new TypeError("Generator is already executing.");
60
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
61
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
62
+ if (y = 0, t) op = [op[0] & 2, t.value];
63
+ switch (op[0]) {
64
+ case 0: case 1: t = op; break;
65
+ case 4: _.label++; return { value: op[1], done: false };
66
+ case 5: _.label++; y = op[1]; op = [0]; continue;
67
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
68
+ default:
69
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
70
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
71
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
72
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
73
+ if (t[2]) _.ops.pop();
74
+ _.trys.pop(); continue;
75
+ }
76
+ op = body.call(thisArg, _);
77
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
78
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
79
+ }
80
+ }
81
+
82
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
83
+ var e = new Error(message);
84
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
85
+ };
86
+
87
+ var FormsMap = /** @class */ (function () {
88
+ function FormsMap(map) {
89
+ this.map = map;
90
+ this.res = {};
91
+ }
92
+ FormsMap.prototype.mapDataRecursive = function (data, map) {
93
+ var _this = this;
94
+ if (data === undefined || data === null)
95
+ return;
96
+ if (typeof (data) !== 'object') {
97
+ if (Array.isArray(map)) {
98
+ map.forEach(function (m) {
99
+ _this.mapDataRecursive(data, m);
100
+ });
101
+ return;
102
+ }
103
+ if (typeof (map) !== 'object') {
104
+ this.res[map] = data;
105
+ }
106
+ else {
107
+ this.res[map[data].field] = map[data].value;
108
+ }
109
+ return;
110
+ }
111
+ if (Array.isArray(data)) {
112
+ data.forEach(function (d, i) {
113
+ _this.mapDataRecursive(d, Array.isArray(map) ? map[i] : map);
114
+ });
115
+ return;
116
+ }
117
+ Object.keys(data).forEach(function (key) {
118
+ _this.mapDataRecursive(data[key], map[key]);
119
+ });
120
+ };
121
+ FormsMap.prototype.mapData = function (data) {
122
+ this.res = {};
123
+ this.mapDataRecursive(data, this.map);
124
+ return this.res;
125
+ };
126
+ return FormsMap;
127
+ }());
128
+
129
+ /**
130
+ * A base class for the `PDFFormFiller` plugin.
131
+ */
132
+ var PDFFormFillerBase = /** @class */ (function () {
133
+ function PDFFormFillerBase(options) {
134
+ if (options) {
135
+ this.data = options.data;
136
+ this.fieldMap = options.fieldMap;
137
+ this.pdfTemplate = options.pdfTemplate;
138
+ this.pdfLibraryAdapter = options.pdfLibraryAdapter;
139
+ }
140
+ }
141
+ PDFFormFillerBase.prototype.getPDFBytes = function () {
142
+ return __awaiter(this, void 0, void 0, function () {
143
+ var map, plainData;
144
+ var _a;
145
+ return __generator(this, function (_b) {
146
+ switch (_b.label) {
147
+ case 0:
148
+ map = new FormsMap(this.fieldMap);
149
+ plainData = map.mapData(this.data);
150
+ return [4 /*yield*/, ((_a = this.pdfLibraryAdapter) === null || _a === void 0 ? void 0 : _a.fillForm(this.pdfTemplate, plainData))];
151
+ case 1: return [2 /*return*/, _b.sent()];
152
+ }
153
+ });
154
+ });
155
+ };
156
+ PDFFormFillerBase.prototype.fromCharCode = function (array) {
157
+ var strings = [];
158
+ var chunkSize = 0xffff;
159
+ for (var i = 0; i < array.length; i += chunkSize) {
160
+ var chunk = Array.prototype.slice.call(array, i, i + chunkSize);
161
+ strings.push(String.fromCharCode.apply(null, chunk));
162
+ }
163
+ return strings.join('');
164
+ };
165
+ /**
166
+ * An asynchronous method that allows you to get PDF content in different formats.
167
+ * @param type *(Optional)* One of `"blob"`, `"bloburl"`, `"dataurlstring"`. Do not specify this parameter if you want to get raw PDF content as a string value.
168
+ */
169
+ PDFFormFillerBase.prototype.raw = function (type) {
170
+ return __awaiter(this, void 0, void 0, function () {
171
+ var pdfBytes, blob;
172
+ return __generator(this, function (_a) {
173
+ switch (_a.label) {
174
+ case 0: return [4 /*yield*/, this.getPDFBytes()];
175
+ case 1:
176
+ pdfBytes = _a.sent();
177
+ if (!type || !pdfBytes)
178
+ return [2 /*return*/, pdfBytes];
179
+ if (type == 'dataurlstring')
180
+ return [2 /*return*/, 'data:application/pdf;base64,' + btoa(this.fromCharCode(pdfBytes))];
181
+ blob = new Blob([pdfBytes], { type: 'application/pdf' });
182
+ if (type == 'blob')
183
+ return [2 /*return*/, blob];
184
+ if (type == 'bloburl')
185
+ return [2 /*return*/, URL.createObjectURL(blob)];
186
+ return [2 /*return*/, pdfBytes];
187
+ }
188
+ });
189
+ });
190
+ };
191
+ /**
192
+ * An asynchronous method that starts to download the filled PDF form in the web browser.
193
+ *
194
+ * [View pdf-lib Demo](https://surveyjs.io/pdf-generator/examples/map-survey-responses-to-pdf-fields-using-pdflib/ (linkStyle))
195
+ *
196
+ * [View PDF.js Demo](https://surveyjs.io/pdf-generator/examples/fill-in-pdf-form-fields-with-dynamic-survey-data-using-pdfjs/ (linkStyle))
197
+ * @param fileName *(Optional)* A file name with the ".pdf" extension. Default value: `"FilledForm.pdf"`.
198
+ */
199
+ PDFFormFillerBase.prototype.save = function () {
200
+ return __awaiter(this, arguments, void 0, function (fileName) {
201
+ var pdfBytes;
202
+ if (fileName === void 0) { fileName = 'FilledForm.pdf'; }
203
+ return __generator(this, function (_a) {
204
+ switch (_a.label) {
205
+ case 0: return [4 /*yield*/, this.getPDFBytes()];
206
+ case 1:
207
+ pdfBytes = _a.sent();
208
+ if (!pdfBytes)
209
+ return [2 /*return*/];
210
+ return [4 /*yield*/, this.saveToFile(pdfBytes, fileName)];
211
+ case 2:
212
+ _a.sent();
213
+ return [2 /*return*/];
214
+ }
215
+ });
216
+ });
217
+ };
218
+ return PDFFormFillerBase;
219
+ }());
220
+
221
+ var PDFFormFiller = /** @class */ (function (_super) {
222
+ __extends(PDFFormFiller, _super);
223
+ function PDFFormFiller() {
224
+ return _super !== null && _super.apply(this, arguments) || this;
225
+ }
226
+ PDFFormFiller.prototype.saveToFile = function (pdfBytes, fileName) {
227
+ return __awaiter(this, void 0, void 0, function () {
228
+ return __generator(this, function (_a) {
229
+ return [2 /*return*/, new Promise(function (resolve, reject) {
230
+ fs.writeFile(fileName, pdfBytes, function (err) {
231
+ if (err)
232
+ reject(err);
233
+ else
234
+ resolve();
235
+ });
236
+ })];
237
+ });
238
+ });
239
+ };
240
+ return PDFFormFiller;
241
+ }(PDFFormFillerBase));
242
+
243
+ var PDFLibAdapter = /** @class */ (function () {
244
+ function PDFLibAdapter(pdfLibrary) {
245
+ this.pdfLibrary = pdfLibrary;
246
+ }
247
+ PDFLibAdapter.prototype.fillForm = function (template, data) {
248
+ return __awaiter(this, void 0, void 0, function () {
249
+ var _a, PDFDocument, PDFTextField, PDFCheckBox, PDFRadioGroup, PDFDropdown, pdfDoc, form, fields;
250
+ return __generator(this, function (_b) {
251
+ switch (_b.label) {
252
+ case 0:
253
+ _a = this.pdfLibrary, PDFDocument = _a.PDFDocument, PDFTextField = _a.PDFTextField, PDFCheckBox = _a.PDFCheckBox, PDFRadioGroup = _a.PDFRadioGroup, PDFDropdown = _a.PDFDropdown;
254
+ return [4 /*yield*/, PDFDocument.load(template)];
255
+ case 1:
256
+ pdfDoc = _b.sent();
257
+ form = pdfDoc.getForm();
258
+ fields = form.getFields();
259
+ fields.forEach(function (field) {
260
+ var fieldName = field.getName();
261
+ var value = data[fieldName];
262
+ if (value === null || value === undefined)
263
+ return;
264
+ if (field instanceof PDFTextField) {
265
+ field.setText(value);
266
+ }
267
+ else if (field instanceof PDFCheckBox) {
268
+ if (value)
269
+ field.check();
270
+ else
271
+ field.uncheck();
272
+ }
273
+ else if (field instanceof PDFRadioGroup || field instanceof PDFDropdown) {
274
+ field.select(value.toString());
275
+ }
276
+ });
277
+ return [4 /*yield*/, pdfDoc.save()];
278
+ case 2: return [2 /*return*/, _b.sent()];
279
+ }
280
+ });
281
+ });
282
+ };
283
+ return PDFLibAdapter;
284
+ }());
285
+
286
+ var PDFJSAdapter = /** @class */ (function () {
287
+ function PDFJSAdapter(pdfLibrary) {
288
+ this.pdfLibrary = pdfLibrary;
289
+ }
290
+ PDFJSAdapter.prototype.fillForm = function (template, data) {
291
+ return __awaiter(this, void 0, void 0, function () {
292
+ var pdfjsLib, doc, numPages, pageNum, page, annotations;
293
+ return __generator(this, function (_a) {
294
+ switch (_a.label) {
295
+ case 0:
296
+ pdfjsLib = this.pdfLibrary;
297
+ return [4 /*yield*/, pdfjsLib.getDocument(template).promise];
298
+ case 1:
299
+ doc = _a.sent();
300
+ numPages = doc.numPages;
301
+ pageNum = 1;
302
+ _a.label = 2;
303
+ case 2:
304
+ if (!(pageNum <= numPages)) return [3 /*break*/, 6];
305
+ return [4 /*yield*/, doc.getPage(pageNum)];
306
+ case 3:
307
+ page = _a.sent();
308
+ return [4 /*yield*/, page.getAnnotations()];
309
+ case 4:
310
+ annotations = _a.sent();
311
+ annotations.forEach(function (field) {
312
+ if (field.fieldType == undefined)
313
+ return;
314
+ var value = data[field.fieldName];
315
+ if (value) {
316
+ if (field.radioButton && field.buttonValue != value) {
317
+ return;
318
+ }
319
+ doc.annotationStorage.setValue(field.id, { value: value });
320
+ }
321
+ });
322
+ _a.label = 5;
323
+ case 5:
324
+ pageNum++;
325
+ return [3 /*break*/, 2];
326
+ case 6: return [4 /*yield*/, doc.saveDocument()];
327
+ case 7: return [2 /*return*/, _a.sent()];
328
+ }
329
+ });
330
+ });
331
+ };
332
+ return PDFJSAdapter;
333
+ }());
334
+
335
+ exports.PDFFormFiller = PDFFormFiller;
336
+ exports.PDFJSAdapter = PDFJSAdapter;
337
+ exports.PDFLibAdapter = PDFLibAdapter;
338
+
339
+ }));
340
+ //# sourceMappingURL=pdf-form-filler.node.js.map