Transform Documents $5.00 / 1,000 calls

PDF margins

What this tool does

This tool removes unwanted white space from the edges of your PDF pages or resizes the visible page area to fit specific content. It is useful for cleaning up scanned documents that have large borders or for preparing files that need to fit exactly into a defined print area. By adjusting the margins, you make the document look more professional and reduce file size slightly.

When to use it

  • Removing scanner borders or shadows from digitized paper documents.
  • Reducing white margins to fit content more efficiently on a page.
  • Setting a precise print area by defining exact top, bottom, left, and right limits.

What to expect

The platform returns a link to your new PDF file where the page boundaries have been adjusted. The content inside the chosen area remains unchanged, but any information outside the new boundaries is hidden from view.

Limitations

  • Measurements are in points (72 points equal one inch), which may require conversion from millimeters or inches.
  • Only specific pages can be cropped if you select them; all other pages remain exactly as they were.

When it fails

  • The PDF file is encrypted or protected with a password.
  • The file is not a valid PDF document.
  • The specified page range does not match the actual pages in the document.
  • The cropping area is empty or the coordinates are set in an invalid order.

Good to know

  • If you need half an inch of margin, use the number 36 for that side.
  • You can specify a precise rectangle using four numbers for the top-left and bottom-right corners.

Input data

Parameter Required Example Description
url No https://public.downloads.uproc.io/samples/sample.pdf Public URL of the file to process.
pages No 1-3 List the page numbers to crop, such as 1-3 or 1,5.
top No 36 Enter the top margin size in points.
bottom No 36 Enter the bottom margin size in points.
left No 36 Enter the left margin size in points.
right No 36 Enter the right margin size in points.
box No 0,0,595,842 Enter four numbers separated by commas to define the exact crop rectangle.

Output data

Field Description
result The value is always False for this tool in its current state.