.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" 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 >0, 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 .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "PDF::API2::Annotation 3pm" .TH PDF::API2::Annotation 3pm "2016-10-30" "perl v5.24.1" "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" PDF::API2::Annotation \- Add annotations to a PDF .SH "METHODS" .IX Header "METHODS" .ie n .IP "$ant = PDF::API2::Annotation\->new" 4 .el .IP "\f(CW$ant\fR = PDF::API2::Annotation\->new" 4 .IX Item "$ant = PDF::API2::Annotation->new" Returns an annotation object (called from \f(CW$page\fR\->annotation). .ie n .IP "$ant\->link $page, %opts" 4 .el .IP "\f(CW$ant\fR\->link \f(CW$page\fR, \f(CW%opts\fR" 4 .IX Item "$ant->link $page, %opts" Defines the annotation as launch-page with page \f(CW$page\fR and options \f(CW%opts\fR (\-rect, \-border or 'dest\-options'). .ie n .IP "$ant\->url $url, %opts" 4 .el .IP "\f(CW$ant\fR\->url \f(CW$url\fR, \f(CW%opts\fR" 4 .IX Item "$ant->url $url, %opts" Defines the annotation as launch-url with url \f(CW$url\fR and options \f(CW%opts\fR (\-rect and/or \-border). .ie n .IP "$ant\->file $file, %opts" 4 .el .IP "\f(CW$ant\fR\->file \f(CW$file\fR, \f(CW%opts\fR" 4 .IX Item "$ant->file $file, %opts" Defines the annotation as launch-file with filepath \f(CW$file\fR and options \f(CW%opts\fR (\-rect and/or \-border). .ie n .IP "$ant\->pdfile $pdfile, $pagenum, %opts" 4 .el .IP "\f(CW$ant\fR\->pdfile \f(CW$pdfile\fR, \f(CW$pagenum\fR, \f(CW%opts\fR" 4 .IX Item "$ant->pdfile $pdfile, $pagenum, %opts" Defines the annotation as pdf-file with filepath \f(CW$pdfile\fR, \f(CW$pagenum\fR and options \f(CW%opts\fR (same as dest). .ie n .IP "$ant\->text $text, %opts" 4 .el .IP "\f(CW$ant\fR\->text \f(CW$text\fR, \f(CW%opts\fR" 4 .IX Item "$ant->text $text, %opts" Defines the annotation as textnote with content \f(CW$text\fR and options \f(CW%opts\fR (\-rect and/or \-open). .ie n .IP "$ant\->movie $file, $contentype, %opts" 4 .el .IP "\f(CW$ant\fR\->movie \f(CW$file\fR, \f(CW$contentype\fR, \f(CW%opts\fR" 4 .IX Item "$ant->movie $file, $contentype, %opts" Defines the annotation as a movie from \f(CW$file\fR with \f(CW$contentype\fR and options \f(CW%opts\fR (\-rect). .ie n .IP "$ant\->rect $llx, $lly, $urx, $ury" 4 .el .IP "\f(CW$ant\fR\->rect \f(CW$llx\fR, \f(CW$lly\fR, \f(CW$urx\fR, \f(CW$ury\fR" 4 .IX Item "$ant->rect $llx, $lly, $urx, $ury" Sets the rectangle of the annotation. .ie n .IP "$ant\->border @b" 4 .el .IP "\f(CW$ant\fR\->border \f(CW@b\fR" 4 .IX Item "$ant->border @b" Sets the border-styles of the annotation, if applicable. .ie n .IP "$ant\->content @lines" 4 .el .IP "\f(CW$ant\fR\->content \f(CW@lines\fR" 4 .IX Item "$ant->content @lines" Sets the text-content of the annotation, if applicable. .ie n .IP "$ant\->open $bool" 4 .el .IP "\f(CW$ant\fR\->open \f(CW$bool\fR" 4 .IX Item "$ant->open $bool" Display the annotation either open or closed, if applicable. .ie n .IP "$ant\->dest( $page, \-fit => 1 )" 4 .el .IP "\f(CW$ant\fR\->dest( \f(CW$page\fR, \-fit => 1 )" 4 .IX Item "$ant->dest( $page, -fit => 1 )" Display the page designated by page, with its contents magnified just enough to fit the entire page within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the page within the window in the other dimension. .ie n .IP "$ant\->dest( $page, \-fith => $top )" 4 .el .IP "\f(CW$ant\fR\->dest( \f(CW$page\fR, \-fith => \f(CW$top\fR )" 4 .IX Item "$ant->dest( $page, -fith => $top )" Display the page designated by page, with the vertical coordinate top positioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of the page within the window. .ie n .IP "$ant\->dest( $page, \-fitv => $left )" 4 .el .IP "\f(CW$ant\fR\->dest( \f(CW$page\fR, \-fitv => \f(CW$left\fR )" 4 .IX Item "$ant->dest( $page, -fitv => $left )" Display the page designated by page, with the horizontal coordinate left positioned at the left edge of the window and the contents of the page magnified just enough to fit the entire height of the page within the window. .ie n .IP "$ant\->dest( $page, \-fitr => [ $left, $bottom, $right, $top ] )" 4 .el .IP "\f(CW$ant\fR\->dest( \f(CW$page\fR, \-fitr => [ \f(CW$left\fR, \f(CW$bottom\fR, \f(CW$right\fR, \f(CW$top\fR ] )" 4 .IX Item "$ant->dest( $page, -fitr => [ $left, $bottom, $right, $top ] )" Display the page designated by page, with its contents magnified just enough to fit the rectangle specified by the coordinates left, bottom, right, and top entirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the rectangle within the window in the other dimension. .ie n .IP "$ant\->dest( $page, \-fitb => 1 )" 4 .el .IP "\f(CW$ant\fR\->dest( \f(CW$page\fR, \-fitb => 1 )" 4 .IX Item "$ant->dest( $page, -fitb => 1 )" (\s-1PDF 1.1\s0) Display the page designated by page, with its contents magnified just enough to fit its bounding box entirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the bounding box within the window in the other dimension. .ie n .IP "$ant\->dest( $page, \-fitbh => $top )" 4 .el .IP "\f(CW$ant\fR\->dest( \f(CW$page\fR, \-fitbh => \f(CW$top\fR )" 4 .IX Item "$ant->dest( $page, -fitbh => $top )" (\s-1PDF 1.1\s0) Display the page designated by page, with the vertical coordinate top positioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of its bounding box within the window. .ie n .IP "$ant\->dest( $page, \-fitbv => $left )" 4 .el .IP "\f(CW$ant\fR\->dest( \f(CW$page\fR, \-fitbv => \f(CW$left\fR )" 4 .IX Item "$ant->dest( $page, -fitbv => $left )" (\s-1PDF 1.1\s0) Display the page designated by page, with the horizontal coordinate left positioned at the left edge of the window and the contents of the page magnified just enough to fit the entire height of its bounding box within the window. .ie n .IP "$ant\->dest( $page, \-xyz => [ $left, $top, $zoom ] )" 4 .el .IP "\f(CW$ant\fR\->dest( \f(CW$page\fR, \-xyz => [ \f(CW$left\fR, \f(CW$top\fR, \f(CW$zoom\fR ] )" 4 .IX Item "$ant->dest( $page, -xyz => [ $left, $top, $zoom ] )" Display the page designated by page, with the coordinates (left, top) positioned at the top-left corner of the window and the contents of the page magnified by the factor zoom. A zero (0) value for any of the parameters left, top, or zoom specifies that the current value of that parameter is to be retained unchanged. .ie n .IP "$ant\->dest( $name )" 4 .el .IP "\f(CW$ant\fR\->dest( \f(CW$name\fR )" 4 .IX Item "$ant->dest( $name )" (\s-1PDF 1.2\s0) Connect the Annotation to a \*(L"Named Destination\*(R" defined elsewhere.