@unni-craftsman/pdf-split 1.0.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.
Files changed (3) hide show
  1. package/README.md +47 -0
  2. package/dist/index.js +21303 -0
  3. package/package.json +28 -0
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # pdf-split
2
+
3
+ A simple CLI tool for extracting page ranges from PDF files.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @unni-craftsman/pdf-split
9
+ # or use with bunx/npx
10
+ bunx @unni-craftsman/pdf-split <pdf-file> <page-range>
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```bash
16
+ pdf-split <pdf-file> <page-range> [output-file]
17
+ ```
18
+
19
+ ### Examples
20
+
21
+ Extract a single page:
22
+ ```bash
23
+ pdf-split document.pdf 5
24
+ # Output: document_p5.pdf
25
+ ```
26
+
27
+ Extract a page range:
28
+ ```bash
29
+ pdf-split document.pdf 10-20
30
+ # Output: document_p10-20.pdf
31
+ ```
32
+
33
+ Specify custom output file:
34
+ ```bash
35
+ pdf-split document.pdf 1-10 output.pdf
36
+ # Output: output.pdf
37
+ ```
38
+
39
+ ## Options
40
+
41
+ - `<pdf-file>` - Path to the input PDF file
42
+ - `<page-range>` - Page number (e.g., `5`) or range (e.g., `10-20`)
43
+ - `[output-file]` - Optional custom output file path
44
+
45
+ ## License
46
+
47
+ MIT