@libpdf/core 0.0.1-beta.0 → 0.0.1-beta.4
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.md +1 -1
- package/README.md +15 -17
- package/dist/index.d.mts +1774 -267
- package/dist/index.mjs +4372 -1250
- package/dist/index.mjs.map +1 -1
- package/package.json +63 -26
package/LICENSE.md
CHANGED
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -20,20 +20,20 @@ We kept adding workarounds. A patch here for a malformed xref table. A hack ther
|
|
|
20
20
|
|
|
21
21
|
## Features
|
|
22
22
|
|
|
23
|
-
| Feature
|
|
24
|
-
|
|
25
|
-
| Parse any PDF
|
|
26
|
-
| Create PDFs
|
|
27
|
-
| Encryption
|
|
28
|
-
| Digital Signatures | Yes
|
|
29
|
-
| Form Filling
|
|
30
|
-
| Form Flattening
|
|
31
|
-
| Merge & Split
|
|
32
|
-
| Attachments
|
|
33
|
-
| Text Extraction
|
|
34
|
-
| Font Embedding
|
|
35
|
-
| Images
|
|
36
|
-
| Incremental Saves
|
|
23
|
+
| Feature | Status | Notes |
|
|
24
|
+
| ------------------ | ------ | ------------------------------------------ |
|
|
25
|
+
| Parse any PDF | Yes | Graceful fallback for malformed documents |
|
|
26
|
+
| Create PDFs | Yes | From scratch or modify existing |
|
|
27
|
+
| Encryption | Yes | RC4, AES-128, AES-256 (R2-R6) |
|
|
28
|
+
| Digital Signatures | Yes | PAdES B-B, B-T, B-LT, B-LTA |
|
|
29
|
+
| Form Filling | Yes | Text, checkbox, radio, dropdown, signature |
|
|
30
|
+
| Form Flattening | Yes | Bake fields into page content |
|
|
31
|
+
| Merge & Split | Yes | Combine or extract pages |
|
|
32
|
+
| Attachments | Yes | Embed and extract files |
|
|
33
|
+
| Text Extraction | Yes | With position information |
|
|
34
|
+
| Font Embedding | Yes | TTF/OpenType with subsetting |
|
|
35
|
+
| Images | Yes | JPEG, PNG (with alpha) |
|
|
36
|
+
| Incremental Saves | Yes | Append changes, preserve signatures |
|
|
37
37
|
|
|
38
38
|
## Installation
|
|
39
39
|
|
|
@@ -137,7 +137,7 @@ LibPDF runs everywhere:
|
|
|
137
137
|
|
|
138
138
|
### Be lenient
|
|
139
139
|
|
|
140
|
-
Real-world PDFs are messy. Export a document through three different tools and you'll get three slightly different interpretations of the spec. LibPDF prioritizes
|
|
140
|
+
Real-world PDFs are messy. Export a document through three different tools and you'll get three slightly different interpretations of the spec. LibPDF prioritizes _opening your document_ over strict compliance. When standard parsing fails, we fall back to brute-force recovery, scanning the entire file to rebuild the structure.
|
|
141
141
|
|
|
142
142
|
### Two API layers
|
|
143
143
|
|
|
@@ -180,5 +180,3 @@ bun run typecheck
|
|
|
180
180
|
[MIT](LICENSE)
|
|
181
181
|
|
|
182
182
|
The `src/fontbox/` directory is licensed under [Apache-2.0](src/fontbox/LICENSE) as it is derived from [Apache PDFBox](https://pdfbox.apache.org/).
|
|
183
|
-
|
|
184
|
-
|