Commit Graph

51 Commits

Author SHA1 Message Date
abdullahalam123
12753349ec fix(decrypt): remove redundant password trim check and empty file condition
test(pdf-tools): update expected tool count to 41
2025-10-24 23:31:25 +05:30
abdullahalam123
ba20536436 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.
2025-10-24 13:42:09 +05:30
abdullahalam123
e3468e3aaa refactor(qpdf): move initialization logic to helpers module
Consolidate qpdf initialization code into helpers.ts to avoid duplication
Improve error message for password protected PDFs
Fortify encryption logic by auto-filling owner password when empty
2025-10-24 11:37:15 +05:30
abdullahalam123
e0d3075609 feat(permissions): rewrite pdf permission handling using qpdf-wasm
- Replace PDFKit with qpdf-wasm for more reliable encryption and permission handling
- Improve error handling for password-related cases
- Update UI text and styling for better clarity
- Add support for additional permission controls (page extraction)
- Optimize performance by removing page-by-page rendering
2025-10-24 00:47:39 +05:30
abdullahalam123
466646d15b feat(pdf): implement qpdf-wasm for secure encryption/decryption
- Replace PDFKit with qpdf-wasm for more robust and secure PDF encryption/decryption
- Add support for owner password and granular permission controls
- Improve UI with better security explanations and options
2025-10-24 00:11:18 +05:30
abdullahalam123
d5a15bce78 remove(simpleanalytics): remove simple analytics for self hosted version
feat(fonts): replace google fonts with self-hosted fontsource packages

Add fontsource packages for all fonts previously loaded from Google Fonts.
Remove google fonts CDN links and update CSS to use local font imports.
This improves privacy by removing external dependencies and tracking.
2025-10-22 21:37:03 +05:30
abdullahalam123
06c36a590b chore: update config files, icons and readme
- Update FUNDING.yml formatting
- Remove debug log in sanitize-pdf.ts
- Adjust test expectation for tool count
- Standardize dependabot.yml quotes
- Update tool icons in config
- Expand and reorganize README features list
- Fix markdown formatting in README
2025-10-22 15:19:44 +05:30
abdullahalam123
de3c2fecc2 fix(sanitize-pdf): improve link removal and add named destinations cleanup
- Refactor link annotation removal logic to handle more action types (URI, Launch, GoTo, GoToR)
- Add cleanup of named destinations in catalog and names dictionary
- Improve error handling and logging throughout the sanitization process
2025-10-22 15:03:24 +05:30
abdullahalam123
b7de4bf1ed fix(sanitize-pdf): remove javascript actions, external links and font files
- Remove JavaScript actions from annotations and form fields
- Remove external links (URI, Launch, GoTo) from annotations
- Remove embedded font files while preserving font descriptors
- Add detailed error logging for each operation
2025-10-22 14:39:16 +05:30
abdullahalam123
e0e5d50240 feat(pdf-tools): add sanitize-pdf tool for comprehensive document cleaning
Implement a new PDF sanitization tool that allows users to remove various potentially sensitive elements from PDFs including metadata, annotations, JavaScript, embedded files, and more. The tool provides configurable options through checkboxes to selectively remove different types of content while preserving the core document structure.

