1PDF::Builder::Resource:U:sXeOrbjCeoPcnDttF:r::i:IbBmuuatigeledd:e:PrPe:Nr:GlR_eIDsPooLcu(ur3mc)een:t:aXtOibojnect::Image::PNG_IPL(3)
2
3
4

NAME

6       PDF::Builder::Resource::XObject::Image::PNG_IPL - support routines for
7       PNG image library (using Image::PNG::Libpng).  Inherits from
8       PDF::Builder::Resource::XObject::Image
9

METHODS

11       $res = PDF::Builder::Resource::XObject::Image::PNG_IPL->new($pdf,
12       $file, $name, %opts)
13       $res = PDF::Builder::Resource::XObject::Image::PNG_IPL->new($pdf,
14       $file, $name)
15       $res = PDF::Builder::Resource::XObject::Image::PNG_IPL->new($pdf,
16       $file)
17
18       Returns a PNG-image object. $pdf is the PDF object being added to,
19       $file is the input PNG file, and the optional $name of the new parent
20       image object defaults to PxAAA.
21
22       If the Image::PNG::Libpng package is installed, and its use is not
23       suppressed via the "-nouseIPL" flag (see Builder documentation for
24       "image_png"), the PNG_IPL library will be used. Otherwise, the PNG
25       library will be used instead.
26
27       opts:
28
29       -notrans => 1
30           No transparency -- ignore tRNS chunk if provided, ignore Alpha
31           channel if provided.
32
33       -force8bps => 1
34           If the PNG source is 16bps, tell the libpng library to strip down
35           all channels to 8bps, permitting use on PDF 1.4 output.
36
37   Supported PNG types
38          (0) Gray scale of depth 1, 2, 4, 8, or 16 bits per pixel (2, 4, 16, 256,
39              or 65536 gray levels). Full transparency (of one 16-bit gray value)
40              via the tRNS chunk is allowed, unless the -notrans option specifies
41              that it be ignored.
42
43          (2) RGB truecolor with 8 or 16 bits per sample (3 samples: 16.7 million
44              or 281.5 trillion colors). Full transparency (of one 3x16-bit RGB
45              color value) via the tRNS chunk is allowed, unless the -notrans
46              option specifies that it be ignored.
47
48          (3) Palette color with 1, 2, 4, or 8 bits per pixel (2, 4, 16, or 256
49              color table/palette entries). 16 bpp is not currently supported by
50              PNG or PDF. Partial transparency (8-bit Alpha) for each palette
51              entry via the tRNS chunk is allowed, unless the -notrans option
52              specifies that it be ignored (all entries fully opaque).
53
54          (4) Gray scale of depth 8 or 16 bits per pixel plus equal-sized Alpha
55              channel (256 or 65536 gray levels and 256 or 65536 levels of
56              transparency). The Alpha channel is ignored if the -notrans
57              option is given. The tRNS chunk is not permitted.
58
59          (5) B<RESERVED> for grayscale via palette + Alpha channel
60
61          (6) RGB truecolor with 8 or 16 bits per sample, with equal-sized
62              Alpha channel (256 or 65536 levels of transparency). The Alpha
63              channel is ignored if the -notrans option is given. The tRNS
64              chunk is not permitted.
65
66          (7) B<RESERVED> for truecolor via palette + Alpha channel
67
68       In all cases, 16 bits per sample forces PDF 1.5 (or higher) output,
69       unless you give the "-force8bps" option, to "strip" 16 bit samples to 8
70       bits, and permit PDF 1.4-compatible output.  The libpng.a library is
71       assuming standard "network" bit and byte ordering (Big Endian),
72       although flags might be added to change this.
73
74       The transparency chunk (tRNS) will specify one gray level entry or one
75       RGB entry to be treated as transparent (Alpha = 0). For palette color,
76       up to 256 palette entry 8-bit Alpha values are specified (256 levels of
77       transparency, from 0 = transparent to 255 = opaque).
78
79       Only a limited number of chunks are handled: IHDR, IDAT (internally),
80       PLTE, tRNS, and IEND (internally). All other chunks are ignored at this
81       time. Filters and compression applied to data is handled internally by
82       libpng.a -- there may be unsupported methods.
83
84       $mode = $png->usesLib()
85           Returns 1 if Image::PNG::Libpng installed and used, 0 if not
86           installed, or -1 if installed but not used (-nouseIPL option given
87           to "image_png").
88
89           Caution: this method can only be used after the image object has
90           been created. It can't tell you whether Image::PNG::Libpng is
91           available in advance of actually using it, in case you want to use
92           some functionality available only in PNG_IPL. See the PDF::Builder
93           LA_IPL() call if you need to know in advance.
94
95
96
97perl v5.34.0                PDF::B2u0i2l2d-e0r1:-:2R1esource::XObject::Image::PNG_IPL(3)
Impressum