| 1 | package PDF::Make::Extract::Word; | ||
| 2 | 53 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 53 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 53 | ▶ | use Object::Proto; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 53 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 53 | Object::Proto::define('PDF::Make::Extract::Word', | |
| 8 | 'text:Str', | ||
| 9 | 'x0:Num', | ||
| 10 | 'y0:Num', | ||
| 11 | 'x1:Num', | ||
| 12 | 'y1:Num', | ||
| 13 | 'font_size:Num', | ||
| 14 | 'mcid', | ||
| 15 | 'tag', | ||
| 16 | ); | ||
| 17 | 53 | Object::Proto::import_accessors('PDF::Make::Extract::Word'); | |
| 18 | } | ||
| 19 | |||
| 20 | 1 | ▶ | sub bbox { (x0($_[0]), y0($_[0]), x1($_[0]), y1($_[0])) } |
|
Subroutine
bbox: called CC=1 SCAR=0.0
Pod
documented
| |||
| 21 | 2 | ▶ | sub width { x1($_[0]) - x0($_[0]) } |
|
Subroutine
width: called CC=1 SCAR=0.0
Pod
documented
| |||
| 22 | 2 | ▶ | sub height { y1($_[0]) - y0($_[0]) } |
|
Subroutine
height: called CC=1 SCAR=0.0
Pod
documented
| |||
| 23 | |||
| 24 | 53 | 1; | |
| 25 | |||
| 26 | __END__ | ||