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
- textToUser X, Y
-
Convert text coordinates (Tm) to user coordinates. Returns the converted X and Y.
- textToDevice X, Y
-
Convert text coordinates (Tm) to device coordinates. Returns the converted X and Y.
- textLineToUser X, Y
-
Convert text coordinates (Tlm) to user coordinates. Returns the converted X and Y.
- textLineToDevice X, Y
-
Convert text coordinates (Tlm) to device coordinates. Returns the converted X and Y.
- renderText STRING, WIDTH
-
A general method for rendering strings, from Tj or TJ. This is a no-op, but subclasses may override.
- Tadvance WIDTH
-
Move the text cursor.
DATA FUNCTIONS
- BT
- Tf FONTNAME, FONTSIZE
- Tstar
- Tz SCALE
- Td X, Y
- TD X, Y
- Tj STRING
- Tj ARRAYREF
- quote
- doublequote
- Tm M1, M2, M3, M4, M5, M6
AUTHOR
Clotho Advanced Media Inc., cpan@clotho.com