NAME

CAM::PDF::GS::NoText - 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(1);

DESCRIPTION

This class is used to represent the graphic state at a point in the rendering flow of a PDF page. This does not include the graphics state for text blocks. That functionality is in the subclass, CAM::PDF::GS.

FUNCTIONS

new DATA

Create a new instance, setting all state values to their defaults. Stores a reference to DATA and sets the DATA property fm => undef.

clone

Duplicate the instance.

CONVERSION FUNCTIONS

applyMatrix M1, M2

Apply m1 to m2, save in m2

dot MATRIX, X, Y

Compute the dot product of a position against the coordinate matrix.

userToDevice X, Y

Convert user coordinates to device coordinates.

getCoords NODE

Computes device coords for the specified node. This implementation handles line-drawing nodes.

nodeType NODE

Returns one of block, path, paint, text or (the fallback case) op for the type of the specified node.

DATA FUNCTIONS

i FLATNESS
j LINEJOIN
J LINECAP
ri RENDERING_INTENT
Tc CHARSPACE
TL LEADING
Tr RENDERING_MODE
Ts RISE
Tw WORDSPACE
w LINEWIDTH
g GRAY
G GRAY
rg RED GREEN BLUE
RG RED GREEN BLUE
k CYAN MAGENTA YELLOW BLACK
K CYAN MAGENTA YELLOW BLACK
gs (Not implemented...)
cm M1, M2, M3, M4, M5, M6
d ARRAYREF, SCALAR
m X, Y

Move path.

l X, Y

Line path.

h
c X1, Y1, X2, Y2, X3, Y3
v X1, Y1, X2, Y2
y X1, Y1, X2, Y2
re X, Y, WIDTH, HEIGHT

Rectangle path.

AUTHOR

Clotho Advanced Media Inc., cpan@clotho.com