feat(pdf-tools): add remove-restrictions tool for unlocking pdfs

Implement new feature to remove security restrictions from PDFs including password protection and digital signature limitations. The tool allows users to unlock PDFs they have legitimate access to for editing and printing purposes. Includes UI components, error handling, and legal disclaimer about proper usage.
This commit is contained in:
abdullahalam123
2025-10-24 13:42:09 +05:30
parent e3468e3aaa
commit ba20536436
10 changed files with 234 additions and 68 deletions

View File

@@ -39,6 +39,7 @@ export const singlePdfLoadTools = [
'remove-blank-pages',
'add-attachments',
'sanitize-pdf',
'remove-restrictions',
];
export const simpleTools = [

View File

@@ -401,6 +401,13 @@ export const categories = [
icon: 'ruler',
subtitle: 'Analyze page size, orientation, and units.',
},
{
id: 'remove-restrictions',
name: 'Remove Restrictions',
icon: 'unlink',
subtitle:
'Remove password protection and security restrictions associated with digitally signed PDF files.',
},
],
},
{
@@ -410,7 +417,7 @@ export const categories = [
id: 'encrypt',
name: 'Encrypt PDF',
icon: 'lock',
subtitle: 'Add a password to protect your PDF.',
subtitle: 'Lock your PDF by adding a password.',
},
{
id: 'sanitize-pdf',
@@ -422,7 +429,7 @@ export const categories = [
id: 'decrypt',
name: 'Decrypt PDF',
icon: 'unlock',
subtitle: 'Remove password protection from a PDF.',
subtitle: 'Unlock PDF by removing password protection.',
},
{
id: 'flatten',