#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
import { lazy, useMemo } from "react";
import { Icon } from "@editor/ui/Icon";
import { useTranslation } from "react-i18next";
import { devApiLink } from "@editor/constants/links";
import { reorganizePagesOperationConfig } from "@editor/hooks/tools/reorganizePages/useReorganizePagesOperation";
import {
SubcategoryId,
ToolCategoryId,
ToolRegistry,
RegularToolRegistry,
SuperToolRegistry,
LinkToolRegistry,
} from "@editor/data/toolsTaxonomy";
import { isSuperToolId, isLinkToolId } from "@editor/types/toolId";
import {
asRegistryConfig,
lazySettings,
} from "@editor/hooks/tools/shared/toolOperationTypes";
import { adjustContrastOperationConfig } from "@editor/hooks/tools/adjustContrast/useAdjustContrastOperation";
import { getSynonyms } from "@editor/utils/toolSynonyms";
import { useProprietaryToolRegistry } from "@editor/data/useProprietaryToolRegistry";
import { classifyOperationConfig } from "@editor/hooks/tools/classify/useClassifyOperation";
import { compressOperationConfig } from "@editor/hooks/tools/compress/useCompressOperation";
import { splitOperationConfig } from "@editor/hooks/tools/split/useSplitOperation";
import { addPasswordOperationConfig } from "@editor/hooks/tools/addPassword/useAddPasswordOperation";
import { removePasswordOperationConfig } from "@editor/hooks/tools/removePassword/useRemovePasswordOperation";
import { sanitizeOperationConfig } from "@editor/hooks/tools/sanitize/useSanitizeOperation";
import { repairOperationConfig } from "@editor/hooks/tools/repair/useRepairOperation";
import { addWatermarkOperationConfig } from "@editor/hooks/tools/addWatermark/useAddWatermarkOperation";
import { addStampOperationConfig } from "@editor/components/tools/addStamp/useAddStampOperation";
import { addAttachmentsOperationConfig } from "@editor/hooks/tools/addAttachments/useAddAttachmentsOperation";
import { createPortfolioOperationConfig } from "@editor/hooks/tools/createPortfolio/useCreatePortfolioOperation";
import { unlockPdfFormsOperationConfig } from "@editor/hooks/tools/unlockPdfForms/useUnlockPdfFormsOperation";
import { autoFormDetectionOperationConfig } from "@editor/hooks/tools/autoFormDetection/useAutoFormDetectionOperation";
import { singleLargePageOperationConfig } from "@editor/hooks/tools/singleLargePage/useSingleLargePageOperation";
import { ocrOperationConfig } from "@editor/hooks/tools/ocr/useOCROperation";
import { convertOperationConfig } from "@editor/hooks/tools/convert/useConvertOperation";
import { removeCertificateSignOperationConfig } from "@editor/hooks/tools/removeCertificateSign/useRemoveCertificateSignOperation";
import { changePermissionsOperationConfig } from "@editor/hooks/tools/changePermissions/useChangePermissionsOperation";
import { certSignOperationConfig } from "@editor/hooks/tools/certSign/useCertSignOperation";
import { timestampPdfOperationConfig } from "@editor/hooks/tools/timestampPdf/useTimestampPdfOperation";
import { bookletImpositionOperationConfig } from "@editor/hooks/tools/bookletImposition/useBookletImpositionOperation";
import { mergeOperationConfig } from "@editor/hooks/tools/merge/useMergeOperation";
import { editTableOfContentsOperationConfig } from "@editor/hooks/tools/editTableOfContents/useEditTableOfContentsOperation";
import { autoRenameOperationConfig } from "@editor/hooks/tools/autoRename/useAutoRenameOperation";
import { flattenOperationConfig } from "@editor/hooks/tools/flatten/useFlattenOperation";
import { redactOperationConfig } from "@editor/hooks/tools/redact/useRedactOperation";
import { rotateOperationConfig } from "@editor/hooks/tools/rotate/useRotateOperation";
import { autoRotateOperationConfig } from "@editor/hooks/tools/autoRotate/useAutoRotateOperation";
import { changeMetadataOperationConfig } from "@editor/hooks/tools/changeMetadata/useChangeMetadataOperation";
import { signOperationConfig } from "@editor/hooks/tools/sign/useSignOperation";
import { cropOperationConfig } from "@editor/hooks/tools/crop/useCropOperation";
import { removeAnnotationsOperationConfig } from "@editor/hooks/tools/removeAnnotations/useRemoveAnnotationsOperation";
import { removeImageOperationConfig } from "@editor/hooks/tools/removeImage/useRemoveImageOperation";
import { pageLayoutOperationConfig } from "@editor/hooks/tools/pageLayout/usePageLayoutOperation";
import { extractImagesOperationConfig } from "@editor/hooks/tools/extractImages/useExtractImagesOperation";
import { replaceColorOperationConfig } from "@editor/hooks/tools/replaceColor/useReplaceColorOperation";
import { removePagesOperationConfig } from "@editor/hooks/tools/removePages/useRemovePagesOperation";
import { removeBlanksOperationConfig } from "@editor/hooks/tools/removeBlanks/useRemoveBlanksOperation";
import { overlayPdfsOperationConfig } from "@editor/hooks/tools/overlayPdfs/useOverlayPdfsOperation";
import { adjustPageScaleOperationConfig } from "@editor/hooks/tools/adjustPageScale/useAdjustPageScaleOperation";
import { scannerImageSplitOperationConfig } from "@editor/hooks/tools/scannerImageSplit/useScannerImageSplitOperation";
import { addPageNumbersOperationConfig } from "@editor/components/tools/addPageNumbers/useAddPageNumbersOperation";
import { extractPagesOperationConfig } from "@editor/hooks/tools/extractPages/useExtractPagesOperation";
import { ENDPOINTS as SPLIT_ENDPOINT_NAMES } from "@editor/constants/splitConstants";
import { ToolId } from "@editor/types/toolId";
import { CONVERT_SUPPORTED_FORMATS } from "@editor/constants/convertSupportedFornats";
const loadPdfTextEditor = () =>
import("@editor/tools/pdfTextEditor/PdfTextEditor");
export interface TranslatedToolCatalog {
allTools: ToolRegistry;
regularTools: RegularToolRegistry;
superTools: SuperToolRegistry;
linkTools: LinkToolRegistry;
}
// Hook to get the translated tool registry
export function useTranslatedToolCatalog(): TranslatedToolCatalog {
const { t } = useTranslation();
const proprietaryTools = useProprietaryToolRegistry();
return useMemo(() => {
const allTools: ToolRegistry = {
// Proprietary tools (if any)
...proprietaryTools,
// Recommended Tools in order
pdfTextEditor: {
icon: <Icon name="square-pen" size="1.5rem" />,
name: t("home.pdfTextEditor.title", "PDF Text Editor"),
component: lazy(loadPdfTextEditor),
preload: loadPdfTextEditor,
description: t(
"home.pdfTextEditor.desc",
"Review and edit text and images in PDFs with grouped text editing and PDF regeneration",
),
categoryId: ToolCategoryId.RECOMMENDED_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
maxFiles: 1,
endpoints: ["text-editor-pdf"],
synonyms: getSynonyms(t, "pdfTextEditor"),
supportsAutomate: false,
automationSettings: null,
},
multiTool: {
icon: <Icon name="rows-3" size="1.5rem" />,
name: t("home.multiTool.title", "Multi-Tool"),
component: null,
workbench: "pageEditor",
description: t(
"home.multiTool.desc",
"Use multiple tools on a single PDF document",
),
categoryId: ToolCategoryId.RECOMMENDED_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
maxFiles: -1,
endpoints: ["multi-tool"],
synonyms: getSynonyms(t, "multiTool"),
supportsAutomate: false,
automationSettings: null,
},
merge: {
icon: <Icon name="copy-plus" size="1.5rem" />,
name: t("home.merge.title", "Merge"),
component: lazy(() => import("@editor/tools/Merge")),
description: t(
"home.merge.desc",
"Merge multiple PDFs into a single document",
),
categoryId: ToolCategoryId.RECOMMENDED_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
maxFiles: -1,
endpoints: ["merge-pdfs"],
operationConfig: asRegistryConfig(mergeOperationConfig),
automationSettings: lazySettings(
() => import("@editor/components/tools/merge/MergeSettings"),
),
synonyms: getSynonyms(t, "merge"),
},
// Signing
certSign: {
icon: <Icon name="award" size="1.5rem" />,
name: t("home.certSign.title", "Certificate Sign"),
component: lazy(() => import("@editor/tools/CertSign")),
description: t(
"home.certSign.desc",
"Sign PDF documents using digital certificates",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.SIGNING,
synonyms: getSynonyms(t, "certSign"),
maxFiles: -1,
endpoints: ["cert-sign"],
operationConfig: asRegistryConfig(certSignOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/certSign/CertSignAutomationSettings"),
),
},
timestampPdf: {
icon: <Icon name="clock" size="1.5rem" />,
name: t("home.timestampPdf.title", "Timestamp PDF"),
component: lazy(() => import("@editor/tools/TimestampPdf")),
description: t(
"home.timestampPdf.desc",
"Add an RFC 3161 document timestamp to prove when your PDF existed",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.SIGNING,
maxFiles: -1,
endpoints: ["timestamp-pdf"],
operationConfig: asRegistryConfig(timestampPdfOperationConfig),
automationSettings: null,
synonyms: getSynonyms(t, "timestampPdf"),
},
sign: {
icon: <Icon name="signature" size="1.5rem" />,
name: t("home.sign.title", "Sign"),
component: lazy(() => import("@editor/tools/Sign")),
description: t(
"home.sign.desc",
"Adds signature to PDF by drawing, text or image",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.SIGNING,
endpoints: ["sign"],
operationConfig: asRegistryConfig(signOperationConfig),
automationSettings: lazySettings(
() => import("@editor/components/tools/sign/SignSettings"),
), // TODO:: not all settings shown, suggested next tools shown
synonyms: getSynonyms(t, "sign"),
supportsAutomate: false, //TODO make support Sign
},
addText: {
icon: <Icon name="type" size="1.5rem" />,
name: t("home.addText.title", "Add Text"),
component: lazy(() => import("@editor/tools/AddText")),
description: t(
"home.addText.desc",
"Add custom text anywhere in your PDF",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
endpoints: ["sign"],
operationConfig: asRegistryConfig(signOperationConfig),
automationSettings: null,
synonyms: getSynonyms(t, "addText"),
supportsAutomate: false,
},
addImage: {
icon: <Icon name="image" size="1.5rem" />,
name: t("home.addImage.title", "Add Image"),
component: lazy(() => import("@editor/tools/AddImage")),
description: t("home.addImage.desc", "Add images anywhere in your PDF"),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
endpoints: ["add-image"],
operationConfig: asRegistryConfig(signOperationConfig),
automationSettings: null,
synonyms: getSynonyms(t, "addImage"),
supportsAutomate: false,
},
annotate: {
icon: <Icon name="pencil" size="1.5rem" />,
name: t("home.annotate.title", "Annotate"),
component: lazy(() => import("@editor/tools/Annotate")),
description: t(
"home.annotate.desc",
"Highlight, draw, add notes, and shapes directly in the viewer",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
workbench: "viewer",
endpoints: ["view-pdf"],
operationConfig: asRegistryConfig(signOperationConfig),
automationSettings: null,
synonyms: getSynonyms(t, "annotate"),
supportsAutomate: false,
},
// Document Security
addPassword: {
icon: <Icon name="password" size="1.5rem" />,
name: t("home.addPassword.title", "Add Password"),
component: lazy(() => import("@editor/tools/AddPassword")),
description: t(
"home.addPassword.desc",
"Add password protection and restrictions to PDF files",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.DOCUMENT_SECURITY,
maxFiles: -1,
endpoints: ["add-password"],
operationConfig: asRegistryConfig(addPasswordOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/addPassword/AddPasswordSettings"),
),
synonyms: getSynonyms(t, "addPassword"),
},
watermark: {
icon: <Icon name="watermark" size="1.5rem" />,
name: t("home.watermark.title", "Add Watermark"),
component: lazy(() => import("@editor/tools/AddWatermark")),
maxFiles: -1,
description: t(
"home.watermark.desc",
"Add a custom watermark to your PDF document.",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.DOCUMENT_SECURITY,
endpoints: ["add-watermark"],
operationConfig: asRegistryConfig(addWatermarkOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/addWatermark/AddWatermarkSingleStepSettings"),
),
synonyms: getSynonyms(t, "watermark"),
},
addStamp: {
icon: <Icon name="stamp" size="1.5rem" />,
name: t("home.addStamp.title", "Add Stamp to PDF"),
component: lazy(() => import("@editor/tools/AddStamp")),
description: t(
"home.addStamp.desc",
"Add text or add image stamps at set locations",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.DOCUMENT_SECURITY,
synonyms: getSynonyms(t, "addStamp"),
maxFiles: -1,
endpoints: ["add-stamp"],
operationConfig: asRegistryConfig(addStampOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/addStamp/AddStampAutomationSettings"),
),
},
sanitize: {
icon: <Icon name="brush-cleaning" size="1.5rem" />,
name: t("home.sanitize.title", "Sanitize"),
component: lazy(() => import("@editor/tools/Sanitize")),
maxFiles: -1,
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.DOCUMENT_SECURITY,
description: t(
"home.sanitize.desc",
"Remove potentially harmful elements from PDF files",
),
endpoints: ["sanitize-pdf"],
operationConfig: asRegistryConfig(sanitizeOperationConfig),
automationSettings: lazySettings(
() => import("@editor/components/tools/sanitize/SanitizeSettings"),
),
synonyms: getSynonyms(t, "sanitize"),
},
flatten: {
icon: <Icon name="layers-minus" size="1.5rem" />,
name: t("home.flatten.title", "Flatten"),
component: lazy(() => import("@editor/tools/Flatten")),
description: t(
"home.flatten.desc",
"Remove all interactive elements and forms from a PDF",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.DOCUMENT_SECURITY,
maxFiles: -1,
endpoints: ["flatten"],
operationConfig: asRegistryConfig(flattenOperationConfig),
automationSettings: lazySettings(
() => import("@editor/components/tools/flatten/FlattenSettings"),
),
synonyms: getSynonyms(t, "flatten"),
},
unlockPDFForms: {
icon: <Icon name="file-lock-open" size="1.5rem" />,
name: t("home.unlockPDFForms.title", "Unlock PDF Forms"),
component: lazy(() => import("@editor/tools/UnlockPdfForms")),
description: t(
"home.unlockPDFForms.desc",
"Remove read-only property of form fields in a PDF document.",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.DOCUMENT_SECURITY,
maxFiles: -1,
endpoints: ["unlock-pdf-forms"],
operationConfig: asRegistryConfig(unlockPdfFormsOperationConfig),
synonyms: getSynonyms(t, "unlockPDFForms"),
automationSettings: null,
},
formFill: {
icon: <Icon name="form-input" size="1.5rem" />,
name: t("home.formFill.title", "Form Editor"),
component: lazy(() => import("@editor/tools/formFill/FormFill")),
description: t(
"home.formFill.desc",
"Fill, create, edit, and delete PDF form fields with a visual editor",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
workbench: "viewer" as const,
endpoints: ["form-fill"],
automationSettings: null,
supportsAutomate: false,
synonyms: [
"form",
"fill",
"fillable",
"input",
"field",
"acroform",
"edit",
"create",
"editor",
"modify",
"builder",
],
},
autoFormDetection: {
icon: <Icon name="form-scan" size="1.5rem" />,
name: t("home.autoFormDetection.title", "Auto Form Detection"),
component: lazy(
() => import("@editor/tools/autoFormDetection/AutoFormDetection"),
),
description: t(
"home.autoFormDetection.desc",
"Automatically detect form fields with AI and make your PDF fillable.",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.AUTOMATION,
maxFiles: 1,
endpoints: ["form-detection"],
unavailableMessage: t(
"home.autoFormDetection.unavailable",
"Needs the AI detection model, which isn't installed on this server. An administrator can add it under Settings > Features > AI Form Detection.",
),
operationConfig: asRegistryConfig(autoFormDetectionOperationConfig),
synonyms: [
"form",
"detect",
"fillable",
"acroform",
"ai",
"fields",
"auto",
],
automationSettings: lazySettings(
() =>
import("@editor/components/tools/autoFormDetection/AutoFormDetectionSettings"),
),
supportsAutomate: true,
},
changePermissions: {
icon: <Icon name="lock" size="1.5rem" />,
name: t("home.changePermissions.title", "Change Permissions"),
component: lazy(() => import("@editor/tools/ChangePermissions")),
description: t(
"home.changePermissions.desc",
"Change document restrictions and permissions",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.DOCUMENT_SECURITY,
maxFiles: -1,
endpoints: ["add-password"],
operationConfig: asRegistryConfig(changePermissionsOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/changePermissions/ChangePermissionsSettings"),
),
synonyms: getSynonyms(t, "changePermissions"),
},
getPdfInfo: {
icon: <Icon name="clipboard-check" size="1.5rem" />,
name: t("home.getPdfInfo.title", "Get ALL Info on PDF"),
component: lazy(() => import("@editor/tools/GetPdfInfo")),
description: t(
"home.getPdfInfo.desc",
"Grabs any and all information possible on PDFs",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.VERIFICATION,
endpoints: ["get-info-on-pdf"],
synonyms: getSynonyms(t, "getPdfInfo"),
supportsAutomate: false,
automationSettings: null,
maxFiles: 1,
},
checkAccessibility: {
icon: <Icon name="universal-access" size="1.5rem" />,
name: t("home.checkAccessibility.title", "Check PDF accessibility"),
component: lazy(() => import("@editor/tools/CheckAccessibility")),
description: t(
"home.checkAccessibility.desc",
"Score a PDF against PDF/UA and see what blocks screen readers, without changing it",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.VERIFICATION,
maxFiles: -1,
endpoints: ["accessibility-report"],
synonyms: getSynonyms(t, "checkAccessibility"),
// Reports rather than transforming the PDF, so it has no automation step.
supportsAutomate: false,
automationSettings: null,
},
validateSignature: {
icon: <Icon name="badge-check" size="1.5rem" />,
name: t("home.validateSignature.title", "Validate PDF Signature"),
component: lazy(() => import("@editor/tools/ValidateSignature")),
description: t(
"home.validateSignature.desc",
"Verify digital signatures and certificates in PDF documents",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.VERIFICATION,
maxFiles: -1,
endpoints: ["validate-signature"],
synonyms: getSynonyms(t, "validateSignature"),
// Reports on signatures rather than transforming the PDF, and its hook is
// not on the operationConfig seam, so it cannot run as an automation step.
supportsAutomate: false,
automationSettings: null,
},
// Document Review
read: {
icon: <Icon name="file-text" size="1.5rem" />,
name: t("home.read.title", "Read"),
component: null,
workbench: "viewer",
description: t(
"home.read.desc",
"View and annotate PDFs. Highlight text, draw, or insert comments for review and collaboration.",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.DOCUMENT_REVIEW,
endpoints: ["view-pdf"],
synonyms: getSynonyms(t, "read"),
supportsAutomate: false,
automationSettings: null,
},
changeMetadata: {
icon: <Icon name="clipboard-list" size="1.5rem" />,
name: t("home.changeMetadata.title", "Change Metadata"),
component: lazy(() => import("@editor/tools/ChangeMetadata")),
description: t(
"home.changeMetadata.desc",
"Change/Remove/Add metadata from a PDF document",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.DOCUMENT_REVIEW,
maxFiles: -1,
endpoints: ["update-metadata"],
operationConfig: asRegistryConfig(changeMetadataOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/changeMetadata/ChangeMetadataSingleStep"),
),
synonyms: getSynonyms(t, "changeMetadata"),
},
editTableOfContents: {
icon: <Icon name="table-of-contents" size="1.5rem" />,
name: t("home.editTableOfContents.title", "Edit Table of Contents"),
component: lazy(() => import("@editor/tools/EditTableOfContents")),
description: t(
"home.editTableOfContents.desc",
"Add or edit bookmarks and table of contents in PDF documents",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.DOCUMENT_REVIEW,
maxFiles: 1,
endpoints: ["edit-table-of-contents"],
operationConfig: asRegistryConfig(editTableOfContentsOperationConfig),
automationSettings: null,
supportsAutomate: false,
synonyms: getSynonyms(t, "editTableOfContents"),
},
// Page Formatting
crop: {
icon: <Icon name="crop" size="1.5rem" />,
name: t("home.crop.title", "Crop PDF"),
component: lazy(() => import("@editor/tools/Crop")),
description: t(
"home.crop.desc",
"Crop a PDF to reduce its size (maintains text!)",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
maxFiles: -1,
endpoints: ["crop"],
operationConfig: asRegistryConfig(cropOperationConfig),
automationSettings: lazySettings(
() => import("@editor/components/tools/crop/CropAutomationSettings"),
),
},
rotate: {
icon: <Icon name="rotate-cw" size="1.5rem" />,
name: t("home.rotate.title", "Rotate"),
component: lazy(() => import("@editor/tools/Rotate")),
description: t("home.rotate.desc", "Easily rotate your PDFs."),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
maxFiles: -1,
endpoints: ["rotate-pdf"],
operationConfig: asRegistryConfig(rotateOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/rotate/RotateAutomationSettings"),
),
synonyms: getSynonyms(t, "rotate"),
},
autoRotate: {
icon: <Icon name="rotate-cw-square" size="1.5rem" />,
name: t("home.autoRotate.title", "Auto Rotate"),
component: lazy(() => import("@editor/tools/AutoRotate")),
description: t(
"home.autoRotate.desc",
"Detect each page's orientation and rotate it upright automatically.",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
maxFiles: -1,
endpoints: ["auto-rotate-pdf"],
operationConfig: asRegistryConfig(autoRotateOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/autoRotate/AutoRotateAutomationSettings"),
),
synonyms: getSynonyms(t, "autoRotate"),
},
split: {
icon: <Icon name="scissors" size="1.5rem" />,
name: t("home.split.title", "Split"),
component: lazy(() => import("@editor/tools/Split")),
description: t("home.split.desc", "Split PDFs into multiple documents"),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
endpoints: Array.from(new Set(Object.values(SPLIT_ENDPOINT_NAMES))),
operationConfig: asRegistryConfig(splitOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/split/SplitAutomationSettings"),
),
synonyms: getSynonyms(t, "split"),
},
reorganizePages: {
icon: <Icon name="move-item-down" size="1.5rem" />,
name: t("home.reorganizePages.title", "Reorganize Pages"),
component: lazy(() => import("@editor/tools/ReorganizePages")),
description: t(
"home.reorganizePages.desc",
"Rearrange, duplicate, or delete PDF pages with visual drag-and-drop control.",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
endpoints: ["rearrange-pages"],
operationConfig: asRegistryConfig(reorganizePagesOperationConfig),
synonyms: getSynonyms(t, "reorganizePages"),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/reorganizePages/ReorganizePagesSettings"),
),
},
scalePages: {
icon: <Icon name="scan" size="1.5rem" />,
name: t("home.scalePages.title", "Adjust page size/scale"),
component: lazy(() => import("@editor/tools/AdjustPageScale")),
description: t(
"home.scalePages.desc",
"Change the size/scale of a page and/or its contents.",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
maxFiles: -1,
endpoints: ["scale-pages"],
operationConfig: asRegistryConfig(adjustPageScaleOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/adjustPageScale/AdjustPageScaleSettings"),
),
synonyms: getSynonyms(t, "scalePages"),
},
addPageNumbers: {
icon: <Icon name="file-digit" size="1.5rem" />,
name: t("home.addPageNumbers.title", "Add Page Numbers"),
component: lazy(() => import("@editor/tools/AddPageNumbers")),
description: t(
"home.addPageNumbers.desc",
"Add Page numbers throughout a document in a set location",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
automationSettings: lazySettings(
() =>
import("@editor/components/tools/addPageNumbers/AddPageNumbersAutomationSettings"),
),
maxFiles: -1,
endpoints: ["add-page-numbers"],
operationConfig: asRegistryConfig(addPageNumbersOperationConfig),
synonyms: getSynonyms(t, "addPageNumbers"),
},
pageLayout: {
icon: <Icon name="layout-dashboard" size="1.5rem" />,
name: t("home.pageLayout.title", "Multi-Page Layout"),
component: lazy(() => import("@editor/tools/PageLayout")),
description: t(
"home.pageLayout.desc",
"Merge multiple pages of a PDF document into a single page",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
maxFiles: -1,
endpoints: ["multi-page-layout"],
operationConfig: asRegistryConfig(pageLayoutOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/pageLayout/PageLayoutSettings"),
),
synonyms: getSynonyms(t, "pageLayout"),
},
bookletImposition: {
icon: <Icon name="book-open" size="1.5rem" />,
name: t("home.bookletImposition.title", "Booklet Imposition"),
component: lazy(() => import("@editor/tools/BookletImposition")),
operationConfig: asRegistryConfig(bookletImpositionOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/bookletImposition/BookletImpositionSettings"),
),
description: t(
"home.bookletImposition.desc",
"Create booklets with proper page ordering and multi-page layout for printing and binding",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
endpoints: ["booklet-imposition"],
},
pdfToSinglePage: {
icon: <Icon name="single-page" size="1.5rem" />,
name: t("home.pdfToSinglePage.title", "PDF to Single Large Page"),
component: lazy(() => import("@editor/tools/SingleLargePage")),
description: t(
"home.pdfToSinglePage.desc",
"Merges all PDF pages into one large single page",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
maxFiles: -1,
endpoints: ["pdf-to-single-page"],
operationConfig: asRegistryConfig(singleLargePageOperationConfig),
synonyms: getSynonyms(t, "pdfToSinglePage"),
automationSettings: null,
},
addAttachments: {
icon: <Icon name="paperclip" size="1.5rem" />,
name: t("home.addAttachments.title", "Manage Attachments"),
component: lazy(() => import("@editor/tools/AddAttachments")),
description: t(
"home.addAttachments.desc",
"View, add, extract, rename, or delete embedded PDF attachments",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
synonyms: getSynonyms(t, "addAttachments"),
maxFiles: 1,
endpoints: [
"add-attachments",
"batch-process-attachments",
"list-attachments",
"extract-single-attachment",
],
operationConfig: asRegistryConfig(addAttachmentsOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/addAttachments/AddAttachmentsSettings"),
),
},
createPortfolio: {
icon: <Icon name="library" size="1.5rem" />,
name: t("home.createPortfolio.title", "Create Portfolio"),
component: lazy(() => import("@editor/tools/CreatePortfolio")),
description: t(
"home.createPortfolio.desc",
"Bundle multiple files into an Adobe PDF Portfolio",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.PAGE_FORMATTING,
synonyms: getSynonyms(t, "createPortfolio"),
maxFiles: -1,
endpoints: ["create-portfolio"],
operationConfig: asRegistryConfig(createPortfolioOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/createPortfolio/CreatePortfolioSettings"),
),
},
// Extraction
extractPages: {
icon: <Icon name="upload" size="1.5rem" />,
name: t("home.extractPages.title", "Extract Pages"),
component: lazy(() => import("@editor/tools/ExtractPages")),
description: t(
"home.extractPages.desc",
"Extract specific pages from a PDF document",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.EXTRACTION,
synonyms: getSynonyms(t, "extractPages"),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/extractPages/ExtractPagesSettings"),
),
operationConfig: asRegistryConfig(extractPagesOperationConfig),
endpoints: ["rearrange-pages"],
},
extractImages: {
icon: <Icon name="images" size="1.5rem" />,
name: t("home.extractImages.title", "Extract Images"),
component: lazy(() => import("@editor/tools/ExtractImages")),
description: t(
"home.extractImages.desc",
"Extract images from PDF documents",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.EXTRACTION,
maxFiles: -1,
endpoints: ["extract-images"],
operationConfig: asRegistryConfig(extractImagesOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/extractImages/ExtractImagesSettings"),
),
synonyms: getSynonyms(t, "extractImages"),
},
// Removal
removePages: {
icon: <Icon name="trash" size="1.5rem" />,
name: t("home.removePages.title", "Remove Pages"),
component: lazy(() => import("@editor/tools/RemovePages")),
description: t(
"home.removePages.desc",
"Remove specific pages from a PDF document",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.REMOVAL,
maxFiles: 1,
endpoints: ["remove-pages"],
synonyms: getSynonyms(t, "removePages"),
operationConfig: asRegistryConfig(removePagesOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/removePages/RemovePagesSettings"),
),
},
removeBlanks: {
icon: <Icon name="file-x" size="1.5rem" />,
name: t("home.removeBlanks.title", "Remove Blank Pages"),
component: lazy(() => import("@editor/tools/RemoveBlanks")),
description: t(
"home.removeBlanks.desc",
"Remove blank pages from PDF documents",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.REMOVAL,
maxFiles: 1,
endpoints: ["remove-blanks"],
synonyms: getSynonyms(t, "removeBlanks"),
operationConfig: asRegistryConfig(removeBlanksOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/removeBlanks/RemoveBlanksSettings"),
),
},
removeAnnotations: {
icon: <Icon name="annotation-off" size="1.5rem" />,
name: t("home.removeAnnotations.title", "Remove Annotations"),
component: lazy(() => import("@editor/tools/RemoveAnnotations")),
description: t(
"home.removeAnnotations.desc",
"Remove annotations and comments from PDF documents",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.REMOVAL,
maxFiles: -1,
endpoints: ["remove-annotations"],
operationConfig: asRegistryConfig(removeAnnotationsOperationConfig),
automationSettings: null,
synonyms: getSynonyms(t, "removeAnnotations"),
},
removeImage: {
icon: <Icon name="remove-selection" size="1.5rem" />,
name: t("home.removeImage.title", "Remove Images"),
component: lazy(() => import("@editor/tools/RemoveImage")),
description: t(
"home.removeImage.desc",
"Remove all images from a PDF document",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.REMOVAL,
maxFiles: -1,
endpoints: ["remove-image-pdf"],
operationConfig: asRegistryConfig(removeImageOperationConfig),
synonyms: getSynonyms(t, "removeImage"),
automationSettings: null,
},
removePassword: {
icon: <Icon name="lock-open-password" size="1.5rem" />,
name: t("removePassword.title", "Remove Password"),
component: lazy(() => import("@editor/tools/RemovePassword")),
description: t(
"home.removePassword.desc",
"Remove the opening password, permissions password, or both.",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.REMOVAL,
endpoints: ["remove-password"],
maxFiles: -1,
operationConfig: asRegistryConfig(removePasswordOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/removePassword/RemovePasswordSettings"),
),
synonyms: getSynonyms(t, "removePassword"),
},
removeCertSign: {
icon: <Icon name="shield-off" size="1.5rem" />,
name: t("home.removeCertSign.title", "Remove Certificate Sign"),
component: lazy(() => import("@editor/tools/RemoveCertificateSign")),
description: t(
"home.removeCertSign.desc",
"Remove digital signature from PDF documents",
),
categoryId: ToolCategoryId.STANDARD_TOOLS,
subcategoryId: SubcategoryId.REMOVAL,
maxFiles: -1,
endpoints: ["remove-cert-sign"],
operationConfig: asRegistryConfig(removeCertificateSignOperationConfig),
synonyms: getSynonyms(t, "removeCertSign"),
automationSettings: null,
},
// Automation
automate: {
icon: <Icon name="automate" size="1.5rem" />,
name: t("home.automate.title", "Automate"),
component: lazy(() => import("@editor/tools/Automate")),
description: t(
"home.automate.desc",
"Build multi-step workflows by chaining together PDF actions. Ideal for recurring tasks.",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.AUTOMATION,
maxFiles: -1,
supportedFormats: CONVERT_SUPPORTED_FORMATS,
endpoints: ["automate"],
synonyms: getSynonyms(t, "automate"),
automationSettings: null,
},
autoRename: {
icon: <Icon name="whole-word" size="1.5rem" />,
name: t("home.autoRename.title", "Auto Rename PDF File"),
component: lazy(() => import("@editor/tools/AutoRename")),
maxFiles: -1,
endpoints: ["auto-rename"],
operationConfig: asRegistryConfig(autoRenameOperationConfig),
description: t(
"home.autoRename.desc",
"Automatically rename PDF files based on their content",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.AUTOMATION,
synonyms: getSynonyms(t, "autoRename"),
automationSettings: null,
},
// Advanced Formatting
adjustContrast: {
icon: <Icon name="palette" size="1.5rem" />,
name: t("home.adjustContrast.title", "Adjust Colors/Contrast"),
component: lazy(() => import("@editor/tools/AdjustContrast")),
description: t(
"home.adjustContrast.desc",
"Adjust colors and contrast of PDF documents",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.ADVANCED_FORMATTING,
maxFiles: -1,
endpoints: ["adjust-contrast"],
operationConfig: asRegistryConfig(adjustContrastOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/adjustContrast/AdjustContrastSingleStepSettings"),
),
synonyms: getSynonyms(t, "adjustContrast"),
},
repair: {
icon: <Icon name="wrench" size="1.5rem" />,
name: t("home.repair.title", "Repair"),
component: lazy(() => import("@editor/tools/Repair")),
description: t(
"home.repair.desc",
"Repair corrupted or damaged PDF files",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.ADVANCED_FORMATTING,
maxFiles: -1,
endpoints: ["repair"],
operationConfig: asRegistryConfig(repairOperationConfig),
synonyms: getSynonyms(t, "repair"),
automationSettings: null,
},
scannerImageSplit: {
icon: <Icon name="table-columns-split" size="1.5rem" />,
name: t(
"home.scannerImageSplit.title",
"Detect & Split Scanned Photos",
),
component: lazy(() => import("@editor/tools/ScannerImageSplit")),
description: t(
"home.scannerImageSplit.desc",
"Detect and split scanned photos into separate pages",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.ADVANCED_FORMATTING,
maxFiles: -1,
endpoints: ["extract-image-scans"],
operationConfig: asRegistryConfig(scannerImageSplitOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/scannerImageSplit/ScannerImageSplitSettings"),
),
synonyms: getSynonyms(t, "scannerImageSplit"),
},
overlayPdfs: {
icon: <Icon name="overlay-pages" size="1.5rem" />,
name: t("home.overlay-pdfs.title", "Overlay PDFs"),
component: lazy(() => import("@editor/tools/OverlayPdfs")),
description: t(
"home.overlay-pdfs.desc",
"Overlay one PDF on top of another",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.ADVANCED_FORMATTING,
endpoints: ["overlay-pdf"],
operationConfig: asRegistryConfig(overlayPdfsOperationConfig),
synonyms: getSynonyms(t, "overlay-pdfs"),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/overlayPdfs/OverlayPdfsSettings"),
),
},
replaceColor: {
icon: <Icon name="paint-bucket" size="1.5rem" />,
name: t("home.replaceColor.title", "Replace & Invert Color"),
component: lazy(() => import("@editor/tools/ReplaceColor")),
description: t(
"home.replaceColor.desc",
"Replace or invert colors in PDF documents",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.ADVANCED_FORMATTING,
maxFiles: -1,
endpoints: ["replace-invert-pdf"],
operationConfig: asRegistryConfig(replaceColorOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/replaceColor/ReplaceColorSettings"),
),
synonyms: getSynonyms(t, "replaceColor"),
},
// Developer Tools
showJS: {
icon: <Icon name="braces" size="1.5rem" />,
name: t("home.showJS.title", "Show JavaScript"),
component: lazy(() => import("@editor/tools/ShowJS")),
description: t(
"home.showJS.desc",
"Extract and display JavaScript code from PDF documents",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.DEVELOPER_TOOLS,
maxFiles: 1,
endpoints: ["show-javascript"],
synonyms: getSynonyms(t, "showJS"),
supportsAutomate: false,
automationSettings: null,
},
devApi: {
icon: (
<Icon
name="external-link"
size="1.5rem"
style={{ color: "var(--c-accent-fg, var(--c-primary))" }}
/>
),
name: t("home.devApi.title", "API"),
component: null,
description: t("home.devApi.desc", "Link to API documentation"),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.DEVELOPER_TOOLS,
link: devApiLink,
endpoints: ["dev-api-docs"],
synonyms: getSynonyms(t, "devApi"),
supportsAutomate: false,
automationSettings: null,
},
devFolderScanning: {
icon: (
<Icon
name="external-link"
size="1.5rem"
style={{ color: "var(--c-accent-fg, var(--c-primary))" }}
/>
),
name: t("home.devFolderScanning.title", "Automated Folder Scanning"),
component: null,
description: t(
"home.devFolderScanning.desc",
"Link to automated folder scanning guide",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.DEVELOPER_TOOLS,
link: "https://docs.stirlingpdf.com/Configuration/Folder%20Scanning/",
endpoints: ["dev-folder-scanning-docs"],
synonyms: getSynonyms(t, "devFolderScanning"),
supportsAutomate: false,
automationSettings: null,
},
devSsoGuide: {
icon: (
<Icon
name="external-link"
size="1.5rem"
style={{ color: "var(--c-accent-fg, var(--c-primary))" }}
/>
),
name: t("home.devSsoGuide.title", "SSO Guide"),
component: null,
description: t("home.devSsoGuide.desc", "Link to SSO guide"),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.DEVELOPER_TOOLS,
link: "https://docs.stirlingpdf.com/Configuration/Single%20Sign-On%20Configuration/",
endpoints: ["dev-sso-guide-docs"],
synonyms: getSynonyms(t, "devSsoGuide"),
supportsAutomate: false,
automationSettings: null,
},
devAirgapped: {
icon: (
<Icon
name="external-link"
size="1.5rem"
style={{ color: "var(--c-accent-fg, var(--c-primary))" }}
/>
),
name: t("home.devAirgapped.title", "Air-gapped Setup"),
component: null,
description: t(
"home.devAirgapped.desc",
"Link to air-gapped setup guide",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.DEVELOPER_TOOLS,
link: "https://docs.stirlingpdf.com/Paid-Offerings/#activating-your-license",
endpoints: ["dev-airgapped-docs"],
synonyms: getSynonyms(t, "devAirgapped"),
supportsAutomate: false,
automationSettings: null,
},
// Recommended Tools
compare: {
icon: <Icon name="image-compare" size="1.5rem" />,
name: t("home.compare.title", "Compare"),
component: lazy(() => import("@editor/tools/Compare")),
description: t(
"home.compare.desc",
"Compare two PDF documents and highlight differences",
),
categoryId: ToolCategoryId.RECOMMENDED_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
maxFiles: 2,
endpoints: ["compare"],
operationConfig: undefined,
automationSettings: null,
synonyms: getSynonyms(t, "compare"),
supportsAutomate: false,
},
classify: {
icon: <Icon name="tag" size="1.5rem" />,
name: t("home.classify.title", "Classify"),
// No interactive UI: this is a pipeline step, registered so a pipeline can name it.
component: null,
description: t(
"home.classify.desc",
"Identify what kind of document this is and tag it.",
),
categoryId: ToolCategoryId.ADVANCED_TOOLS,
subcategoryId: SubcategoryId.AI,
maxFiles: -1,
endpoints: ["classify-and-label"],
operationConfig: asRegistryConfig(classifyOperationConfig),
automationSettings: null,
// Pipeline-only: there is no interactive classify tool to open in the editor.
hiddenFromToolList: true,
},
compress: {
icon: <Icon name="shrink" size="1.5rem" />,
name: t("home.compress.title", "Compress"),
component: lazy(() => import("@editor/tools/Compress")),
description: t(
"home.compress.desc",
"Compress PDFs to reduce their file size.",
),
categoryId: ToolCategoryId.RECOMMENDED_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
maxFiles: -1,
endpoints: ["compress-pdf"],
operationConfig: asRegistryConfig(compressOperationConfig),
automationSettings: lazySettings(
() => import("@editor/components/tools/compress/CompressSettings"),
),
synonyms: getSynonyms(t, "compress"),
},
convert: {
icon: <Icon name="file-convert" size="1.5rem" />,
name: t("home.convert.title", "Convert"),
component: lazy(() => import("@editor/tools/Convert")),
description: t(
"home.convert.desc",
"Convert files to and from PDF format",
),
categoryId: ToolCategoryId.RECOMMENDED_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
maxFiles: -1,
supportedFormats: CONVERT_SUPPORTED_FORMATS,
endpoints: [
"pdf-to-img",
"img-to-pdf",
"pdf-to-word",
"pdf-to-presentation",
"pdf-to-text",
"pdf-to-rtf",
"pdf-to-html",
"pdf-to-xml",
"html-to-pdf",
"markdown-to-pdf",
"file-to-pdf",
"pdf-to-csv",
"pdf-to-xlsx",
"pdf-to-markdown",
"pdf-to-pdfa",
"eml-to-pdf",
"pdf-to-epub",
],
operationConfig: asRegistryConfig(convertOperationConfig),
automationSettings: lazySettings(
() => import("@editor/components/tools/convert/ConvertSettings"),
),
synonyms: getSynonyms(t, "convert"),
},
ocr: {
icon: <Icon name="scan-text" size="1.5rem" />,
name: t("home.ocr.title", "OCR"),
component: lazy(() => import("@editor/tools/OCR")),
description: t(
"home.ocr.desc",
"Extract text from scanned PDFs using Optical Character Recognition",
),
categoryId: ToolCategoryId.RECOMMENDED_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
maxFiles: -1,
endpoints: ["ocr-pdf"],
operationConfig: asRegistryConfig(ocrOperationConfig),
automationSettings: lazySettings(
() => import("@editor/components/tools/ocr/OCRSettings"),
),
synonyms: getSynonyms(t, "ocr"),
},
redact: {
icon: <Icon name="redact" size="1.5rem" />,
name: t("home.redact.title", "Redact"),
component: lazy(() => import("@editor/tools/Redact")),
description: t(
"home.redact.desc",
"Permanently remove sensitive information from PDF documents",
),
categoryId: ToolCategoryId.RECOMMENDED_TOOLS,
subcategoryId: SubcategoryId.GENERAL,
maxFiles: -1,
endpoints: ["auto-redact"],
operationConfig: asRegistryConfig(redactOperationConfig),
automationSettings: lazySettings(
() =>
import("@editor/components/tools/redact/RedactSingleStepSettings"),
),
synonyms: getSynonyms(t, "redact"),
},
};
const regularTools = {} as RegularToolRegistry;
const superTools = {} as SuperToolRegistry;
const linkTools = {} as LinkToolRegistry;
Object.entries(allTools).forEach(([key, entry]) => {
const toolId = key as ToolId;
if (isSuperToolId(toolId)) {
superTools[toolId] = entry;
} else if (isLinkToolId(toolId)) {
linkTools[toolId] = entry;
} else {
regularTools[toolId] = entry;
}
});
return {
allTools,
regularTools,
superTools,
linkTools,
};
}, [t, proprietaryTools]);
}