Tips & Tricks

How to Crop a PDF to a Specific Size in Pixels

Cropping a PDF usually involves trimming away unwanted margins, white space, or scanner edges by eye. That visual approach works for general cleanup, but when a document needs to fit a precise digital dimension measured in pixels rather than inches, the standard crop tools fall short. Pixel-based cropping is required for web graphics, social media assets, app store screenshots, and any digital display context where the output size is specified as width by height in pixels rather than as a paper dimension. Knowing how to Crop PDF pages to exact pixel dimensions ensures the result fits its intended container without unexpected scaling.

How to Crop a PDF to a Specific Size in Pixels

Why Pixels and Inches Differ in PDF Cropping

PDF page dimensions are defined in physical units, typically inches or millimeters, at a specific resolution in dots per inch. This means a PDF page that is 8.5 by 11 inches at 72 DPI has pixel dimensions of 612 by 792. The same page dimensions at 300 DPI produce pixel dimensions of 2550 by 3300. When you want to crop to a specific pixel size, you must first decide the resolution at which those pixels will map to physical dimensions. A crop target of 1200 by 628 pixels at 72 DPI produces a physical page of approximately 16.7 by 8.7 inches. The same pixel target at 150 DPI produces a physical page of 8 by 4.2 inches.

The relationship between pixels, DPI, and physical dimensions explains why cropping to exact pixels requires working backward from the desired output. Decide the intended use first. If the cropped PDF page will be exported as an image for a website header at 1920 by 480 pixels, set the DPI to 72 for screen display and calculate the physical crop dimensions accordingly. If the cropped page will be printed and scanned at 300 DPI, use that resolution for the calculation. Most PDF Pages crop operations in mainstream PDF editors use physical units for the crop box, so the DPI-to-pixel conversion is the step that connects the tool to the target.

WukongPDF

Try Crop PDF

No installation needed. Works directly in your browser.

Get Started โ†’

Cropping to Pixels Using Preview on Mac

Preview on Mac does not offer a direct pixel-based crop input, but you can achieve the result with a two-step workaround. Take a screenshot of the PDF page at the exact pixel dimensions you need. Open the PDF in Preview, zoom to the size that fills your screen, and use Command-Shift-4 to capture a selection rectangle. Before dragging, press the Spacebar to capture the window, or carefully measure the selection by watching the pixel counter that appears. After capturing the screenshot, open it in Preview, select the entire image with Command-A, and press Command-K to crop to the selection.

The screenshot method produces an image, not a PDF. To convert the cropped image back to a PDF page, open the cropped screenshot in Preview, choose File, then Export as PDF. The resulting PDF contains a single page with pixel dimensions matching the screenshot. This method is quick and requires no additional software, but it works best for one or two pages. For batch processing multiple pages to the same pixel dimensions, a PDF tool with numerical crop input is more efficient.

Setting Exact Pixel Crop Values in Adobe Acrobat

Adobe Acrobat Pro provides the most precise control over PDF crop dimensions through the Set Page Boxes dialog. Open the PDF and navigate to the page you want to crop. Open the Print Production panel and choose Set Page Boxes. In the dialog that appears, you can enter exact values for the crop box margins in points, inches, or millimeters. One point equals one seventy-second of an inch, and at 72 DPI, one point equals exactly one pixel. This one-to-one mapping at 72 DPI makes point-based crops straightforward for pixel targets.

To crop to 1200 by 628 pixels at 72 DPI, calculate the margins needed to reduce the current page size to those dimensions. If the current page is 8.5 by 11 inches, which is 612 by 792 points, you need to remove the excess to reach 1200 by 628. However, this target is larger than the page in one dimension, which means you would need to add canvas rather than crop. In practice, pixel-based cropping usually involves reducing a larger page to fit within specific pixel bounds. The PDF Export step that follows cropping converts the physical page dimensions to the final pixel output at the specified resolution.

Using a Browser-Based Tool for Pixel Cropping

