diff options
author | gregor herrmann <gregoa@debian.org> | 2023-12-15 21:25:55 +0100 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2023-12-15 21:25:55 +0100 |
commit | 900134cb227e50fe9047d0f48707ec7899c8c1f0 (patch) | |
tree | fe5bc6f0e7e00ccf9ad39ee858720d842bb82a1f /lib/PDF/Builder/Resource/XObject/Image/TIFF.pm | |
parent | 00c23136faf4a0a7015ba5f8daecb98fb33ba6cc (diff) | |
parent | e2f017af7599617065e54b1ad68a0ccc6afaf980 (diff) |
Update upstream source from tag 'upstream/3.026'
Update to upstream version '3.026'
with Debian dir d8536bf85ae20bcf7ac21ae3322a229ea3f49b28
Diffstat (limited to 'lib/PDF/Builder/Resource/XObject/Image/TIFF.pm')
-rw-r--r-- | lib/PDF/Builder/Resource/XObject/Image/TIFF.pm | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/lib/PDF/Builder/Resource/XObject/Image/TIFF.pm b/lib/PDF/Builder/Resource/XObject/Image/TIFF.pm index 3391b69..0e28d26 100644 --- a/lib/PDF/Builder/Resource/XObject/Image/TIFF.pm +++ b/lib/PDF/Builder/Resource/XObject/Image/TIFF.pm @@ -5,8 +5,8 @@ use base 'PDF::Builder::Resource::XObject::Image'; use strict; use warnings; -our $VERSION = '3.025'; # VERSION -our $LAST_UPDATE = '3.024'; # manually update whenever code is changed +our $VERSION = '3.026'; # VERSION +our $LAST_UPDATE = '3.026'; # manually update whenever code is changed use Compress::Zlib; @@ -21,9 +21,11 @@ PDF::Builder::Resource::XObject::Image::TIFF - TIFF image support =head1 METHODS -=over +=head2 new + + $res = PDF::Builder::Resource::XObject::Image::TIFF->new($pdf, $file, %opts) -=item $res = PDF::Builder::Resource::XObject::Image::TIFF->new($pdf, $file, %opts) +=over Returns a TIFF-image object. @@ -41,6 +43,11 @@ This is the name you can give for the TIFF image object. The default is Ixnnnn. =back +Remember that you need to use the Builder.pm method image_tiff in order to +display a TIFF file. + +=back + =cut sub new { @@ -89,7 +96,11 @@ sub new { return $self; } -=item $mode = $tif->usesLib() +=head2 usesLib + + $mode = $tif->usesLib() + +=over Returns 1 if Graphics::TIFF installed and used, 0 if not installed, or -1 if installed but not used (nouseGT option given to C<image_tiff>). @@ -100,6 +111,8 @@ advance of actually using it, in case you want to use some functionality available only in TIFF_GT. See the <PDF::Builder> LA_GT() call if you need to know in advance. +=back + =cut sub usesLib { @@ -313,7 +326,11 @@ sub read_tiff { return $self; } -=item $value = $tif->tiffTag($tag) +=head2 tiffTag + + $value = $tif->tiffTag($tag) + +=over returns the value of the internal tiff-tag. @@ -323,6 +340,8 @@ B<Useful Tags:> xRes, yRes (dpi; pixel/cm if resUnit==3) resUnit +=back + =cut sub tiffTag { @@ -330,8 +349,4 @@ sub tiffTag { return $self->{' tiff'}->{$tag}; } -=back - -=cut - 1; |