Convert PDF to PGM

Source · PDF
Target · PGM

Drop a PDF file here

or choose files from your device

Advanced options
  • Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.
  • Transparency is replaced with white by default. Change the background in Advanced options.
  • One page is converted (default: page 1). Choose another page in Advanced options.

Enable JavaScript to convert files locally.

  • In your browser
  • No upload
  • Private by design

What happens when you convert PDF to PGM?

Page rendering

One page is converted (default: page 1). Choose another page in Advanced options.

Grayscale output

Colour is converted to grayscale using linear-sRGB luminance and the sRGB transfer curve. Colour channels and transparency are not retained.

Opaque output

Transparency is replaced with white by default. Change the background in Advanced options.

Lossless sample storage

Netpbm stores these samples without compression. Reducing colour, thresholding or changing maxval can still lose information before storage; text and binary representations change the layout, not its image meaning. PGM can store its supported image samples without lossy compression. This applies after rendering and sample conversion: it does not guarantee preservation of source precision, colour space or document structure, and cannot undo earlier losses.

PDF

Source

PDF

Portable Document Format

Compression: Depends on variantTransparency: YesMetadata: Document information, XMP, ICC output intents

A fixed-page document format mixing text, vectors and raster images. Image conversion requires deliberate page rendering.

Explore PDF format →
PGM

Target

PGM

Portable Graymap

Compression: UncompressedTransparency: NoMetadata: Header, Comments

Portable Graymap: simple uncompressed raster samples for image-processing pipelines.

Explore PGM format →

Is PDF → PGM right for you?

Good choice when

  • PGM fits your delivery use: Grayscale images & masks.
  • You need a raster preview of a document page.
  • Your processing pipeline explicitly needs grayscale samples.
  • An opaque image is acceptable for your destination.

Probably not when

  • Selectable text, vector objects or document navigation must remain.
  • Colour distinctions carry information you need to retain.
  • You need cutouts or translucent edges for compositing.
  • You expect lossless encoding to restore lost details or editing structure.

PDF to PGM conversion details

Page rendering
One page is converted (default: page 1). Choose another page in Advanced options.
Grayscale output
Colour is converted to grayscale using linear-sRGB luminance and the sRGB transfer curve. Colour channels and transparency are not retained.
Opaque output
Transparency is replaced with white by default. Change the background in Advanced options.
Lossless sample storage
Netpbm stores these samples without compression. Reducing colour, thresholding or changing maxval can still lose information before storage; text and binary representations change the layout, not its image meaning. PGM can store its supported image samples without lossy compression. This applies after rendering and sample conversion: it does not guarantee preservation of source precision, colour space or document structure, and cannot undo earlier losses.
Sample precision & colour
Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.
Metadata & colour
Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.
Compression
PDF: Depends on variant → PGM: Uncompressed PDF: PDF has no single compression quality. Different streams may use lossless or lossy filters; page rasterization can remove document structure even when the resulting pixels are encoded losslessly. PGM: Netpbm stores these samples without compression. Reducing colour, thresholding or changing maxval can still lose information before storage; text and binary representations change the layout, not its image meaning.
Transparency
Transparency is replaced with white by default. Change the background in Advanced options.
Colour depth
PGM: maxval up to 65535
Multiple images
PDF: Page tree
Vector graphics
PDF: Paths & text on pages
Dimensions
One page is converted (default: page 1). Choose another page in Advanced options.
Metadata
Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.

Common questions

Is PDF conversion the same as image extraction?

One page is converted (default: page 1). Choose another page in Advanced options.

Will PGM keep the source colours?

Colour is converted to grayscale using linear-sRGB luminance and the sRGB transfer curve. Colour channels and transparency are not retained.

What happens to transparent areas?

Transparency is replaced with white by default. Change the background in Advanced options.

Are bit depth and colour values guaranteed to match?

Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.

Will metadata and colour profiles be retained?

Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.