Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cam::pdf::gs(3pm) [debian man page]

CAM::PDF::GS(3pm)					User Contributed Perl Documentation					 CAM::PDF::GS(3pm)

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" or "TJ". 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 perl v5.14.2 2012-07-08 CAM::PDF::GS(3pm)

Check Out this Related Man Page

CAM::PDF::Decrypt(3pm)					User Contributed Perl Documentation				    CAM::PDF::Decrypt(3pm)

NAME
CAM::PDF::Decrypt - PDF security helper LICENSE
See CAM::PDF. SYNOPSIS
use CAM::PDF; my $pdf = CAM::PDF->new($filename); DESCRIPTION
This class is used invisibly by CAM::PDF whenever it detects that a document is encrypted. See new(), getPrefs() and setPrefs() in that module. FUNCTIONS
$pkg->new($pdf, $ownerpass, $userpass, $prompt) Create and validate a new decryption object. If this fails, it will set $CAM::PDF::errstr and return undef. $prompt is a boolean that says whether the user should be prompted for a password on the command line. $self->decode_permissions($field) Given a binary encoded permissions string from a PDF document, return the four individual boolean fields as an array: print boolean modify boolean copy boolean add boolean $self->encode_permissions($print, $modify, $copy, $add) Given four booleans, pack them into a single field in the PDF style that decode_permissions can understand. Returns that scalar. $self->set_passwords($doc, $ownerpass, $userpass) $self->set_passwords($doc, $ownerpass, $userpass, $permissions) Change the PDF passwords to the specified values. When the PDF is output, it will be encrypted with the new passwords. PERMISSIONS is an optional scalar of the form that decode_permissions can understand. If not specified, the existing values will be retained. Note: we only support writing using encryption version 1, even though we can read encryption version 2 as well. $self->encrypt($doc, $string) Encrypt the scalar using the passwords previously specified. $self->decrypt($doc, $string) Decrypt the scalar using the passwords previously specified. AUTHOR
See CAM::PDF perl v5.14.2 2012-07-08 CAM::PDF::Decrypt(3pm)
Man Page