@ai-matrx/office 0.8.52 → 0.8.53
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/CHANGELOG.md +6 -1
- package/dist/pdf-model.d.cts +4 -1
- package/dist/pdf-model.d.ts +4 -1
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.cjs.map +1 -1
- package/dist/pdf.d.cts +4 -1
- package/dist/pdf.d.ts +4 -1
- package/dist/pdf.js +1 -1
- package/dist/pdf.js.map +1 -1
- package/package.json +5 -5
package/dist/pdf.d.cts
CHANGED
|
@@ -161,8 +161,11 @@ type PdfRunRequest = {
|
|
|
161
161
|
} | {
|
|
162
162
|
tool: "compress";
|
|
163
163
|
level: 1 | 2 | 3 | 4 | 5;
|
|
164
|
-
}
|
|
164
|
+
}
|
|
165
|
+
/** `pages`: the 1-based pages the person asked for in the Pages field (the host must read only these). */
|
|
166
|
+
| {
|
|
165
167
|
tool: "extract-text";
|
|
168
|
+
pages: number[];
|
|
166
169
|
} | {
|
|
167
170
|
tool: "extract-tables";
|
|
168
171
|
pages: number[];
|
package/dist/pdf.d.ts
CHANGED
|
@@ -161,8 +161,11 @@ type PdfRunRequest = {
|
|
|
161
161
|
} | {
|
|
162
162
|
tool: "compress";
|
|
163
163
|
level: 1 | 2 | 3 | 4 | 5;
|
|
164
|
-
}
|
|
164
|
+
}
|
|
165
|
+
/** `pages`: the 1-based pages the person asked for in the Pages field (the host must read only these). */
|
|
166
|
+
| {
|
|
165
167
|
tool: "extract-text";
|
|
168
|
+
pages: number[];
|
|
166
169
|
} | {
|
|
167
170
|
tool: "extract-tables";
|
|
168
171
|
pages: number[];
|
package/dist/pdf.js
CHANGED
|
@@ -352,7 +352,7 @@ function ToolPanel(p) {
|
|
|
352
352
|
body = /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
353
353
|
rangeField,
|
|
354
354
|
/* @__PURE__ */ jsxs2("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
355
|
-
/* @__PURE__ */ jsx2(Button, { variant: "outline", disabled: p.busy || !p.online, onClick: () => p.onRun({ tool: "extract-text" }), children: "Get text" }),
|
|
355
|
+
/* @__PURE__ */ jsx2(Button, { variant: "outline", disabled: p.busy || !p.online || !parsed.valid, onClick: () => p.onRun({ tool: "extract-text", pages: parsed.pages }), children: "Get text" }),
|
|
356
356
|
/* @__PURE__ */ jsx2(Button, { variant: "outline", disabled: p.busy || !p.online || !parsed.valid, onClick: () => p.onRun({ tool: "extract-tables", pages: parsed.pages }), children: "Get tables" })
|
|
357
357
|
] })
|
|
358
358
|
] });
|