Error processing SSI file
LEADTOOLS PDF (Leadtools.Pdf assembly)

Show in webframe

WriteAnnotations Method






A list of PDFAnnotation objects to write. This must not be null and must be a list of 1 or more items. An empty list (count is zero) will throw an exception.
Name of the destination PDF file to be created. If the value of this parameter is null then the filename set in FileName will be updated.
Writes annotations to an existing PDF file.
Syntax
public void WriteAnnotations( 
   IList<PDFAnnotation> annotations,
   string destinationFileName
)
'Declaration
 
Public Sub WriteAnnotations( _
   ByVal annotations As IList(Of PDFAnnotation), _
   ByVal destinationFileName As String _
) 
'Usage
 
Dim instance As PDFFile
Dim annotations As IList(Of PDFAnnotation)
Dim destinationFileName As String
 
instance.WriteAnnotations(annotations, destinationFileName)

Parameters

annotations
A list of PDFAnnotation objects to write. This must not be null and must be a list of 1 or more items. An empty list (count is zero) will throw an exception.
destinationFileName
Name of the destination PDF file to be created. If the value of this parameter is null then the filename set in FileName will be updated.
Remarks

WriteAnnotations does not clear the existing annotations, only adds the new objects. To replace the annotations in an existing file with new ones, use ClearAnnotations first to delete any existing objects and then WriteAnnotations to add the new objects.

Example

For an example on retrieving annotations of PDF pages, refer to PDFDocumentPage.

Requirements

Target Platforms

See Also

Reference

PDFFile Class
PDFFile Members

Error processing SSI file
   Leadtools.Pdf requires a PDF Pro, Pro Suite, Document, or Medical license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features