-
-
15 Aug 2013 02:11:22 UTC
- Distribution: CAM-PDF
- Module version: 1.60
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (51)
- Testers (6425 / 3 / 0)
- Kwalitee
Bus factor: 0- 54.93% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (749.66KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Clotho Advanced Media, Inc.
- Dependencies
- Crypt::RC4
- Digest::MD5
- Text::PDF
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
CAM::PDF::GS - PDF graphic state
LICENSE
See CAM::PDF.
SYNOPSIS
use CAM::PDF; my $pdf = CAM::PDF->new($filename); my $contentTree = $pdf->getPageContentTree(4); my $gs = $contentTree->computeGS();
DESCRIPTION
This class is used to represent the graphic state at a point in the rendering flow of a PDF page. Much of the functionality is actually based in the parent class, CAM::PDF::GS::NoText.
Subclasses that want to do something useful with text should override the renderText() method.
CONVERSION FUNCTIONS
- $self->getCoords($node)
-
Computes device coordinates for the specified node. This implementation handles text-printing nodes, and hands all other types to the superclass.
- $self->textToUser($x, $y)
-
Convert text coordinates (
Tm
) to user coordinates. Returns the converted X and Y. - $self->textToDevice($x, $y)
-
Convert text coordinates (
Tm
) to device coordinates. Returns the converted X and Y. - $self->textLineToUser($x, $y)
-
Convert text coordinates (
Tlm
) to user coordinates. Returns the converted X and Y. - $self->textLineToDevice($x, $y)
-
Convert text coordinates (
Tlm
) to device coordinates. Returns the converted X and Y. - $self->renderText($string, $width)
-
A general method for rendering strings, from
Tj
orTJ
. This is a no-op, but subclasses may override. - $self->Tadvance($width)
-
Move the text cursor.
DATA FUNCTIONS
- $self->BT()
- $self->Tf($fontname, $fontsize)
- $self->Tstar()
- $self->Tz($scale)
- $self->Td($x, $y)
- $self->TD($x, $y)
- $self->Tj($string)
- $self->TJ($arrayref)
- $self->quote($string)
- $self->doublequote($tw, $tc, $string)
- $self->Tm($m1, $m2, $m3, $m4, $m5, $m6)
AUTHOR
See CAM::PDF
Module Install Instructions
To install CAM::PDF, copy and paste the appropriate command in to your terminal.
cpanm CAM::PDF
perl -MCPAN -e shell install CAM::PDF
For more information on module installation, please visit the detailed CPAN module installation guide.