Extract reusable utility functions from existing tools (remove-metadata, remove-annotations, flatten) to support the new sanitization feature. The tool handles edge cases gracefully and provides feedback when no changes are made.
2025-10-22 13:15:22 +05:30
Alam
11ba3fe81b Merge pull request #73 from JAINAM576/fix/watermark-reset-after-download
fix(watermark): clear uploaded PDF and watermark inputs after download
2025-10-21 22:35:49 +05:30
abdullahalam123
739dac55ee feat(file-handler): improve metadata display and XMP parsing
- Add new formatIsoDate helper for human-readable dates
- Enhance PDF info dictionary display with better null handling
- Implement structured XMP metadata parsing with formatted output
- Improve error handling for metadata processing
2025-10-21 13:38:54 +05:30
Lalit Sudhir
11c24c1ff1 enhance Simple Mode with logo branding and npm script to serve SIMPLE_MODE 2025-10-21 00:03:23 -07:00
JAINAM576
929aa7e132 style: apply Prettier formatting to project 2025-10-21 12:01:19 +05:30
JAINAM576
2b85a759af fix(watermark): clear uploaded PDF and watermark inputs after download 2025-10-21 11:57:46 +05:30
Lalit Sudhir
4e2d04fb9c optimize Simple Mode with true dead code elimination 2025-10-20 13:01:52 -07:00
abdullahalam123
0e7c53560a feat(ocr): add whitelist presets and improve UI for OCR tool
refactor: format code and improve mobile menu accessibility
style: fix whitespace and formatting in multiple files
docs: update documentation with better formatting and examples
2025-10-20 18:51:49 +05:30
Alam
48fe49ac37 Merge pull request #64 from AltuisticIsopod/main
feat: add Simple Mode for internal organizational use
2025-10-20 18:22:31 +05:30
Alam
ccb1b119c5 Merge pull request #58 from divy-11/feature/reverse-multi-pdfs
Feature/reverse multi pdfs
2025-10-20 18:14:58 +05:30
divy-11
4e6cc77a28 Removed new state pdfDocs
- update reverse-pages function
- updated test-case
2025-10-20 16:39:45 +05:30
Lalit Sudhir
f037e27535 feat: add Simple Mode for internal organizational use 2025-10-20 01:42:50 -07:00
Alam
6270080045 Merge pull request #62 from yasirakhlaque/ImprovedNavbarUI
Added hamburger Navbar
2025-10-20 11:24:47 +05:30
Yasir Akhlaque
584f2f09d1 Added hamburger navbar 2025-10-20 10:54:17 +05:30
Alam
d163bd29e6 Merge pull request #60 from ShirshenduR/Fix#20
Fix#20 : fixed the tesseract issue
2025-10-20 10:32:18 +05:30
Alam
34a00ad74a Merge pull request #49 from Utkarsh-0304/feature/searchbar_shortcut
feat: add search bar keyboard shortcut
2025-10-19 22:29:11 +05:30
Shirshendu R Tripathi
797d8f5b9d Fix#20 OCR pdf text not selectable 2025-10-19 22:13:49 +05:30
Shirshendu R Tripathi
ef7b9d0365 Fix#20 OCR pdf text not selectable 2025-10-19 22:12:51 +05:30
Utkarsh Agarwal
6bfcb30592 fix caps on focus and ios/android disabled display 2025-10-19 20:22:45 +05:30
divy-11
a605e56834 test-case added. 2025-10-19 19:50:19 +05:30
divy-11
2e2c634b41 Feat: Reverse-pages for mulit-pdf
- Added new state pdfDocs: [ ]
- Made tweaks for new state in fileHandler.ts
2025-10-19 18:36:57 +05:30
abdullahalam123
88e05e6713 feat(pdf-tools): add attachments feature to embed files in PDFs
Implement new functionality to allow embedding attachments into PDF documents. The feature includes:
- UI for selecting PDF and files to attach
- Logic to embed files while preserving metadata
- Display of attached files with size information
- Download of modified PDF with embedded files
2025-10-19 15:02:27 +05:30
abdullahalam123
8a494c0a01 feat(pdf-tools): add linearize pdf tool for web optimization
Add new linearize PDF tool that optimizes PDFs for fast web viewing using qpdf-wasm. Includes UI components, logic implementation, and test updates. The tool processes multiple PDFs and downloads them in a ZIP archive.
2025-10-19 13:59:25 +05:30
Utkarsh Agarwal
f11efe7278 Add Search bar Keyboard Shortcut 2025-10-18 23:58:41 +05:30
Alam
574ed4bd36 Merge pull request #42 from Kimforee/feature/multiple-blank-pages
feat: add support for multiple blank pages insertion
2025-10-18 17:05:34 +05:30
414nx
560d45d290 changed for loop into promise.all for parallel loading of PDFs during encryption check multifileupload, added better seperation between alert text for encrypted pdf found merge warning, changed loose equality check in encrypted pdf check logic in handlemultifileupload to strict equality 2025-10-18 02:45:24 -06:00
keshav
a48ce08d39 test: add comprehensive test suite for add-blank-page functionality 2025-10-18 13:52:43 +05:30
Keshav Singh
f8579fb291 feat: add support for multiple blank pages insertion 2025-10-18 11:14:04 +05:30
414nx
f9ef634b6f modifies handleMultiFileUpload function to check if PDFs are password protected when using merge or alternate-merge 2025-10-17 12:50:53 -06:00
abdullahalam123
cc83d7951f refactor: fix type errors and improve type safety in PDF logic
- Add proper type assertions for DOM element properties
- Remove unused md-to-pdf feature
- Fix type errors in various PDF manipulation functions
- Improve type safety for HTML element interactions
2025-10-17 15:01:48 +05:30
NanditaPatil-dotcom
f1d830d81d feat:Setup Prettier for code formatting 2025-10-17 11:37:32 +05:30
abdullahalam123
48baad9bf9 feat(pdf-tools): add alternate merge tool for mixing pdf pages
Implement new tool that allows users to combine PDFs by alternating pages from each document. Includes UI components, logic for processing, and test coverage.

