@namahapdf/core 0.1.0

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.
package/LICENSE ADDED
@@ -0,0 +1,16 @@
1
+ NamahaPDF SDK License (Proprietary)
2
+
3
+ Copyright (c) 2026 NamahaPDF. All rights reserved.
4
+
5
+ This software (the "SDK") is licensed, not sold. Use of the SDK in any application
6
+ requires a valid commercial license key issued by NamahaPDF. Without a valid key the
7
+ SDK operates in a restricted, watermarked evaluation mode and may not be used in
8
+ production.
9
+
10
+ You may NOT, except to the extent permitted by your commercial license agreement:
11
+ remove, disable, or circumvent the license enforcement or watermarking; redistribute,
12
+ sublicense, or resell the SDK; or use the SDK beyond the scope (domains, seats,
13
+ features, term) granted by your license.
14
+
15
+ THE SDK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. To obtain a license, see
16
+ https://namahapdf.com/sdk.
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # @namahapdf/core
2
+
3
+ Headless, in-browser PDF engine — parse, render, edit, annotate, sign, redact, and fill
4
+ forms, fully on-device. The framework-agnostic core of the **NamahaPDF SDK**.
5
+
6
+ ```bash
7
+ npm i @namahapdf/core
8
+ ```
9
+
10
+ ```ts
11
+ import { PDFParser, PageRenderer, configureLicense } from '@namahapdf/core';
12
+
13
+ // Apply your license key (without one, exports are watermarked + features limited).
14
+ configureLicense({ licenseKey: 'YOUR_KEY' });
15
+
16
+ const parser = new PDFParser(bytes);
17
+ const doc = parser.parse();
18
+ // …render to a canvas, run edit operations, export.
19
+ ```
20
+
21
+ Get a license key at **namahapdf.com/sdk**. The package is free to download but is
22
+ watermarked and feature-limited until a valid key is applied.
23
+
24
+ For a ready-made React editor component, see **@namahapdf/react**.
@@ -0,0 +1 @@
1
+ var i=Object.create;var f=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var g=a=>{throw TypeError(a)};var n=(a,b,c)=>b in a?f(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c;var p=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var o=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of k(b))!m.call(a,e)&&e!==c&&f(a,e,{get:()=>b[e],enumerable:!(d=j(b,e))||d.enumerable});return a};var q=(a,b,c)=>(c=a!=null?i(l(a)):{},o(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:true}):c,a));var r=(a,b,c)=>n(a,typeof b!="symbol"?b+"":b,c),h=(a,b,c)=>b.has(a)||g("Cannot "+c);var s=(a,b,c)=>(h(a,b,"read from private field"),c?c.call(a):b.get(a)),t=(a,b,c)=>b.has(a)?g("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(a):b.set(a,c),u=(a,b,c,d)=>(h(a,b,"write to private field"),d?d.call(a,c):b.set(a,c),c);export{p as a,q as b,r as c,s as d,t as e,u as f};