next up previous contents index
Next: Document Information Up: cpdflibmanual Previous: Inserting Blank Pages   Contents   Index

Annotations


\begin{framed}
\noindent\textit{Function Summary}\\ [2mm]
\noindent\begin{tabula...
...eAnnotations! & Remove the annotations from a document
\end{tabular}\end{framed}
An annotation consists of a page number and a string. The two components can be accessed using the dot notation. For instance, if the annotation variable is annot:


\begin{framed}
\begin{tabular}{ll}
To access page number & \verb!annot.annotat...
...annotation contents & \verb!annot.annotation_content!
\end{tabular}\end{framed}

To list the annotations in a document, use ListAnnotations:
\begin{framed}
\noindent\textit{List annotations in a document}
\par
\vspace{2mm...
...! Cpdflib.ListAnnotations(pdf)!
\end{minipage}\\ [5mm]
\end{tabular}\end{framed}

To copy annotations from one document to another, use CopyAnnotations:
\begin{framed}
\noindent\textit{Copy annotations from one document to another}
\...
...ations(source_pdf, target_pdf)!
\end{minipage}\\ [5mm]
\end{tabular}\end{framed}

To remove annotations from a documents, use RemoveAnnotations:
\begin{framed}
\noindent\textit{Remove annotations from a document}
\par
\vspace...
...Cpdflib.RemoveAnnotations(pdf)!
\end{minipage}\\ [5mm]
\end{tabular}\end{framed}



root 2008-12-01