NAME
Poppler - perl binding of poppler library.
SYNOPSIS
use Poppler;
my $path = 'file:///path/to/some.pdf';
my $o = Poppler::Document->new_from_file($path);
my $page = $o->get_page( 0 );
my $dimension = $page->get_size;
warn $dimension->get_width;
warn $dimension->get_height;
# render to cairo
use Cairo;
my $surface = Cairo::ImageSurface->create ('argb32', 100, 100);
my $cr = Cairo::Context->create ($surface);
$page->render_to_cairo( $cr );
$cr->show_page;
$surface->write_to_png ('output.png');
__END__
DESCRIPTION
Poppler::Document
Poppler::Document Blessed Object = Poppler::Document->new_from_file( STRING uri )
BOOLEAN = $poppler_document->save( STRING uri )
BOOLEAN = $poppler_document->save_a_copy( STRING uri )
INT = $poppler_document->get_n_pages()
BOOLEAN = $poppler_documnet->has_attachment()
LIST OF Poppler::Attachment = $poppler_document->get_attachments()
Poppler::Page Blessed Object = $poppler_document->get_page_by_label( STRING label );
Poppler::Page Blessed Object = $poppler_document->get_page( INT page_number );
Poppler::Page
INT = $poppler_page->get_index( )
$poppler_page->render_to_cairo( Cairo::Context cr )
Poppler::OutputDevData Blessed Object = $page->prepare_output_dev( DOUBLE scale , INT rotation , BOOLEAN transparent )
Poppler::OutputDevData
Cairo::Context = $output_dev_data->get_cairo_context()
Cairo::Surface = $output_dev_data::OutputDevData->get_cairo_surface()
SCALAR data = $output_dev_data->get_cairo_data()
SEE ALSO
github repository:
http://github.com/c9s/perl-poppler/tree/master
poppler:
http://poppler.freedesktop.org/
AUTHOR
Cornelius , cornelius.howl _at_ gmail.com
COPYRIGHT AND LICENSE
Copyright (C) 2009 by c9s (Corenlius)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.