diff --git a/frontend/public/locales/en-GB/translation.json b/frontend/public/locales/en-GB/translation.json index 117f8fbf0..e09f874ac 100644 --- a/frontend/public/locales/en-GB/translation.json +++ b/frontend/public/locales/en-GB/translation.json @@ -366,14 +366,6 @@ "title": "Convert", "desc": "Convert files between different formats" }, - "imageToPDF": { - "title": "Image to PDF", - "desc": "Convert a image (PNG, JPEG, GIF) to PDF." - }, - "pdfToImage": { - "title": "PDF to Image", - "desc": "Convert a PDF to a image. (PNG, JPEG, GIF)" - }, "pdfOrganiser": { "title": "Organise", "desc": "Remove/Rearrange pages in any order" @@ -390,14 +382,6 @@ "title": "Add Watermark", "desc": "Add a custom watermark to your PDF document." }, - "permissions": { - "title": "Change Permissions", - "desc": "Change the permissions of your PDF document" - }, - "pageRemover": { - "title": "Remove", - "desc": "Delete unwanted pages from your PDF document." - }, "removePassword": { "title": "Remove Password", "desc": "Remove password protection from your PDF document." @@ -414,10 +398,6 @@ "title": "Change Metadata", "desc": "Change/Remove/Add metadata from a PDF document" }, - "fileToPDF": { - "title": "Convert file to PDF", - "desc": "Convert nearly any file to PDF (DOCX, PNG, XLS, PPT, TXT and more)" - }, "ocr": { "title": "OCR / Cleanup scans", "desc": "Cleanup scans and detects text from images within a PDF and re-adds it as text." @@ -426,30 +406,6 @@ "title": "Extract Images", "desc": "Extracts all images from a PDF and saves them to zip" }, - "pdfToPDFA": { - "title": "PDF to PDF/A", - "desc": "Convert PDF to PDF/A for long-term storage" - }, - "PDFToWord": { - "title": "PDF to Word", - "desc": "Convert PDF to Word formats (DOC, DOCX and ODT)" - }, - "PDFToPresentation": { - "title": "PDF to Presentation", - "desc": "Convert PDF to Presentation formats (PPT, PPTX and ODP)" - }, - "PDFToText": { - "title": "PDF to RTF (Text)", - "desc": "Convert PDF to Text or RTF format" - }, - "PDFToHTML": { - "title": "PDF to HTML", - "desc": "Convert PDF to HTML format" - }, - "PDFToXML": { - "title": "PDF to XML", - "desc": "Convert PDF to XML format" - }, "ScannerImageSplit": { "title": "Detect/Split Scanned photos", "desc": "Splits multiple photos from within a photo/PDF" @@ -518,34 +474,14 @@ "title": "Auto Split Pages", "desc": "Auto Split Scanned PDF with physical scanned page splitter QR Code" }, - "sanitizePdf": { + "sanitize": { "title": "Sanitise", - "desc": "Remove scripts and other elements from PDF files" - }, - "URLToPDF": { - "title": "URL/Website To PDF", - "desc": "Converts any http(s)URL to PDF" - }, - "HTMLToPDF": { - "title": "HTML to PDF", - "desc": "Converts any HTML file or zip to PDF" - }, - "MarkdownToPDF": { - "title": "Markdown to PDF", - "desc": "Converts any Markdown file to PDF" - }, - "PDFToMarkdown": { - "title": "PDF to Markdown", - "desc": "Converts any PDF to Markdown" + "desc": "Remove potentially harmful elements from PDF files" }, "getPdfInfo": { "title": "Get ALL Info on PDF", "desc": "Grabs any and all information possible on PDFs" }, - "pageExtracter": { - "title": "Extract page(s)", - "desc": "Extracts select pages from PDF" - }, "pdfToSinglePage": { "title": "PDF to Single Large Page", "desc": "Merges all PDF pages into one large single page" @@ -562,14 +498,6 @@ "title": "Manual Redaction", "desc": "Redacts a PDF based on selected text, drawn shapes and/or selected page(s)" }, - "PDFToCSV": { - "title": "PDF to CSV", - "desc": "Extracts Tables from a PDF converting it to CSV" - }, - "split-by-size-or-count": { - "title": "Auto Split by Size/Count", - "desc": "Split a single PDF into multiple documents based on size, page count, or document count" - }, "overlay-pdfs": { "title": "Overlay PDFs", "desc": "Overlays PDFs on-top of another PDF" @@ -625,6 +553,54 @@ "reorganizePages": { "title": "Reorganize Pages", "desc": "Rearrange, duplicate, or delete PDF pages with visual drag-and-drop control." + }, + "extractPages": { + "title": "Extract Pages", + "desc": "Extract specific pages from a PDF document" + }, + "removePages": { + "title": "Remove Pages", + "desc": "Remove specific pages from a PDF document" + }, + "removeImagePdf": { + "title": "Remove Image", + "desc": "Remove images from PDF documents" + }, + "autoSizeSplitPDF": { + "title": "Auto Split by Size/Count", + "desc": "Automatically split PDFs by file size or page count" + }, + "adjust-contrast": { + "title": "Adjust Colours/Contrast", + "desc": "Adjust colours and contrast of PDF documents" + }, + "replaceColorPdf": { + "title": "Replace & Invert Colour", + "desc": "Replace or invert colours in PDF documents" + }, + "devApi": { + "title": "API", + "desc": "Link to API documentation" + }, + "devFolderScanning": { + "title": "Automated Folder Scanning", + "desc": "Link to automated folder scanning guide" + }, + "devSsoGuide": { + "title": "SSO Guide", + "desc": "Link to SSO guide" + }, + "devAirgapped": { + "title": "Air-gapped Setup", + "desc": "Link to air-gapped setup guide" + }, + "addPassword": { + "title": "Add Password", + "desc": "Add password protection and restrictions to PDF files" + }, + "changePermissions": { + "title": "Change Permissions", + "desc": "Change document restrictions and permissions" } }, "viewPdf": { diff --git a/frontend/src/components/tools/compress/CompressSettings.tsx b/frontend/src/components/tools/compress/CompressSettings.tsx index 47ff4189e..d82a99453 100644 --- a/frontend/src/components/tools/compress/CompressSettings.tsx +++ b/frontend/src/components/tools/compress/CompressSettings.tsx @@ -1,7 +1,7 @@ import React, { useState } from "react"; import { Button, Stack, Text, NumberInput, Select, Divider } from "@mantine/core"; import { useTranslation } from "react-i18next"; -import { CompressParameters } from "../../../hooks/tools/compress/useCompressOperation"; +import { CompressParameters } from "../../../hooks/tools/compress/useCompressParameters"; interface CompressSettingsProps { parameters: CompressParameters; diff --git a/frontend/src/components/tools/ocr/AdvancedOCRSettings.tsx b/frontend/src/components/tools/ocr/AdvancedOCRSettings.tsx index 3bd8c1569..a38926edf 100644 --- a/frontend/src/components/tools/ocr/AdvancedOCRSettings.tsx +++ b/frontend/src/components/tools/ocr/AdvancedOCRSettings.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Stack, Text, Checkbox } from '@mantine/core'; import { useTranslation } from 'react-i18next'; -import { OCRParameters } from './OCRSettings'; +import { OCRParameters } from '../../../hooks/tools/ocr/useOCRParameters'; export interface AdvancedOCRParameters { advancedOptions: string[]; diff --git a/frontend/src/components/tools/ocr/OCRSettings.tsx b/frontend/src/components/tools/ocr/OCRSettings.tsx index 588884889..b4d9aa766 100644 --- a/frontend/src/components/tools/ocr/OCRSettings.tsx +++ b/frontend/src/components/tools/ocr/OCRSettings.tsx @@ -2,13 +2,7 @@ import React from 'react'; import { Stack, Select, Text, Divider } from '@mantine/core'; import { useTranslation } from 'react-i18next'; import LanguagePicker from './LanguagePicker'; - -export interface OCRParameters { - languages: string[]; - ocrType: string; - ocrRenderType: string; - additionalOptions: string[]; -} +import { OCRParameters } from '../../../hooks/tools/ocr/useOCRParameters'; interface OCRSettingsProps { parameters: OCRParameters; @@ -25,7 +19,7 @@ const OCRSettings: React.FC = ({ return ( - +