Skip to content

Commit

Permalink
provide get_width/height method for page dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Apr 27, 2009
1 parent 2e51a1b commit 3253a1b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Poppler.xs
Expand Up @@ -105,7 +105,21 @@ poppler_page_render (page, cr);
CODE:
OUTPUT:


MODULE = Poppler PACKAGE = Poppler::Page::Dimension

int
_PageDimension::get_width()
CODE:
RETVAL = THIS->w;
OUTPUT:
RETVAL

int
_PageDimension::get_height()
CODE:
RETVAL = THIS->h;
OUTPUT:
RETVAL



Expand Down
5 changes: 5 additions & 0 deletions test-case.pl
Expand Up @@ -17,6 +17,11 @@
my $page = $o->get_page( 0 );
warn Dumper( $page );

my $dimension = $page->get_size;
warn Dumper( $dimension );

warn $dimension->get_width;



__END__
Expand Down

0 comments on commit 3253a1b

Please sign in to comment.