@digipair/skill-pdf 0.122.2 → 0.124.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.
@@ -10,11 +10,7 @@
10
10
  "paths": {
11
11
  "/fillForm": {
12
12
  "post": {
13
- "tags": [
14
- "service",
15
- "web",
16
- "spatial"
17
- ],
13
+ "tags": ["service"],
18
14
  "summary": "Remplir un formulaire de PDF",
19
15
  "description": "Remplit un formulaire de PDF avec les valeurs spécifiées.",
20
16
  "parameters": [
@@ -65,11 +61,7 @@
65
61
  },
66
62
  "/getFields": {
67
63
  "post": {
68
- "tags": [
69
- "service",
70
- "web",
71
- "spatial"
72
- ],
64
+ "tags": ["service"],
73
65
  "summary": "Extraire les champs d'un PDF",
74
66
  "description": "Extrait les champs d'un formulaire de PDF.",
75
67
  "parameters": [
@@ -111,11 +103,7 @@
111
103
  },
112
104
  "/getSize": {
113
105
  "post": {
114
- "tags": [
115
- "service",
116
- "web",
117
- "spatial"
118
- ],
106
+ "tags": ["service"],
119
107
  "summary": "Nombre de page d'un PDF",
120
108
  "description": "Retourne le nombre de page PDF.",
121
109
  "parameters": [
@@ -145,9 +133,41 @@
145
133
  }
146
134
  }
147
135
  }
136
+ },
137
+ "/getText": {
138
+ "post": {
139
+ "tags": ["service"],
140
+ "summary": "Texte d'un PDF",
141
+ "description": "Retourne le texte du PDF.",
142
+ "parameters": [
143
+ {
144
+ "name": "file",
145
+ "summary": "Fichier",
146
+ "required": true,
147
+ "description": "Fichier PDF à analyser",
148
+ "schema": {
149
+ "type": "string"
150
+ }
151
+ }
152
+ ],
153
+ "x-events": [],
154
+ "responses": {
155
+ "200": {
156
+ "description": "Texte du PDF récupéré avec succès",
157
+ "content": {
158
+ "application/json": {
159
+ "schema": {
160
+ "type": "object",
161
+ "description": "Texte extrait du document PDF organisé par page"
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
148
168
  }
149
169
  },
150
170
  "components": {
151
171
  "schemas": {}
152
172
  }
153
- }
173
+ }
package/dist/schema.json CHANGED
@@ -10,11 +10,7 @@
10
10
  "paths": {
11
11
  "/fillForm": {
12
12
  "post": {
13
- "tags": [
14
- "service",
15
- "web",
16
- "spatial"
17
- ],
13
+ "tags": ["service"],
18
14
  "summary": "Fill out a PDF form",
19
15
  "description": "Fills out a PDF form with the specified values.",
20
16
  "parameters": [
@@ -65,11 +61,7 @@
65
61
  },
66
62
  "/getFields": {
67
63
  "post": {
68
- "tags": [
69
- "service",
70
- "web",
71
- "spatial"
72
- ],
64
+ "tags": ["service"],
73
65
  "summary": "Extract fields from a PDF",
74
66
  "description": "Extracts fields from a PDF form.",
75
67
  "parameters": [
@@ -111,11 +103,7 @@
111
103
  },
112
104
  "/getSize": {
113
105
  "post": {
114
- "tags": [
115
- "service",
116
- "web",
117
- "spatial"
118
- ],
106
+ "tags": ["service"],
119
107
  "summary": "Number of pages in a PDF",
120
108
  "description": "Returns the number of pages in a PDF.",
121
109
  "parameters": [
@@ -145,9 +133,41 @@
145
133
  }
146
134
  }
147
135
  }
136
+ },
137
+ "/getText": {
138
+ "post": {
139
+ "tags": ["service"],
140
+ "summary": "Text from a PDF",
141
+ "description": "Returns the text from a PDF.",
142
+ "parameters": [
143
+ {
144
+ "name": "file",
145
+ "summary": "File",
146
+ "required": true,
147
+ "description": "PDF file to analyze",
148
+ "schema": {
149
+ "type": "string"
150
+ }
151
+ }
152
+ ],
153
+ "x-events": [],
154
+ "responses": {
155
+ "200": {
156
+ "description": "PDF text retrieved successfully",
157
+ "content": {
158
+ "application/json": {
159
+ "schema": {
160
+ "type": "object",
161
+ "description": "Text extracted from the PDF document organized by page"
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
148
168
  }
149
169
  },
150
170
  "components": {
151
171
  "schemas": {}
152
172
  }
153
- }
173
+ }
@@ -2,4 +2,5 @@ import { PinsSettings } from '@digipair/engine';
2
2
  export declare const fillForm: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<string>;
3
3
  export declare const getFields: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
4
4
  export declare const getSize: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<number>;
5
+ export declare const getText: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<import("pdf-parse").TextResult>;
5
6
  //# sourceMappingURL=skill-pdf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skill-pdf.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-pdf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAoGhD,eAAO,MAAM,QAAQ,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,oBACtB,CAAC;AAE/D,eAAO,MAAM,SAAS,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACtB,CAAC;AAEhE,eAAO,MAAM,OAAO,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,oBACtB,CAAC"}
1
+ {"version":3,"file":"skill-pdf.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-pdf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA+GhD,eAAO,MAAM,QAAQ,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,oBACtB,CAAC;AAE/D,eAAO,MAAM,SAAS,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACtB,CAAC;AAEhE,eAAO,MAAM,OAAO,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,oBACtB,CAAC;AAE9D,eAAO,MAAM,OAAO,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,4CACtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-pdf",
3
- "version": "0.122.2",
3
+ "version": "0.124.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",