Skip to content

[Feature Request]: Support cropping specific pages instead of all pages #6216

@litonmazumder

Description

@litonmazumder

Feature Description

The current crop functionality applies the selected crop area uniformly to all pages in a PDF document. This limits usability when users need to crop only specific pages while leaving the rest unchanged.

For example, in a multi-page document, a user may need to crop only the first page (e.g., to remove margins or headers), but the current behavior forces the same crop on every page.

Why is this feature valuable?

Improves flexibility: Allows users to edit individual pages without affecting the entire document
Real-world use cases: Many PDFs contain mixed layouts where only certain pages need adjustment
Reduces workflow friction: Eliminates the need for splitting, cropping, and merging PDFs manually
Aligns with user expectations: Most modern PDF editors support page-specific operations

Suggested Implementation

Add a page selection option in the crop tool UI:
Current page
Specific page(s) (e.g., 1, 2-4)
All pages (default behavior)
Extend backend logic to:
Accept a pageRange parameter
Apply crop only to selected pages instead of iterating over all pages
Ensure:
Existing “apply to all pages” behavior remains unchanged for backward compatibility
Proper handling of page indexing (0-based vs 1-based)

Additional Information

This feature is especially useful for documents where only certain pages contain unwanted margins or formatting inconsistencies
Current workaround (split → crop → merge) is functional but inefficient for frequent use
I’d be happy to contribute to implementing this feature if it aligns with the project direction

No Duplicate of the Feature

  • I have verified that there are no existing features requests similar to my request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions