line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PDF::API2::Resource::XObject; |
2
|
|
|
|
|
|
|
|
3
|
38
|
|
|
38
|
|
356
|
use base 'PDF::API2::Resource'; |
|
38
|
|
|
|
|
99
|
|
|
38
|
|
|
|
|
17127
|
|
4
|
|
|
|
|
|
|
|
5
|
38
|
|
|
38
|
|
258
|
use strict; |
|
38
|
|
|
|
|
78
|
|
|
38
|
|
|
|
|
752
|
|
6
|
38
|
|
|
38
|
|
191
|
use warnings; |
|
38
|
|
|
|
|
88
|
|
|
38
|
|
|
|
|
1429
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '2.043'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
38
|
|
|
38
|
|
238
|
use PDF::API2::Basic::PDF::Utils; |
|
38
|
|
|
|
|
83
|
|
|
38
|
|
|
|
|
7294
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 NAME |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
PDF::API2::Resource::XObject - Base class for external objects |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=over |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=item $xobject = PDF::API2::Resource::XObject->new($pdf, $name) |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Creates an XObject resource. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=cut |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub new { |
27
|
28
|
|
|
28
|
1
|
82
|
my ($class, $pdf, $name) = @_; |
28
|
28
|
|
|
|
|
143
|
my $self = $class->SUPER::new($pdf, $name); |
29
|
|
|
|
|
|
|
|
30
|
28
|
|
|
|
|
177
|
$self->type('XObject'); |
31
|
|
|
|
|
|
|
|
32
|
28
|
|
|
|
|
69
|
return $self; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=item $type = $xobject->subtype($type) |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Get or set the Subtype of the XObject resource. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub subtype { |
42
|
28
|
|
|
28
|
1
|
60
|
my $self = shift(); |
43
|
28
|
50
|
|
|
|
72
|
if (scalar @_) { |
44
|
28
|
|
|
|
|
94
|
$self->{'Subtype'} = PDFName(shift()); |
45
|
|
|
|
|
|
|
} |
46
|
28
|
|
|
|
|
107
|
return $self->{'Subtype'}->val(); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=back |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=cut |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |