PDF guides

Measure the Pixel Dimensions of PDF Bitmaps

·

Choose the PDF render resolution from the pixel dimensions your destination needs. This guide uses a cropped portrait page and a rotated landscape page to check how the PDF to BMP export preserves the displayed frame.

PDF to BMP

Render the signal sample at 150 and 72 DPI

Choose Load example or download the two-page signal PDF. Leave Pages blank and Resolution at 150 DPI. Convert PDF to BMP and open the individual page previews. Page 1 is 300 × 450 pixels and Page 2 is 450 × 300 pixels. The center of the first page contains a red square. The second page center is blue.

Choose 72 DPI and convert again. The first page is now 144 × 216 pixels, and the rotated second page is 216 × 144 pixels. The same crop and orientation apply at both resolutions.

Open PDF to BMPDownload the two-page PDF signal sample

Open the selected bitmap or the document ZIP

Enter 2 in Pages to export only the landscape page. Download selected BMP and open the image in an image viewer. The filename carries the original page number.

Download document ZIP to get one image per converted page. A 24-bit BMP stores three bytes per pixel, aligns each row to four bytes, and records the chosen resolution as pixels per meter. At 150 DPI, the 450 × 300 image uses 405,654 bytes including its 54-byte header.

Microsoft BITMAPFILEHEADER fieldsMicrosoft BITMAPINFOHEADER and row stride

Match the receiving app's requirements

A PDF page becomes opaque pixels. A bitmap can retain the appearance of letters and form controls, while PDF editing and selection depend on the original.

Use a lower DPI or fewer pages when the set is too large. Check whether the receiving app needs BMP specifically, or accepts a compressed image format for the same pixel dimensions.

Microsoft BITMAPINFOHEADER and row strideOpen PDF to BMP

Common questions

How many pixels does a two-inch page use at 150 DPI?

The result is 300 pixels wide at 150 DPI. The other dimension uses the same conversion independently.

Does the ZIP contain the original PDF?

The ZIP contains the converted page bitmaps. Keep the original PDF separately for editable or searchable content.

Sources

Put it into practice.

Related guides