Browser-based PDF tools that support numerical crop input provide a more accessible alternative to desktop software for pixel-based cropping. These tools let you enter pixel values directly in the crop dialog, with the DPI assumption usually set to 72 for screen output or 150 for print. WukongPDF and similar platforms offer crop functionality where you specify the desired dimensions, and the tool handles the conversion between pixel and physical units automatically.

When using a browser-based Crop PDF tool for pixel-specific output, verify the DPI assumption before cropping. If the tool defaults to 72 DPI but you need a 300 DPI output, your 1200 by 628 pixel crop will produce a much smaller physical page than expected. Some tools display both the pixel dimensions and the resulting physical dimensions in real time as you adjust the crop values, which eliminates the need for manual DPI calculations and reduces the chance of an incorrect output size.

Exporting the Cropped Page at the Target Resolution

After the PDF page has been cropped to the correct physical dimensions for your target pixel size, the final step is exporting it to a raster format at the correct DPI. Open the cropped PDF and choose Export or Save As, then select an image format such as PNG or JPEG. In the export settings dialog, specify the resolution. Enter the DPI that matches your earlier calculation. For web display, 72 or 96 DPI is standard. For high-resolution screens, 144 or 192 DPI produces sharper results on Retina and similar displays.

After export, open the resulting image file and check its pixel dimensions in the file properties or an image editor. If the dimensions do not match the target, adjust the export resolution and re-export. The relationship between the cropped physical page size and the export resolution determines the final pixel count. A page cropped to 16.667 by 8.722 inches exported at 72 DPI produces exactly 1200 by 628 pixels, within rounding. Small rounding differences of one or two pixels are normal and usually acceptable for digital display use.

Pixel Cropping for App Store Screenshots and Web Banners

App store listings impose strict pixel dimension requirements for screenshots and preview images. The Apple App Store requires screenshots in specific sizes for each device type, such as 1284 by 2778 pixels for iPhone 14 Pro Max screenshots. Google Play accepts screenshots with a minimum dimension of 320 pixels and a maximum of 3840 pixels, with a recommended aspect ratio of 16:9 for feature graphics. Cropping a PDF page to these exact pixel specifications before exporting as a raster image ensures the final asset meets platform requirements.

For web banners and social media headers, the pixel dimensions are equally specific. A LinkedIn company page cover image requires 1128 by 191 pixels. A Twitter header requires 1500 by 500 pixels. When a PDF contains the graphic elements for these banners, cropping to the exact pixel dimensions before export ensures the output fits the platform template without unexpected cropping or stretching. Keep a reference sheet of common platform image sizes near your workflow to avoid looking up dimensions repeatedly.

After cropping and exporting, always preview the image on the target platform. Upload it to a test account or use the platform preview tool to confirm that critical content is not obscured by profile pictures, buttons, or interface elements that overlay the banner image.

When cropping a PDF page that contains critical content near the edges, build a small margin into your pixel target to avoid accidentally trimming important visual elements. If the required output is 1200 by 628 pixels, crop the PDF to a slightly larger dimension such as 1240 by 668 and then scale the exported image down to the exact target size. The extra margin provides a buffer against imprecise crop boundaries.

Keep a record of the pixel dimensions and DPI settings used for each project, especially if you will need to reproduce the same output dimensions months later. A simple note in the project file saves the time of recalculating the DPI-to-pixel conversion. This documentation is particularly valuable in team environments where different people handle the PDF preparation and the image export steps.

For responsive web design projects where the same PDF page must serve as an image source for multiple display sizes, crop once at the largest required resolution and generate smaller versions by scaling down. A single source crop at 2400 pixels wide can produce sharp images at 1200, 800, and 400 pixels wide by scaling down, avoiding the need to recrop and re-export for each target size. The downscaled versions maintain sharpness because the scaling algorithm has more pixel data to work with than it needs.

WukongPDF

Try Crop PDF

No installation needed. Works directly in your browser.

Get Started โ†’