peasy-pdf 0.2.0 → 0.2.1
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/README.md +9 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/peasy-pdf)
|
|
4
4
|
[](https://www.typescriptlang.org/)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://github.com/peasytools/peasy-pdf-js)
|
|
6
7
|
|
|
7
8
|
PDF manipulation library for Node.js -- merge, split, rotate, reorder, extract pages, and manage metadata. TypeScript-first with full type safety, powered by [pdf-lib](https://pdf-lib.js.org/) for pure-JavaScript PDF processing with zero native dependencies.
|
|
8
9
|
|
|
@@ -89,7 +90,7 @@ const parts = await split(document, "1-3,4-7,8-10");
|
|
|
89
90
|
console.log(parts.length); // 3 separate PDF byte arrays
|
|
90
91
|
```
|
|
91
92
|
|
|
92
|
-
Learn more: [
|
|
93
|
+
Learn more: [PDF Merge Tool](https://peasypdf.com/pdf/merge-pdf/) · [PDF Split Tool](https://peasypdf.com/pdf/split-pdf/) · [How to Merge PDF Files](https://peasypdf.com/guides/how-to-merge-pdf-files/)
|
|
93
94
|
|
|
94
95
|
### Rotate and Reorder
|
|
95
96
|
|
|
@@ -117,7 +118,7 @@ const reversed = await reverse(pdf);
|
|
|
117
118
|
const oddPages = await oddEven(pdf, "odd");
|
|
118
119
|
```
|
|
119
120
|
|
|
120
|
-
Learn more: [
|
|
121
|
+
Learn more: [Rotate PDF Tool](https://peasypdf.com/pdf/rotate-pdf/) · [How to Rotate PDF Pages](https://peasypdf.com/guides/how-to-rotate-pdf-pages/) · [What is a Content Stream?](https://peasypdf.com/glossary/content-stream/)
|
|
121
122
|
|
|
122
123
|
### Page Management
|
|
123
124
|
|
|
@@ -153,7 +154,7 @@ const padded = await insertBlank(pdf, undefined, {
|
|
|
153
154
|
const doubled = await duplicatePages(pdf);
|
|
154
155
|
```
|
|
155
156
|
|
|
156
|
-
Learn more: [
|
|
157
|
+
Learn more: [Extract PDF Pages](https://peasypdf.com/pdf/extract-pdf-pages/) · [Delete PDF Pages](https://peasypdf.com/pdf/delete-pdf-pages/) · [Insert Blank Pages](https://peasypdf.com/pdf/insert-blank-pages/)
|
|
157
158
|
|
|
158
159
|
### Metadata
|
|
159
160
|
|
|
@@ -186,7 +187,7 @@ const published = await setMetadata(pdf, {
|
|
|
186
187
|
const clean = await stripMetadata(pdf);
|
|
187
188
|
```
|
|
188
189
|
|
|
189
|
-
Learn more: [
|
|
190
|
+
Learn more: [Edit PDF Metadata](https://peasypdf.com/pdf/edit-pdf-metadata/) · [PDF Metadata Guide](https://peasypdf.com/guides/pdf-metadata-document-properties/) · [What is PDF?](https://peasypdf.com/glossary/pdf/)
|
|
190
191
|
|
|
191
192
|
## TypeScript Types
|
|
192
193
|
|
|
@@ -274,10 +275,10 @@ Full API documentation at [peasypdf.com/developers/](https://peasypdf.com/develo
|
|
|
274
275
|
|
|
275
276
|
## Learn More
|
|
276
277
|
|
|
277
|
-
- **Tools**: [PDF
|
|
278
|
-
- **Guides**: [PDF/
|
|
279
|
-
- **Glossary**: [PDF](https://peasypdf.com/glossary/pdf/) · [All Terms](https://peasypdf.com/glossary/)
|
|
280
|
-
- **Formats**: [PDF
|
|
278
|
+
- **Tools**: [Merge PDF](https://peasypdf.com/pdf/merge-pdf/) · [Split PDF](https://peasypdf.com/pdf/split-pdf/) · [Compress PDF](https://peasypdf.com/pdf/compress-pdf/) · [Rotate PDF](https://peasypdf.com/pdf/rotate-pdf/) · [Extract Text from PDF](https://peasypdf.com/pdf/extract-text-from-pdf/) · [All PDF Tools](https://peasypdf.com/)
|
|
279
|
+
- **Guides**: [How to Merge PDF Files](https://peasypdf.com/guides/how-to-merge-pdf-files/) · [PDF Compression Guide](https://peasypdf.com/guides/pdf-compression-guide/) · [How to Split PDF Pages](https://peasypdf.com/guides/how-to-split-pdf-pages/) · [How to Rotate PDF Pages](https://peasypdf.com/guides/how-to-rotate-pdf-pages/) · [PDF Metadata & Document Properties](https://peasypdf.com/guides/pdf-metadata-document-properties/) · [All Guides](https://peasypdf.com/guides/)
|
|
280
|
+
- **Glossary**: [PDF](https://peasypdf.com/glossary/pdf/) · [PDF/A](https://peasypdf.com/glossary/pdfa/) · [Linearization](https://peasypdf.com/glossary/linearization/) · [AcroForm](https://peasypdf.com/glossary/acroform/) · [OCR](https://peasypdf.com/glossary/ocr/) · [Watermark](https://peasypdf.com/glossary/watermark/) · [All Terms](https://peasypdf.com/glossary/)
|
|
281
|
+
- **Formats**: [PDF](https://peasypdf.com/formats/pdf/) · [DOCX](https://peasypdf.com/formats/docx/) · [RTF](https://peasypdf.com/formats/rtf/) · [All Formats](https://peasypdf.com/formats/)
|
|
281
282
|
- **API**: [REST API Docs](https://peasypdf.com/developers/) · [OpenAPI Spec](https://peasypdf.com/api/openapi.json)
|
|
282
283
|
|
|
283
284
|
## Also Available
|