.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "CAM::PDF::GS::NoText 3pm" .TH CAM::PDF::GS::NoText 3pm "2016-05-29" "perl v5.22.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" CAM::PDF::GS::NoText \- PDF graphic state .SH "LICENSE" .IX Header "LICENSE" See \s-1CAM::PDF.\s0 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 4 \& use CAM::PDF; \& my $pdf = CAM::PDF\->new($filename); \& my $contentTree = $pdf\->getPageContentTree(4); \& my $gs = $contentTree\->computeGS(1); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This class is used to represent the graphic state at a point in the rendering flow of a \s-1PDF\s0 page. This does not include the graphics state for text blocks. That functionality is in the subclass, \&\s-1CAM::PDF::GS.\s0 .SH "FUNCTIONS" .IX Header "FUNCTIONS" .ie n .IP "$pkg\->new($hashref)" 4 .el .IP "\f(CW$pkg\fR\->new($hashref)" 4 .IX Item "$pkg->new($hashref)" Create a new instance, setting all state values to their defaults. Stores a reference to \f(CW$hashref\fR and sets the property \&\f(CW\*(C`$hashref\-\*(C'\fR{fm}> to \f(CW\*(C`undef\*(C'\fR. .ie n .IP "$self\->\fIclone()\fR" 4 .el .IP "\f(CW$self\fR\->\fIclone()\fR" 4 .IX Item "$self->clone()" Duplicate the instance. .SH "CONVERSION FUNCTIONS" .IX Header "CONVERSION FUNCTIONS" .ie n .IP "$self\->applyMatrix($m1, $m2)" 4 .el .IP "\f(CW$self\fR\->applyMatrix($m1, \f(CW$m2\fR)" 4 .IX Item "$self->applyMatrix($m1, $m2)" Apply \f(CW$m1\fR to \f(CW$m2\fR, save in \f(CW$m2\fR. .ie n .IP "$self\->dot($matrix, $x, $y)" 4 .el .IP "\f(CW$self\fR\->dot($matrix, \f(CW$x\fR, \f(CW$y\fR)" 4 .IX Item "$self->dot($matrix, $x, $y)" Compute the dot product of a position against the coordinate matrix. .ie n .IP "$self\->userToDevice($x, $y)" 4 .el .IP "\f(CW$self\fR\->userToDevice($x, \f(CW$y\fR)" 4 .IX Item "$self->userToDevice($x, $y)" Convert user coordinates to device coordinates. .ie n .IP "$self\->getCoords($node)" 4 .el .IP "\f(CW$self\fR\->getCoords($node)" 4 .IX Item "$self->getCoords($node)" Computes device coordinates for the specified node. This implementation handles line-drawing nodes. .ie n .IP "$self\->nodeType($node)" 4 .el .IP "\f(CW$self\fR\->nodeType($node)" 4 .IX Item "$self->nodeType($node)" Returns one of \f(CW\*(C`block\*(C'\fR, \f(CW\*(C`path\*(C'\fR, \f(CW\*(C`paint\*(C'\fR, \f(CW\*(C`text\*(C'\fR or (the fallback case) \f(CW\*(C`op\*(C'\fR for the type of the specified node. .SH "DATA FUNCTIONS" .IX Header "DATA FUNCTIONS" .ie n .IP "$self\->i($flatness)" 4 .el .IP "\f(CW$self\fR\->i($flatness)" 4 .IX Item "$self->i($flatness)" .PD 0 .ie n .IP "$self\->j($linejoin)" 4 .el .IP "\f(CW$self\fR\->j($linejoin)" 4 .IX Item "$self->j($linejoin)" .ie n .IP "$self\->J($linecap)" 4 .el .IP "\f(CW$self\fR\->J($linecap)" 4 .IX Item "$self->J($linecap)" .ie n .IP "$self\->ri($rendering_intent)" 4 .el .IP "\f(CW$self\fR\->ri($rendering_intent)" 4 .IX Item "$self->ri($rendering_intent)" .ie n .IP "$self\->Tc($charspace)" 4 .el .IP "\f(CW$self\fR\->Tc($charspace)" 4 .IX Item "$self->Tc($charspace)" .ie n .IP "$self\->\s-1TL\s0($leading)" 4 .el .IP "\f(CW$self\fR\->\s-1TL\s0($leading)" 4 .IX Item "$self->TL($leading)" .ie n .IP "$self\->Tr($rendering_mode)" 4 .el .IP "\f(CW$self\fR\->Tr($rendering_mode)" 4 .IX Item "$self->Tr($rendering_mode)" .ie n .IP "$self\->Ts($rise)" 4 .el .IP "\f(CW$self\fR\->Ts($rise)" 4 .IX Item "$self->Ts($rise)" .ie n .IP "$self\->Tw($wordspace)" 4 .el .IP "\f(CW$self\fR\->Tw($wordspace)" 4 .IX Item "$self->Tw($wordspace)" .ie n .IP "$self\->w($linewidth)" 4 .el .IP "\f(CW$self\fR\->w($linewidth)" 4 .IX Item "$self->w($linewidth)" .ie n .IP "$self\->g($gray)" 4 .el .IP "\f(CW$self\fR\->g($gray)" 4 .IX Item "$self->g($gray)" .ie n .IP "$self\->G($gray)" 4 .el .IP "\f(CW$self\fR\->G($gray)" 4 .IX Item "$self->G($gray)" .ie n .IP "$self\->rg($red, $green, $blue)" 4 .el .IP "\f(CW$self\fR\->rg($red, \f(CW$green\fR, \f(CW$blue\fR)" 4 .IX Item "$self->rg($red, $green, $blue)" .ie n .IP "$self\->\s-1RG\s0($red, $green, $blue)" 4 .el .IP "\f(CW$self\fR\->\s-1RG\s0($red, \f(CW$green\fR, \f(CW$blue\fR)" 4 .IX Item "$self->RG($red, $green, $blue)" .ie n .IP "$self\->k($cyan, $magenta, $yellow, $black)" 4 .el .IP "\f(CW$self\fR\->k($cyan, \f(CW$magenta\fR, \f(CW$yellow\fR, \f(CW$black\fR)" 4 .IX Item "$self->k($cyan, $magenta, $yellow, $black)" .ie n .IP "$self\->K($cyan, $magenta, $yellow, $black)" 4 .el .IP "\f(CW$self\fR\->K($cyan, \f(CW$magenta\fR, \f(CW$yellow\fR, \f(CW$black\fR)" 4 .IX Item "$self->K($cyan, $magenta, $yellow, $black)" .ie n .IP "$self\->\fIgs()\fR" 4 .el .IP "\f(CW$self\fR\->\fIgs()\fR" 4 .IX Item "$self->gs()" .PD (Not implemented...) .ie n .IP "$self\->cm M1, M2, M3, M4, M5, M6" 4 .el .IP "\f(CW$self\fR\->cm M1, M2, M3, M4, M5, M6" 4 .IX Item "$self->cm M1, M2, M3, M4, M5, M6" .PD 0 .ie n .IP "$self\->d($arrayref, $scalar)" 4 .el .IP "\f(CW$self\fR\->d($arrayref, \f(CW$scalar\fR)" 4 .IX Item "$self->d($arrayref, $scalar)" .ie n .IP "$self\->m($x, $y)" 4 .el .IP "\f(CW$self\fR\->m($x, \f(CW$y\fR)" 4 .IX Item "$self->m($x, $y)" .PD Move path. .ie n .IP "$self\->l($x, $y)" 4 .el .IP "\f(CW$self\fR\->l($x, \f(CW$y\fR)" 4 .IX Item "$self->l($x, $y)" Line path. .ie n .IP "$self\->h()" 4 .el .IP "\f(CW$self\fR\->h()" 4 .IX Item "$self->h()" .PD 0 .ie n .IP "$self\->c($x1, $y1, $x2, $y2, $x3, $y3)" 4 .el .IP "\f(CW$self\fR\->c($x1, \f(CW$y1\fR, \f(CW$x2\fR, \f(CW$y2\fR, \f(CW$x3\fR, \f(CW$y3\fR)" 4 .IX Item "$self->c($x1, $y1, $x2, $y2, $x3, $y3)" .ie n .IP "$self\->v($x1, $y1, $x2, $y2)" 4 .el .IP "\f(CW$self\fR\->v($x1, \f(CW$y1\fR, \f(CW$x2\fR, \f(CW$y2\fR)" 4 .IX Item "$self->v($x1, $y1, $x2, $y2)" .ie n .IP "$self\->y($x1, $y1, $x2, $y2)" 4 .el .IP "\f(CW$self\fR\->y($x1, \f(CW$y1\fR, \f(CW$x2\fR, \f(CW$y2\fR)" 4 .IX Item "$self->y($x1, $y1, $x2, $y2)" .ie n .IP "$self\->re($x, $y, $width, $height)" 4 .el .IP "\f(CW$self\fR\->re($x, \f(CW$y\fR, \f(CW$width\fR, \f(CW$height\fR)" 4 .IX Item "$self->re($x, $y, $width, $height)" .PD Rectangle path. .SH "AUTHOR" .IX Header "AUTHOR" See \s-1CAM::PDF\s0