PDF Crop Pages

Crop PDF pages by removing margins from edges

Remove margins from PDF pages by specifying the amount to crop from each edge.

Features:

  • Crop all pages or specific page ranges
  • Specify crop amounts for each edge (left, top, right, bottom)
  • Preserve content within the cropped area
  • Output in points (PDF standard unit)

Common Use Cases:

  • Remove scanner margins
  • Clean up document headers/footers
  • Remove page numbers
  • Standardize page sizes

Example Results

2 examples

Crop All Pages

Removes 50 points from all edges of all pages

pdf_cropped.pdf View File
View input parameters
{ "sourceFile": "/public/samples/pdf/sample.pdf", "cropLeft": 50, "cropTop": 50, "cropRight": 50, "cropBottom": 50, "pageRange": "" }

Crop Top and Bottom Only

Removes 72 points (1 inch) from top and bottom edges only

pdf_cropped.pdf View File
View input parameters
{ "sourceFile": "/public/samples/pdf/sample.pdf", "cropLeft": 0, "cropTop": 72, "cropRight": 0, "cropBottom": 72, "pageRange": "1-5" }

Click to upload file or drag and drop file here

Maximum file size: 100MB Supported formats: application/pdf

Points to crop from left edge (72 points = 1 inch)

Points to crop from top edge (72 points = 1 inch)

Points to crop from right edge (72 points = 1 inch)

Points to crop from bottom edge (72 points = 1 inch)

Specify pages to crop (e.g., 1-3,5,7-9). Leave blank to crop all pages.

Key Facts

Category
Documents & PDF
Input Types
file, number, text
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

The PDF Crop Pages tool allows you to trim margins from your PDF documents by specifying precise crop values in points for the left, top, right, and bottom edges. You can apply these adjustments to the entire document or target specific page ranges to remove unwanted borders, headers, footers, or page numbers.

When to Use

  • When scanned PDF documents contain dark margins or scanner borders that need to be cleaned up.
  • When you need to strip headers, footers, or page numbers from specific pages of a document.
  • When adjusting the page dimensions of a PDF to fit specific layout or printing requirements.

How It Works

  • Upload the PDF document you want to crop.
  • Enter the number of points to crop from the left, top, right, and bottom edges (where 72 points equal 1 inch).
  • Specify the page range to crop, or leave it blank to apply the changes to all pages.
  • Process the document to download the cropped PDF with the margins removed.

Use Cases

Removing black scanner borders from digitized book pages.
Cropping out running headers and footers from academic papers before compilation.
Trimming empty margins to make PDF text larger and easier to read on mobile screens.

Examples

1. Remove Scanner Margins from All Pages

Archivist
Background
An archivist has a scanned PDF document where every page has a 50-point black border on all sides from the scanning bed.
Problem
The black borders look unprofessional and waste printer ink.
How to Use
Upload the PDF, set the left, top, right, and bottom crop values to 50 points, and leave the page range empty.
Example Config
{
  "cropLeft": 50,
  "cropTop": 50,
  "cropRight": 50,
  "cropBottom": 50,
  "pageRange": ""
}
Outcome
A clean PDF with 50 points trimmed from all four edges across all pages, removing the scanner borders.

2. Strip Headers and Footers from Specific Pages

Academic Researcher
Background
A researcher needs to extract content from pages 1 to 5 of a journal article but wants to exclude the journal's header and footer text.
Problem
The top header and bottom footer contain metadata that interferes with their reading layout.
How to Use
Upload the article PDF, set the top crop to 72 points (1 inch) and the bottom crop to 72 points, leaving left and right at 0. Enter '1-5' in the page range field.
Example Config
{
  "cropLeft": 0,
  "cropTop": 72,
  "cropRight": 0,
  "cropBottom": 72,
  "pageRange": "1-5"
}
Outcome
A PDF where pages 1 through 5 have 1 inch trimmed from both the top and bottom, successfully removing the headers and footers.

Try with Samples

pdf, video, barcode

Related Hubs

FAQ

What unit of measurement does the tool use for cropping?

The tool uses points, which is the standard PDF unit. 72 points are equivalent to 1 inch.

Can I crop only specific pages in the PDF?

Yes, you can define a page range (such as '1-3,5') to crop only those pages, leaving the rest untouched.

Will this tool compress or reduce the quality of my PDF?

No, the tool only adjusts the page boundaries and preserves the original quality of the content within the cropped area.

What happens if I leave a crop edge value blank or at 0?

If an edge value is set to 0 or left blank, no margin will be removed from that specific side.

Is there a file size limit for the uploaded PDF?

Yes, the tool supports PDF files up to 100 MB in size.

API Documentation

Request Endpoint

POST /en/api/tools/pdf-crop-page

Request Parameters

Parameter Name Type Required Description
sourceFile file (Upload required) Yes -
cropLeft number No Points to crop from left edge (72 points = 1 inch)
cropTop number No Points to crop from top edge (72 points = 1 inch)
cropRight number No Points to crop from right edge (72 points = 1 inch)
cropBottom number No Points to crop from bottom edge (72 points = 1 inch)
pageRange text No Specify pages to crop (e.g., 1-3,5,7-9). Leave blank to crop all pages.

File type parameters need to be uploaded first via POST /upload/pdf-crop-page to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-pdf-crop-page": {
      "name": "pdf-crop-page",
      "description": "Crop PDF pages by removing margins from edges",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-crop-page",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]