←Select platform

ClearAnnotations Method

Summary
Clears the annotations from an existing PDF file.
Syntax
C#
VB
C++
Java
public void ClearAnnotations( 
   string destinationFileName 
) 
Public Sub ClearAnnotations( _ 
   ByVal destinationFileName As String _ 
)  
public void clearAnnotations( 
   java.lang.String string 
); 
public: 
void ClearAnnotations(  
   String^ destinationFileName 
)  

Parameters

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.

Requirements

Target Platforms

See Also

Reference

PDFFile Class

PDFFile Members

Help Version 21.0.2021.3.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly