NAME

PDF::Builder::Resource::XObject::Image::PNM - support routines for PNM (Portable aNy Map) image library. Inherits from PDF::Builder::Resource::XObject::Image

METHODS

$res = PDF::Builder::Resource::XObject::Image::PNM->new($pdf, $file, %opts)

Options:

'name' => 'string'

This is the name you can give for the PNM image object. The default is Nxnnnn.

'compress' => 1

This is the compression you can give for the PNM image object. Any value will cause the use of Flate compression, otherwise (compress not given), ASCIIHexDecode is used.

Returns an image in the PDF. PNM types 1 (ASCII/plain bi-level/PBM), 2 (ASCII/plain grayscale/PGM), 3 (ASCII/plain RGB/PPM), 4 (binary/raw bi-level/PBM), 5 (binary/raw grayscale/PGM), and 6 (binary/raw RGB/PPM) are supported.

For bi-level, only values 0/1 (white/black) are supported. For grayscale, the maximum sample (full white) may be anything from 1 to 65535, with 0 being full black. If the maximum sample value is 255 or smaller, one byte of raw binary data per pixel, otherwise two bytes. For RGB, each sample (full-on of that color) may be anything from 1 to 65535 (the same maximum for all three colors), with 0 being full black. If the maximum sample value is 255 or smaller, three bytes of raw binary data per pixel, otherwise six bytes.

NAVIGATION LINKS

Up (Parents)

Master Index 
PDF::Builder -- Facilitates the creation and modification of PDF files
PDF::Builder::Resource -- Base class for PDF resources. Inherit from PDF::Builder::Basic::PDF::Dict
PDF::Builder::Resource::XObject -- Base class for external objects
PDF::Builder::Resource::XObject::Image -- Base class for external raster image objects

Siblings

PDF::Builder::Resource::XObject::Image::GD -- support routines for Graphics Development image library. Inherits from PDF::Builder::Resource::XObject::Image
PDF::Builder::Resource::XObject::Image::GIF -- support routines for GIF image library. Inherits from PDF::Builder::Resource::XObject::Image
PDF::Builder::Resource::XObject::Image::JPEG -- support routines for JPEG image library. Inherits from PDF::Builder::Resource::XObject::Image
PDF::Builder::Resource::XObject::Image::PNG -- support routines for PNG image library (using pure Perl code). Inherits from PDF::Builder::Resource::XObject::Image
PDF::Builder::Resource::XObject::Image::PNG_IPL -- support routines for PNG image library (using Image::PNG::Libpng). Inherits from PDF::Builder::Resource::XObject::Image
PDF::Builder::Resource::XObject::Image::TIFF -- TIFF image support
PDF::Builder::Resource::XObject::Image::TIFF_GT -- TIFF image support (Graphics::TIFF enabled)

###