GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CAM::PDF::PAGETEXT (3)

.ds Aq ’

NAME

CAM::PDF::PageText - Extract text from PDF page tree

CONTENTS

SYNOPSIS



   my $pdf = CAM::PDF->new($filename);
   my $pageone_tree = $pdf->getPageContentTree(1);
   print CAM::PDF::PageText->render($pageone_tree);



DESCRIPTION

This module attempts to extract sequential text from a PDF page. This is not a robust process, as PDF text is graphically laid out in arbitrary order. This module uses a few heuristics to try to guess what text goes next to what other text, but may be fooled easily by, say, subscripts, non-horizontal text, changes in font, form fields etc.

All those disclaimers aside, it is useful for a quick dump of text from a simple PDF file.

LICENSE

Same as CAM::PDF

FUNCTIONS

$pkg->render($pagetree)
$pkg->render($pagetree, $verbose) Turn a page content tree into a string. This is a class method that should be called like:



   CAM::PDF::PageText->render($pagetree);



AUTHOR

See CAM::PDF
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CAM::PDF::PAGETEXT (3) 2013-08-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.