- Add new tool to configuration arrays and categories
- Create UI with drag-and-drop file ordering
- Implement core logic for alternating pages
- Add comprehensive unit tests
2025-10-16 12:35:43 +05:30
abdullahalam123
39080c800f feat: add remove blank pages tool with sensitivity control
Implement new tool to detect and remove blank pages from PDFs with configurable sensitivity. Includes UI with preview functionality and comprehensive tests.
2025-10-15 23:34:53 +05:30
abdullahalam123
23e414a8be test: update expected tool count in pdf-tools test 2025-10-15 11:55:25 +05:30
abdullahalam123
bbe2283611 feat(posterize): enhance posterize tool with page navigation and auto orientation
- Add page navigation controls to preview different pages
- Implement automatic orientation detection based on page dimensions
- Improve grid overlay rendering to only show for selected pages
- Cache page snapshots for better performance
2025-10-14 14:35:38 +05:30
Nishant
ed2629e69b Fix(posterize): Resolve incorrect vertical tiling/cropping
The Y-axis calculation in the `posterize` function was backward for `pdf-lib`'s bottom-left origin, causing the resulting PDF tiles to display only the bottom portion of the content, leaving large empty crops.

Corrected the `y` coordinate calculation using `tileRowIndexFromBottom = rows - 1 - r` to properly map the top-to-bottom loop index to the required bottom-up positioning.
2025-10-14 12:20:04 +05:30
abdullahalam123
0c1351adc5 feat(pdf-tools): add posterize tool to split pages into grid
Add new posterize feature that allows splitting PDF pages into a grid of smaller pages. The tool includes:
- Configurable rows and columns
- Page size and orientation options
- Content scaling modes
- Overlap settings for assembly
- Page range selection
2025-10-14 11:40:22 +05:30
abdullahalam123
3f90e5ed8d feat(docker): add docker configuration files and update styles
refactor: convert script tags to link tags for stylesheets in HTML files
fix: update PDF download to use Uint8Array for blob creation
style: reformat CSS file for better readability and organization
2025-10-12 18:23:13 +05:30
abdullahalam123
5e72d7ca2d feat(test): add comprehensive test suite and testing infrastructure
- Add vitest configuration with coverage reporting
- Create test setup file with DOM mocks
- Add tests for state management, helpers, and tool configurations
- Update tsconfig and package.json for testing support
- Clean up unused comments and improve code style
2025-10-12 17:47:08 +05:30
abdullahalam123
3e52545a6c feat: add Code of Conduct, Contribution guidelines, and License files; update HTML files to use module stylesheets 2025-10-12 15:24:29 +05:30
abdullahalam123
47f4818e25 refactor(file-handler): replace innerHTML with DOM methods for safer rendering
refactor(form-filler): improve form field creation with DOM methods
refactor(compare-pdfs): use textContent instead of innerHTML
refactor(duplicate-organize): replace innerHTML with DOM methods
style(main): remove commented start app line
feat(config): add pdf-tools config file with tool categories
2025-10-12 12:51:54 +05:30