←Select platform

ClearAnnotations Method

Summary
Clears the annotations from an existing PDF file.
Syntax
C#
C++/CLI
Java
Python
public void ClearAnnotations( 
   string destinationFileName 
) 
public void clearAnnotations( 
   java.lang.String string 
); 
public: 
void ClearAnnotations(  
   String^ destinationFileName 
)  
def ClearAnnotations(self,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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.