line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PDF::Builder::Resource::XObject; |
2
|
|
|
|
|
|
|
|
3
|
38
|
|
|
38
|
|
346
|
use base 'PDF::Builder::Resource'; |
|
38
|
|
|
|
|
99
|
|
|
38
|
|
|
|
|
17866
|
|
4
|
|
|
|
|
|
|
|
5
|
38
|
|
|
38
|
|
310
|
use strict; |
|
38
|
|
|
|
|
113
|
|
|
38
|
|
|
|
|
809
|
|
6
|
38
|
|
|
38
|
|
206
|
use warnings; |
|
38
|
|
|
|
|
101
|
|
|
38
|
|
|
|
|
1834
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '3.025'; # VERSION |
9
|
|
|
|
|
|
|
our $LAST_UPDATE = '2.031'; # manually update whenever code is changed |
10
|
|
|
|
|
|
|
|
11
|
38
|
|
|
38
|
|
244
|
use PDF::Builder::Basic::PDF::Utils; |
|
38
|
|
|
|
|
104
|
|
|
38
|
|
|
|
|
8384
|
|
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
|
82
|
my ($class, $pdf, $name) = @_; |
29
|
|
|
|
|
|
|
|
30
|
27
|
|
|
|
|
145
|
my $self = $class->SUPER::new($pdf, $name); |
31
|
|
|
|
|
|
|
|
32
|
27
|
|
|
|
|
164
|
$self->type('XObject'); |
33
|
|
|
|
|
|
|
|
34
|
27
|
|
|
|
|
76
|
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
|
54
|
my $self = shift; |
45
|
|
|
|
|
|
|
|
46
|
27
|
50
|
|
|
|
99
|
if (scalar @_) { |
47
|
27
|
|
|
|
|
125
|
$self->{'Subtype'} = PDFName(shift()); |
48
|
|
|
|
|
|
|
} |
49
|
27
|
|
|
|
|
94
|
return $self->{'Subtype'}->val(); |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=back |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |