line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PDF::Builder::Resource::XObject; |
2
|
|
|
|
|
|
|
|
3
|
38
|
|
|
38
|
|
306
|
use base 'PDF::Builder::Resource'; |
|
38
|
|
|
|
|
94
|
|
|
38
|
|
|
|
|
14769
|
|
4
|
|
|
|
|
|
|
|
5
|
38
|
|
|
38
|
|
231
|
use strict; |
|
38
|
|
|
|
|
70
|
|
|
38
|
|
|
|
|
611
|
|
6
|
38
|
|
|
38
|
|
169
|
use warnings; |
|
38
|
|
|
|
|
84
|
|
|
38
|
|
|
|
|
1445
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '3.024'; # VERSION |
9
|
|
|
|
|
|
|
our $LAST_UPDATE = '2.031'; # manually update whenever code is changed |
10
|
|
|
|
|
|
|
|
11
|
38
|
|
|
38
|
|
185
|
use PDF::Builder::Basic::PDF::Utils; |
|
38
|
|
|
|
|
78
|
|
|
38
|
|
|
|
|
6188
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 NAME |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
PDF::Builder::Resource::XObject - Base class for external objects |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 METHODS |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=over |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=item $xobject = PDF::Builder::Resource::XObject->new($pdf, $name) |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Creates an XObject resource. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=cut |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub new { |
28
|
27
|
|
|
27
|
1
|
64
|
my ($class, $pdf, $name) = @_; |
29
|
|
|
|
|
|
|
|
30
|
27
|
|
|
|
|
128
|
my $self = $class->SUPER::new($pdf, $name); |
31
|
|
|
|
|
|
|
|
32
|
27
|
|
|
|
|
128
|
$self->type('XObject'); |
33
|
|
|
|
|
|
|
|
34
|
27
|
|
|
|
|
60
|
return $self; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=item $type = $xobject->subtype($type) |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Get or set the Subtype of the XObject resource. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub subtype { |
44
|
27
|
|
|
27
|
1
|
43
|
my $self = shift; |
45
|
|
|
|
|
|
|
|
46
|
27
|
50
|
|
|
|
98
|
if (scalar @_) { |
47
|
27
|
|
|
|
|
67
|
$self->{'Subtype'} = PDFName(shift()); |
48
|
|
|
|
|
|
|
} |
49
|
27
|
|
|
|
|
72
|
return $self->{'Subtype'}->val(); |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=back |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |