diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 1843b27..3dda156 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,11 +4,10 @@
-
+
+
+
-
-
-
@@ -494,15 +493,7 @@
-
-
-
-
- 1742960931740
-
-
-
- 1742960931740
+
@@ -888,7 +879,15 @@
1752071147050
-
+
+
+ 1752079671580
+
+
+
+ 1752079671580
+
+
@@ -935,7 +934,6 @@
-
@@ -960,7 +958,8 @@
-
+
+
false
diff --git a/src/pages/tools/pdf/editor/index.tsx b/src/pages/tools/pdf/editor/index.tsx
new file mode 100644
index 0000000..aafba85
--- /dev/null
+++ b/src/pages/tools/pdf/editor/index.tsx
@@ -0,0 +1,59 @@
+import React, { useState } from 'react';
+import { Box } from '@mui/material';
+import ToolPdfInput from '@components/input/ToolPdfInput';
+import ToolContent from '@components/ToolContent';
+import { ToolComponentProps } from '@tools/defineTool';
+import { EmbedPDF } from '@simplepdf/react-embed-pdf';
+
+export default function PdfEditor({ title }: ToolComponentProps) {
+ const [input, setInput] = useState(null);
+ const [pdfUrl, setPdfUrl] = useState(null);
+
+ const onFileChange = (file: File | null) => {
+ if (file) {
+ setInput(file);
+ const url = URL.createObjectURL(file);
+ setPdfUrl(url);
+ } else {
+ setInput(null);
+ setPdfUrl(null);
+ }
+ };
+
+ return (
+
+ {pdfUrl ? (
+
+
+
+ ) : (
+
+ )}
+ >
+ }
+ toolInfo={{
+ title: 'PDF Editor',
+ description:
+ 'Edit, annotate, highlight, fill forms, and export your PDFs entirely in the browser. Add text, drawings, signatures, and more to your PDF documents with this powerful online editor.'
+ }}
+ compute={() => {
+ /* no background compute required */
+ }}
+ />
+ );
+}
diff --git a/src/pages/tools/pdf/editor/meta.ts b/src/pages/tools/pdf/editor/meta.ts
new file mode 100644
index 0000000..7967ba6
--- /dev/null
+++ b/src/pages/tools/pdf/editor/meta.ts
@@ -0,0 +1,27 @@
+import { defineTool } from '@tools/defineTool';
+import { lazy } from 'react';
+
+export const tool = defineTool('pdf', {
+ name: 'PDF Editor',
+ path: 'editor',
+ icon: 'mdi:file-document-edit',
+ description:
+ 'Advanced PDF editor with annotation, form-fill, highlight, and export capabilities. Edit your PDFs directly in the browser with professional-grade tools including text insertion, drawing, highlighting, signing and form filling.',
+ shortDescription: 'Edit PDFs with advanced annotation and editing tools',
+ keywords: [
+ 'pdf',
+ 'editor',
+ 'edit',
+ 'annotate',
+ 'highlight',
+ 'form',
+ 'fill',
+ 'text',
+ 'drawing',
+ 'signature',
+ 'export',
+ 'annotation',
+ 'markup'
+ ],
+ component: lazy(() => import('./index'))
+});
diff --git a/src/pages/tools/pdf/index.ts b/src/pages/tools/pdf/index.ts
index c2c1012..6c3e03f 100644
--- a/src/pages/tools/pdf/index.ts
+++ b/src/pages/tools/pdf/index.ts
@@ -9,12 +9,12 @@ import { meta as pdfToEpub } from './pdf-to-epub/meta';
import { tool as pdfEditor } from './editor/meta';
export const pdfTools: DefinedTool[] = [
+ pdfEditor,
splitPdfMeta,
pdfRotatePdf,
compressPdfTool,
protectPdfTool,
mergePdf,
pdfToEpub,
- pdfPdfToPng,
- pdfEditor
+ pdfPdfToPng
];